Cache may be out of date, try force_reload=True
.
#1966
-
Hi, I'm trying to upload the model with the command: model = torch.hub.load('ultralytics/yolov3', 'yolov3', force_reload=True, autoshape=False) # or yolov3-spp, yolov3-tiny, custom Even if I'm using 'force_reload=True', I get the error: 'Cache may be out of date, try This is the complete output: File ~/.cache/torch/hub/ultralytics_yolov3_master/models/experimental.py:97, in attempt_load(weights, map_location, inplace, fuse) File ~/yolov3/venv2/lib/python3.9/site-packages/torch/nn/modules/module.py:763, in Module.float(self) File ~/.cache/torch/hub/ultralytics_yolov3_master/models/yolo.py:240, in Model._apply(self, fn) Do you have any idea what the problem might be? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@andreaderetti I would recommend YOLOv5 for the most up-to-date and maintained code: |
Beta Was this translation helpful? Give feedback.
@andreaderetti I would recommend YOLOv5 for the most up-to-date and maintained code:
https://github.com/ultralytics/yolov5