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

pytorch 1.6 compatibility #61

Closed
rafale77 opened this issue Aug 24, 2020 · 5 comments
Closed

pytorch 1.6 compatibility #61

rafale77 opened this issue Aug 24, 2020 · 5 comments

Comments

@rafale77
Copy link

I just tried loading the yolov5 implementation and ran into this exact issue:
ultralytics/yolov5#561

Could the models be re-trained on pytorch1.6 to avoid this?

@WongKinYiu
Copy link
Owner

yes, you can train the models from scratch to avoid this issue.

@rafale77
Copy link
Author

I found a way to make work on pytorch1.6 without retraining:

ultralytics/yolov5@43a616a#diff-4f7ffd108bb4c62b490d3debfd3bc264.

Do you want me to submit a PR?

@WongKinYiu
Copy link
Owner

do i just need to add this line?

m._non_persistent_buffers_set = set()  # pytorch 1.6.0 compatability

@rafale77
Copy link
Author

Yep!

@rafale77
Copy link
Author

By the way, I see that the base of your implementation is from the ultralytic release version 2.0. You could probably move to their latest version 3.0.

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