Skip to content
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

ImportError: No module named yolov3_tf2.models #15

Open
Milan-Koelen opened this issue Jul 5, 2020 · 1 comment
Open

ImportError: No module named yolov3_tf2.models #15

Milan-Koelen opened this issue Jul 5, 2020 · 1 comment

Comments

@Milan-Koelen
Copy link

Milan-Koelen commented Jul 5, 2020

Hey guys, I'm trying to convert my custom weights files to TensorFlow format but keep running into the same error.
I've renamed my files to yolov3.weights and placed then in the same folder as the official pretrained weights. I've also changed the coco.names file accordingly.
I have also changed the number of classes to match in the app.py, detect_video.pi and detect.py
Please let me know what I'm doing wrong!

(yolov3-cpu) MacBook-Pro-Milan-2:Object-Detection-API Milan$ python load_weights.py Traceback (most recent call last): File "load_weights.py", line 4, in <module> from yolov3_tf2.models import YoloV3, YoloV3Tiny ImportError: No module named yolov3_tf2.models

Milan

@netvor-73
Copy link

the folder yolov3_tf2 has to be in the same location as load_weights.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants