mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00
Merge 8b84ade39b09687bb4aa3311444a48cda103ec91 into 453c6e38a51e9d1d5a2aa5fb7f1014a711913397
This commit is contained in:
commit
53dbeb2c4a
@ -730,7 +730,7 @@ def torch_safe_load(weight):
|
|||||||
"ultralytics.yolo.data": "ultralytics.data",
|
"ultralytics.yolo.data": "ultralytics.data",
|
||||||
}
|
}
|
||||||
): # for legacy 8.0 Classify and Pose models
|
): # for legacy 8.0 Classify and Pose models
|
||||||
ckpt = torch.load(file, map_location="cpu")
|
ckpt = torch.load(file, map_location="cpu", weights_only=False)
|
||||||
|
|
||||||
except ModuleNotFoundError as e: # e.name is missing module name
|
except ModuleNotFoundError as e: # e.name is missing module name
|
||||||
if e.name == "models":
|
if e.name == "models":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user