ultralytics 8.2.91 fix v10DetectLoss module rename for YOLOv10 (#16148)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
090db8ac3f
commit
e97782943b
2 changed files with 2 additions and 1 deletions
|
|
@ -776,6 +776,7 @@ def torch_safe_load(weight):
|
|||
attributes={
|
||||
"ultralytics.nn.modules.block.Silence": "torch.nn.Identity", # YOLOv9e
|
||||
"ultralytics.nn.tasks.YOLOv10DetectionModel": "ultralytics.nn.tasks.DetectionModel", # YOLOv10
|
||||
"ultralytics.utils.loss.v10DetectLoss": "ultralytics.utils.loss.E2EDetectLoss", # YOLOv10
|
||||
},
|
||||
):
|
||||
ckpt = torch.load(file, map_location="cpu")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue