-
-
Notifications
You must be signed in to change notification settings - Fork 16k
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
Use older version of ultralytics #11563
Comments
@zkytony hello! Thank you for bringing this to our attention. I want to let you know that we take all comments seriously. You can try downgrading to an older version of Ultralytics and YOLOv5 if that works for your use case. However, we recommend that you upgrade to the latest Ultralytics version and use the latest version of YOLOv5 for optimal performance and stability. Regarding the error message you are getting, it seems like the Ultralytics requirements are not being met. However, YOLOv8 is not a valid component in YOLOv5. Can you please confirm the version of YOLOv5 you are using and share the code snippet where this error is occurring? This will help us better understand the issue and assist you further. Thank you for your patience and cooperation in resolving this issue. |
I think the problem is, the requirements.txt for yolov5 requires
while the ultralytics package version that has the desired opencv version is 8.0.15. That's why even though I've run For my situation, cloning the repo is not desirable. I hope there is a less hacky way. Let me be clear about my situation/requirements:
|
Hello @zkytony, Thank you for explaining your situation and requirements. I understand that you would like to avoid force-install of ultralytics 8.0.100, and would like the one-liner you have been using to load yolov5 to work. I agree with you that cloning the yolov5 repository and building it can be time-consuming. I would like to suggest another approach that may work for you. Instead of using the from models.experimental import attempt_load
yolomodel = attempt_load(model_path, map_location='cpu') This method should work with any version of the Please let me know if this works for you, or if you have any other questions or concerns. Thank you. |
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help. For additional resources and information, please see the links below:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
Search before asking
YOLOv5 Component
No response
Bug
Due to my environment requirements, I can't work with the latest version of ultralytics, because it requires opencv>=4.6.0, but my system only has opencv 4.5.0. I discovered that ultralytics 8.0.15 permits my opencv version. However, when I try to run the YOLOv5 model with this older ultralytics version, the newest ultralytics is pulled and opencv 4.7.0 is force installed onto my machine. That is not desirable behavior.
I am getting this message when running my code, even though I am not using YOLOv8.
I don't like the fact that ultralytics is trying to update itself (and where does YOLOv8 come from?). Can I just use the earlier package so that it can work with the opencv version in my development environment?
The text was updated successfully, but these errors were encountered: