-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use jupyter Notebook to run the script? #1
Comments
I see the script that can convert the yolov5x.cfg and yolov5x.pt to yolov5.yaml and yolov5.weights, can this script convert the other yolov5 pytorch model to darknet model? |
Try to use the converted model on opencv and get a error: cv2.error: OpenCV(4.5.2) /tmp/pip-req-build-13uokl4r/opencv/modules/dnn/src/darknet/darknet_io.cpp:900: error: (-212:Parsing error) Unknown layer type: Focus in function 'ReadDarknetFromCfgStream' |
For sure I will :) |
I added this script (https://github.com/adrianosantospb/yolov5_ultralytics_to_darnet_format/blob/master/yolov5_ultralytics_to_darknet.py). You can use it if you want. |
You need to install the opencv-contrib-python library (pip install opencv-contrib-python). I don't know if you installed the dependencies libraries, but you have to. |
Hello, I am trying to convert yolov5 model.yaml and weight.pt to .cfg and .weights, I found your excellent work here, and finished the steps of project Readme, but I konw nothing about jupyter script, could you help me?
The text was updated successfully, but these errors were encountered: