Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

i have taked erorr: "/bin/bash: ./darknet: No such file or directory" in yolov4 darknet #28

Open
1 of 2 tasks
IZIEIRIOI opened this issue Dec 21, 2022 · 27 comments
Open
1 of 2 tasks
Assignees
Labels
bug Something isn't working yolov4 The problem originates in the YOLOv4 codebase

Comments

@IZIEIRIOI
Copy link

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbnJERWU5czNTUjJfMFZoTmM4ZHNFcnJsZzdqQXxBQ3Jtc0trSHRNdlRMVm1hLVZuMkpnMV9MR192TXVVYnRuOW9lVjZKa1pNeWFlSi1TSzFQNmJ0ZXR3WnU5SXZheUQ1dXNrQ3dEZjh3c2FBTGhTU3FlRWpRZDhPTURPUnZDRXFHVWtVamtmYWgyX2dRVE1ONUFhQQ&q=https%3A%2F%2Fcolab.research.google.com%2Fdrive%2F1mzL6WyY9BRx4xX476eQdhKDnd_eixBlG%23scrollTo%3DGNVU7eu9CQj3&v=N-GS8cmDPog

Bug

Screenshot (226)
/bin/bash: ./darknet: No such file or directory

Environment

  • Google Colab

Minimal Reproducible Example

!./darknet detector train data/obj.data cfg/custom-yolov4-detector.cfg yolov4.conv.137 -dont_show -map
#If you get CUDA out of memory adjust subdivisions above!
#adjust max batches down for shorter training above

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@IZIEIRIOI IZIEIRIOI added the bug Something isn't working label Dec 21, 2022
@IZIEIRIOI IZIEIRIOI changed the title i have taked erorr: "/bin/bash: ./darknet: No such file or directory" i have taked erorr: "/bin/bash: ./darknet: No such file or directory" in yolov4 darknet Dec 21, 2022
@SkalskiP SkalskiP self-assigned this Dec 21, 2022
@SkalskiP
Copy link
Collaborator

Hi, @IZIEIRIOI 👋🏻! Thanks for your interest in Roboflow Notebooks. I'll try to take a look at this issue today. I'll keep you posted.

@LokeshSaipureddi
Copy link

Hi @SkalskiP even I am facing the same issue from yesterday

@LokeshSaipureddi
Copy link

But the issue is in different notebook. The notebook name is YOLOv4-tiny-Darknet-Roboflow.ipynb

@IZIEIRIOI
Copy link
Author

IZIEIRIOI commented Dec 21, 2022

Hi @SkalskiP, please sir fix it this bug, before I could train the yolo4-dakrnet model, but now it can't, because I'm undergo my thesis with this model

@IZIEIRIOI
Copy link
Author

Hi @LokeshSaipureddi, then you can fix it sir in notebook name yolov4 tiny darknet ?

@SkalskiP
Copy link
Collaborator

Hi @LokeshSaipureddi and @IZIEIRIOI! Sorry, it takes so long.

@SkalskiP
Copy link
Collaborator

SkalskiP commented Dec 21, 2022

@Jacobsolawetz, I could use your help here! 🥺

It looks like we have problems with installing the darknet on Google Colab on T4 GPU. I think Google must have updated Colab environment. But I never really worked with Darknet. Could you take a look?

@IZIEIRIOI
Copy link
Author

@Jacobsolawetz, please sir can you fix it this bug ?

@LokeshSaipureddi
Copy link

@SkalskiP Its not issue with K80 GPU. Colab has changed its gpu to Tesla T4 from Tesla K80. So, Installation was not working in Tesla T4 GPU

@LokeshSaipureddi
Copy link

image
image
In this Image darknet file was installed. That file was not installed which was causing the error. That file was missing.

@IZIEIRIOI
Copy link
Author

Screenshot (233)
@LokeshSaipureddi yep your right, i try to install then this happen, error --"

@LokeshSaipureddi
Copy link

image
@IZIEIRIOI
Line 5 is commented in this cell try uncommenting it. Then you will see error but you can see darknet file will be created in darknet folder. This will work !!!.

@LokeshSaipureddi
Copy link

@SkalskiP I want you to update this notebook accordingly. Thank you !!!!

@SkalskiP
Copy link
Collaborator

@LokeshSaipureddi did you tested the rest of the notebook? Does the training work after that change?

@LokeshSaipureddi
Copy link

Yes training is working after that change.

@SkalskiP
Copy link
Collaborator

I’m off today. I’ll test the fix tomorrow and if it will work then I release the update.

@SkalskiP
Copy link
Collaborator

@LokeshSaipureddi I just tested that solution, and it doesn't work for me. Could you send me the version of the notebook that worked for you?

@Strizerz
Copy link

Strizerz commented Jan 7, 2023

It doesn't work for me either after doing that change but I also did receive an error in the console when I was installing Darknet for YOLOv4 on Colab - "Makefile:162: recipe for target 'obj/convolutional_layer.o' failed" I have no clue what that means but I am letting you know that I get that when I run the step

@SkalskiP
Copy link
Collaborator

SkalskiP commented Jan 7, 2023

@Strizerz, that fix does not work for me either. That bug is a bit problematic as YOLOv4 does not mention that project anymore. We will try to fight it regardless.

@fatihcihant
Copy link

The same problem continues.

@seyedamirhh
Copy link

it doesn't work,

  1. in installing Darknet: error: compilation terminated due to -Wfatal-errors.
    make: *** [Makefile:162: obj/convolutional_layer.o] Error 1
  2. in Train Custom YOLOv4 Detector: /bin/bash: ./darknet: No such file or directory

@SkalskiP
Copy link
Collaborator

Hi, @fatihcihant and @seyedamirhh! 👋🏻 I'm really sorry it takes so long, but solving that issue is more complex. YOLOv4 is no longer supported. And there is no team on the other side to help us solve this problem.

@SkalskiP SkalskiP added the yolov4 The problem originates in the YOLOv4 codebase label Jan 24, 2023
@wolverineV2
Copy link

wolverineV2 commented Jun 20, 2023

Did you solve the Problem? Because in the Last week it doesn`t work and for some reason yesterday it worked !
And today with the same Code there is again the bin/bash Error

I got the same Problem with YoloV3. Is the Issue also known there?

@SkalskiP
Copy link
Collaborator

@wolverineV2, unfortunately, that issue is still active. We did not manage to solve it. s for YOLOv3 - anything that uses Darknet will suffer from that issue. The biggest problem is that no one is supporting those models anymore. :/

@hirosichen
Copy link

Is the issue solved? I am facing the same issue.

@SkalskiP
Copy link
Collaborator

SkalskiP commented Jul 3, 2023

Unfortunately not yet.

@hirosichen
Copy link

I suggest Roboflow can refet to below and modify your repo. This will build reputation of your product. Otherwise, many people will feel frustrated after following your tutorial video about building custom yolo v4 model.

https://colab.research.google.com/drive/1zqRb08ljHvIIMR4fgAXeNy1kUtjDU85B?usp=sharing

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working yolov4 The problem originates in the YOLOv4 codebase
Projects
None yet
Development

No branches or pull requests

8 participants