Skip to content

Commit

Permalink
Minor fix for weights_name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqwang committed Mar 6, 2022
1 parent 6ee9f36 commit 39b4342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolort/models/yolo_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _yolov5_mobilenet_v3_small_fpn(
if pretrained:
if model_urls.get(weights_name, None) is None:
raise ValueError(f"No checkpoint is available for model {weights_name}")
state_dict = load_state_dict_from_url(model_urls["retinanet_resnet50_fpn_coco"], progress=progress)
state_dict = load_state_dict_from_url(model_urls[weights_name], progress=progress)
model.load_state_dict(state_dict)
return model

Expand Down

0 comments on commit 39b4342

Please sign in to comment.