At “set up training file directions for custom dataset” there is error “No such file or directory ‘/content/darknet/‘/content” how can i fix that error?
I know its already been mentioned below. But if you get this error: CUDA Error: no kernel image is available for execution on the device CUDA Error: no kernel image is available for execution on the device: File exists darknet: ./src/utils.c:325: error: Assertion `0' failed. you can try to change the -gencode arch and code. What I didn't realise was that one line above that comment the guy who wrote the program put this: # compute_30, sm_30 for Tesla K80 # compute_75, sm_75 for Tesla T4 so yeah it was a bit embarrassing that i didn't see that. Hope this helps you
Thanks for the tutorial. I finally got the YOLO v4- tiny working with idea from your videos. Now with the saved weights I want to use my Raspberry Pi to detect the same in real time for a object detection project. Please guide me through. Any help will be appreciated. Thanks
@@mustafagoksu7661 yes I implemented this on raspberry pi 4 4gb using tensor flow rather than suggested tensor flow lite. However the fps is around 1.5 only
I am getting a new error with darknet - "/bin/bash: ./darknet: No such file or directory". I have been stuck on this for hours, Do you have any solutions? Thank you!
If you're running the "Train Custom YOLOv4 Detector" step and it doesn't work due to (CUDA Error: no kernel image is available for execution on the device CUDA Error: no kernel image is available for execution on the device: File exists darknet: ./src/utils.c:325: error: Assertion `0' failed.) The architecture settings are probably not compatible with google colabs K80 GPU. Just add ARCH= -gencode arch=compute_37, code=sm_37 to the make file and you're good to go. github.com/pjreddie/darknet/issues/98
Could you post your line of code for this? I get the same error whatever I try. I've been given the Tesla T4 so tried (among many combinations): !sed -i 's/ARCH= -gencode arch=compute_75,code=sm_75/ARCH= -gencode arch=compute_75,code=sm_75/g' Makefile Same error.
I solved "CUDA Error: no kernel image is available for execution on the device: File exists". 1. Check the GPU version. Enter the "!nvidia-smi", you can see the GPU version ex) | 0 Tesla K80 Off | 00000000:00:04.0 Off | 0 | | N/A 53C P8 31W / 149W | 0MiB / 11441MiB | 0% Default | you can see the GPU version K80. 2. Change the compute_capability. ex) if your version is K80, execute "%env compute_capability=30" else version is T4, execute "%env compute_capability=75" I don't know exactly. But sometime this kind of situation occurs. "Yesterday version was P100, but today version is K60." So make sure check the GPU version 3. Change the "!sed" part. ex) %cd darknet/ !sed -i 's/OPENCV=0/OPENCV=1/g' Makefile !sed -i 's/GPU=0/GPU=1/g' Makefile !sed -i 's/CUDNN=0/CUDNN=1/g' Makefile !sed -i "s/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_(change this),code=sm_( change this)/g" Makefile !make ex) if your version is K80, chage this part ---> !sed -i "s/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_30,code=sm_30/g" Makefile
Hello, i tried the make same example work but couldnt managed to get your example work. Getting this error: CUDA status Error: file: ./src/blas_kernels.cu : () : line: 841 : build time: Aug 10 2020 - 14:41:39 CUDA Error: no kernel image is available for execution on the device CUDA Error: no kernel image is available for execution on the device: File exists darknet: ./src/utils.c:325: error: Assertion `0' failed. Any solution for this?
Check the !sed command on top of the notebook. It’s built for P100 GPUs. Uncomment the K80 or T4 if you’re on Google Colab. If you’re using another GPU check the other comments.
I solved "CUDA Error: no kernel image is available for execution on the device: File exists". 1. Check the GPU version. Enter the "!nvidia-smi", you can see the GPU version ex) | 0 Tesla K80 Off | 00000000:00:04.0 Off | 0 | | N/A 53C P8 31W / 149W | 0MiB / 11441MiB | 0% Default | you can see the GPU version K80. 2. Change the compute_capability. ex) if your version is K80, execute "%env compute_capability=30" else version is T4, execute "%env compute_capability=75" I don't know exactly. But sometime this kind of situation occurs. "Yesterday version was P100, but today version is K60." So make sure check the GPU version 3. Change the "!sed" part. ex) %cd darknet/ !sed -i 's/OPENCV=0/OPENCV=1/g' Makefile !sed -i 's/GPU=0/GPU=1/g' Makefile !sed -i 's/CUDNN=0/CUDNN=1/g' Makefile !sed -i "s/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_(change this),code=sm_( change this)/g" Makefile !make ex) if your version is K80, chage this part ---> !sed -i "s/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_30,code=sm_30/g" Makefile
hey can you help me out i am stuck in your video in custom training config for yolo v4 the cfg file have you written it or have copied it from somewhere it'll a great help if you respond to make question!! waiting for your reply.. the timing around 19:20
At 20:15 you have got a CUDA error, exactly same as mine. Surprisingly, you just ignored that and headed to another notebook. How to fix that error? Pls reply.
@Roboflow how should I generate a tflite version of the model I just trained? Also, if I wanted to improve the model again what should I input with the config file? Example the model is initially trained on 2 classes and after sometime I wanted to try it out with 4 more new classes? Should I input 4 on the number of classes or 6?
At the end of the video you switch to a model that is already trained and it can be clearly seen that the colab page you were on also shows a CUDA error. Please suggest ways to correct that. Great video and also love roboflow for data prep
Thanks for your kind words! Yes, the CUDA configuration will depend on what GPU you're using in Colab. The notebook assumes a P100 (and this is the one I switch to at the end). The prior is on Colab free and uses a K80. The CUDA config file in the notebook allows this to be modified to your hardware.
Hello, when at the ""Train Custom YOLOv4 Detector" stage, I get this response; "/bin/bash: ./darknet: No such file or directory" . What do I do to solve this?
The Colab Notebook is different from the video, can anyone explain what changes are needed? I found I was using the T4, is this code correct ? (I'm not too familiar with Python) #install environment from the Makefile %cd darknet/ # compute_30, sm_30 for Tesla K80 # compute_75, sm_75 for Tesla T4 !sed -i 's/ARCH= -gencode arch=compute_75,code=sm_75/g' Makefile !make
@@GlentoranMark hey i just set it up with out copying the notebook and it works!! the files get saved in darknet backup. i haven't tested yet but the tests it runs at the end worked fine . also you get the pc100 so dont have to edit that part
I trained my own dataset and it works great! The weights are 22mb. Is there a way to reduce the size of the weights file? I can afford to reduce accuracy if I need to. Thanks
At “set up training file directions for custom dataset” there is error “No such file or directory ‘/content/darknet/‘/content” how can i fix that error?
Now there is no Darknet executable file. what can I do? from where can I get that file?
I know its already been mentioned below. But if you get this error: CUDA Error: no kernel image is available for execution on the device CUDA Error: no kernel image is available for execution on the device: File exists darknet: ./src/utils.c:325: error: Assertion `0' failed.
you can try to change the -gencode arch and code. What I didn't realise was that one line above that comment the guy who wrote the program put this:
# compute_30, sm_30 for Tesla K80
# compute_75, sm_75 for Tesla T4
so yeah it was a bit embarrassing that i didn't see that. Hope this helps you
I love how you explain and your talking style is very fine love this
Thanks for the tutorial. I finally got the YOLO v4- tiny working with idea from your videos. Now with the saved weights I want to use my Raspberry Pi to detect the same in real time for a object detection project. Please guide me through. Any help will be appreciated. Thanks
Have you been able to run these resulting weights in raspbery?
@@mustafagoksu7661 yes I implemented this on raspberry pi 4 4gb using tensor flow rather than suggested tensor flow lite. However the fps is around 1.5 only
@@samvandhapathak2167 very beautiful. Can you explain how to do it? What should I do with these weights?
What should I do with these weights?
Hi , can you post the tutorial you followed for that plz
@@mustafagoksu7661 where i can get the saved weights file after trained? drive?
I'm getting this error: "Makefile:162: recipe for target 'obj/convolutional_layer.o' failed
make: *** [obj/convolutional_layer.o] Error 1". Can anybody please help?
Hi! Could you post a bug report with all the details on our notebooks repository: github.com/roboflow-ai/notebooks
I am getting a new error with darknet - "/bin/bash: ./darknet: No such file or directory". I have been stuck on this for hours, Do you have any solutions? Thank you!
are you solve this problem?
@@rifqyfachrizi7891 no
@@strizerz3514 same error...if you got it just reply me
If you're running the "Train Custom YOLOv4 Detector" step and it doesn't work due to (CUDA Error: no kernel image is available for execution on the device CUDA Error: no kernel image is available for execution on the device: File exists darknet: ./src/utils.c:325: error: Assertion `0' failed.) The architecture settings are probably not compatible with google colabs K80 GPU. Just add ARCH= -gencode arch=compute_37, code=sm_37 to the make file and you're good to go. github.com/pjreddie/darknet/issues/98
Could you post your line of code for this?
I get the same error whatever I try. I've been given the Tesla T4 so tried (among many combinations):
!sed -i 's/ARCH= -gencode arch=compute_75,code=sm_75/ARCH= -gencode arch=compute_75,code=sm_75/g' Makefile
Same error.
I have same error , I thought it’s depending on cuda on nvidia gpu I have amd !!!
I solved "CUDA Error: no kernel image is available for execution on the device: File exists".
1. Check the GPU version. Enter the "!nvidia-smi", you can see the GPU version
ex)
| 0 Tesla K80 Off | 00000000:00:04.0 Off | 0 |
| N/A 53C P8 31W / 149W | 0MiB / 11441MiB | 0% Default |
you can see the GPU version K80.
2. Change the compute_capability.
ex) if your version is K80, execute "%env compute_capability=30"
else version is T4, execute "%env compute_capability=75"
I don't know exactly. But sometime this kind of situation occurs. "Yesterday version was P100, but today version is K60." So make sure check the GPU version
3. Change the "!sed" part.
ex)
%cd darknet/
!sed -i 's/OPENCV=0/OPENCV=1/g' Makefile
!sed -i 's/GPU=0/GPU=1/g' Makefile
!sed -i 's/CUDNN=0/CUDNN=1/g' Makefile
!sed -i "s/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_(change this),code=sm_( change this)/g" Makefile
!make
ex) if your version is K80, chage this part
---> !sed -i "s/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_30,code=sm_30/g" Makefile
YOU ARE AN AMAZING PERSON THANK YOU VERY MUCH
@@mehmetkaanergul8641 ^^
Does the GPU version change time to time. With Tesla P4 I have above error and I still couldn't fix it...Please help.
Fixed it, Thank you very much for the solution.....😍😍😍
@@gaganagavesh3679 can you tell me how fix it ?
How to plot the learning graph for this Project?
Hello, i tried the make same example work but couldnt managed to get your example work. Getting this error: CUDA status Error: file: ./src/blas_kernels.cu : () : line: 841 : build time: Aug 10 2020 - 14:41:39 CUDA Error: no kernel image is available for execution on the device
CUDA Error: no kernel image is available for execution on the device: File exists
darknet: ./src/utils.c:325: error: Assertion `0' failed.
Any solution for this?
Check the !sed command on top of the notebook. It’s built for P100 GPUs. Uncomment the K80 or T4 if you’re on Google Colab. If you’re using another GPU check the other comments.
I solved "CUDA Error: no kernel image is available for execution on the device: File exists".
1. Check the GPU version. Enter the "!nvidia-smi", you can see the GPU version
ex)
| 0 Tesla K80 Off | 00000000:00:04.0 Off | 0 |
| N/A 53C P8 31W / 149W | 0MiB / 11441MiB | 0% Default |
you can see the GPU version K80.
2. Change the compute_capability.
ex) if your version is K80, execute "%env compute_capability=30"
else version is T4, execute "%env compute_capability=75"
I don't know exactly. But sometime this kind of situation occurs. "Yesterday version was P100, but today version is K60." So make sure check the GPU version
3. Change the "!sed" part.
ex)
%cd darknet/
!sed -i 's/OPENCV=0/OPENCV=1/g' Makefile
!sed -i 's/GPU=0/GPU=1/g' Makefile
!sed -i 's/CUDNN=0/CUDNN=1/g' Makefile
!sed -i "s/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_(change this),code=sm_( change this)/g" Makefile
!make
ex) if your version is K80, chage this part
---> !sed -i "s/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_30,code=sm_30/g" Makefile
@@mehmetkaanergul8641 It worked! Thank you, bro!
@@mehmetkaanergul8641 thx ! this helped me !
@@mehmetkaanergul8641 I check not work the same error appear 😢
I finished these steps. So, how to transplant the training model in colab to jetson nano platform?
How can download the complete file with weights and cfg file after training it on google colab to use on GPU kit ?
Can I use YOLOv4-Tiny generated weights and use those weights on a scaled v4 algorithm?
hey can you help me out i am stuck in your video in custom training config for yolo v4 the cfg file have you written it or have copied it from somewhere it'll a great help if you respond to make question!! waiting for your reply.. the timing around 19:20
At 20:15 you have got a CUDA error, exactly same as mine. Surprisingly, you just ignored that and headed to another notebook. How to fix that error? Pls reply.
Great video! Thank you for sharing, curiously watching for which tools you have used for custom training from scratch.
Do you have a .py to use that custom pre trained dataset in my desktop??? I want it to use with my video camera
@Roboflow how should I generate a tflite version of the model I just trained? Also, if I wanted to improve the model again what should I input with the config file? Example the model is initially trained on 2 classes and after sometime I wanted to try it out with 4 more new classes? Should I input 4 on the number of classes or 6?
At the end of the video you switch to a model that is already trained and it can be clearly seen that the colab page you were on also shows a CUDA error. Please suggest ways to correct that. Great video and also love roboflow for data prep
Thanks for your kind words! Yes, the CUDA configuration will depend on what GPU you're using in Colab. The notebook assumes a P100 (and this is the one I switch to at the end). The prior is on Colab free and uses a K80. The CUDA config file in the notebook allows this to be modified to your hardware.
@@Roboflow while I am using the free version with K80, what changes should i make to run the training. Tried a few things didn't work☹️
Were you able to resolve this issue?
@@junaidkhan-uc2eb I have the same error
Hello, when at the ""Train Custom YOLOv4 Detector" stage, I get this response; "/bin/bash: ./darknet: No such file or directory" . What do I do to solve this?
There is an open issue in our repository: github.com/roboflow/notebooks/issues/28 for now we don't have fix for that issue unfortunately :/
what if i want to do augmentation for specific classes only? ( I want to use SMOTE to balance my dataset)
can you tell me which software you are using for screen recording and virtual webcam.
Hey i cant use yolov4 with darknet , can you give me any tutorial
how can we try to run on video. what command we should give for it?
If its possible to test Yolov4-Tiny Object detection Model on Arduino Nano .
I don't know if the energy level one-uppance is sustainable. But I'm excited to find out...
Stay tuned!
I am getting cuda error everytime during training if I get K80 or T4 gpu. Can anyone help?
can we use inference on an vid by replacing img path with a video path
hey your colab code is different from this video...
The Colab Notebook is different from the video, can anyone explain what changes are needed?
I found I was using the T4, is this code correct ? (I'm not too familiar with Python)
#install environment from the Makefile
%cd darknet/
# compute_30, sm_30 for Tesla K80
# compute_75, sm_75 for Tesla T4
!sed -i 's/ARCH= -gencode arch=compute_75,code=sm_75/g' Makefile
!make
Got the same issue
@@fixitmoditbreakit7982 I'm trying again on the K80 and nothing works, same errors no matter what I try.
GlentoranMark I’ve tried lots of different things. One thing I did notice is that the !sed-i’s line is red once uncommented!!
@@GlentoranMark hey i just set it up with out copying the notebook and it works!! the files get saved in darknet backup. i haven't tested yet but the tests it runs at the end worked fine . also you get the pc100 so dont have to edit that part
it works but when trying to train again i didnt get the pc100
How can we run these obtained weights in raspbery ?
What are the tiny yolo weight sizes?
Can you make video for Yolov7?
Hello there , I want to crop what is inside the bounding box and save it in a file in order to apply tesseract later(OCR).Can anyone help me plz?
hi, were you able to fix it?
How to inference using videos?
Is it okay to run this without gpu?
is there python opencv script running tiny yolov4?
darknet is no longer supported on colab
I trained my own dataset and it works great! The weights are 22mb. Is there a way to reduce the size of the weights file? I can afford to reduce accuracy if I need to. Thanks
where do i download the trained weight file and the config file after training
You did not train it on custom dataset
can you tell me pls how can i create our own dataset
Yup! th-cam.com/video/OMgQ2JzOAWA/w-d-xo.html
Hello Bear :)
/bin/bash: ./darknet: No such file or directory
same error ...help me to go through it
you are best
hey bear
Not free
Nice
you need to pay money to export photos to google colab. it is trash.