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

Can't get attribute 'DetectionModel' on <module 'models.yolo' #25

Open
MZeinab opened this issue Aug 24, 2022 · 2 comments
Open

Can't get attribute 'DetectionModel' on <module 'models.yolo' #25

MZeinab opened this issue Aug 24, 2022 · 2 comments

Comments

@MZeinab
Copy link

MZeinab commented Aug 24, 2022

I get this error when running:
!python clip_object_tracker.py --source ./data/video/videolife.mp4 --detection-engine yolov5 --weights ./models/best2.pt --info

Can't get attribute 'DetectionModel' on <module 'models.yolo' from '/content/zero-shot-object-tracking/models/yolo.py'>
xdgb

  • best2.pt is yolov5 trained weights (ultralytics yolov5 v6)

could you please help

@AmartyaCSB
Copy link

@MZeinab, I have the same error. Were you able to solve this?

@MZeinab
Copy link
Author

MZeinab commented Dec 5, 2022

It about a long time ago, I finally solved it.
I think the problem was about the new version of yolov5 ... I mean V6. that the original code was not compatible with the new version of yolo.
I think I used
!git clone -b fix-custom-weights https://github.com/ikitcheng/zero-shot-object-tracking.git
and it worked.

Hope to be correct and useful.

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