You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception: [Errno 20] Not a directory: 'path/to/model.py'. Cache may be out o
f date, try `force_reload=True` or see https://docs.ultralytics.com/yolov5/tutorials/pytorch_hub_mode
l_loading for help.
I followed the suggestion and add force_reload=True:
Exception: [Errno 20] Not a directory: 'path/to/model.py'. Cache may be out of date, try `force_reload=True` or see https://docs.ultralytics.com
/yolov5/tutorials/pytorch_hub_model_loading for help.
@zkytony no worries at all! It's great to hear that you were able to solve the issue. Don't hesitate to reach out if you have any further questions or concerns. Thank you for your support and happy coding!
@developerlaborotory not a problem at all! Sometimes a reset can help with unforeseen issues. If you have any further questions or run into any other problems, feel free to ask. Happy coding!
Search before asking
YOLOv5 Component
No response
Bug
Previously, I can load a custom pretrained model like this:
However, after some recent developments (see issues below for related problems that occur after those developments).
force_reload=True
or see https://docs.ultralytics.com/yolov5/tutorials/pytorch_hub_model_loading for help. #11530the above line of code does not work any more. Running it I get
I followed the suggestion and add
force_reload=True
:I am getting the SAME error:
What is going on with yolov5?
Environment
Minimal Reproducible Example
Choose a model path to replace
'path/to/model.pt'
Additional
No
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: