roboflow / notebooks

Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.
https://roboflow.com/models
5.09k stars 788 forks source link

#install environment from the Makefile -Wfatal-errors. make: *** [Makefile:162: obj/convolutional_layer.o] Error 1 #50

Closed seyedamirhh closed 1 year ago

seyedamirhh commented 1 year ago

Search before asking

Notebook name

train-yolov4-tiny-object-detection-on-custom-data.ipynb

Bug

Installing Darknet for YOLOv4 on Colab:

install environment from the Makefile:

compilation terminated due to -Wfatal-errors. make: *** [Makefile:162: obj/convolutional_layer.o] Error 1

Environment

Google Colab

Minimal Reproducible Example

install environment from the Makefile

%cd /content/darknet/

compute_37, sm_37 for Tesla K80

compute_75, sm_75 for Tesla T4

!sed -i 's/ARCH= -gencode arch=compute_60,code=sm_60/ARCH= -gencode arch=compute_75,code=sm_75/g' Makefile

install environment from the Makefile

note if you are on Colab Pro this works on a P100 GPU

if you are on Colab free, you may need to change the Makefile for the K80 GPU

this goes for any GPU, you need to change the Makefile to inform darknet which GPU you are running on.

!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= ${ARCH_VALUE}/g" Makefile !make

Additional

when the you get make: *** [Makefile:162: obj/convolutional_layer.o] Error 1 you can not Train Custom YOLOv4 Detector !./darknet detector train data/obj.data cfg/custom-yolov4-tiny-detector.cfg yolov4-tiny.conv.29 -dont_show -map

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

šŸ‘‹ Hello @seyedamirhh, thank you for leaving an issue on Roboflow Notebooks.

šŸž Bug reports

If you are filing a bug report, please be as detailed as possible. This will help us more easily diagnose and resolve the problem you are facing. To learn more about contributing, check out our Contributing Guidelines.

If you require support with custom code that is not part of Roboflow Notebooks, please reach out on the Roboflow Forum or on the GitHub Discussions page associated with this repository.

šŸ’¬ Get in touch

Do you have more questions about Roboflow that we haven't responded to yet? Feel free to ask them on the Roboflow Discuss forum. Our developer advocates and community team actively respond to questions there.

To ask questions about Notebooks, head over to the GitHub Discussions section of this repository.

SkalskiP commented 1 year ago

Hi @seyedamirhh šŸ‘‹šŸ»! I'm closing this issue as it is a duplicate of https://github.com/roboflow/notebooks/issues/28