Skip to content

Commit

Permalink
Fixing ImprotError
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqwang committed Oct 15, 2021
1 parent 7ba19aa commit e2b1667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion yolort/models/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from torch import nn, Tensor
from torchvision.ops import box_convert, box_iou

from yolort.utils import ModuleStateUpdate
from yolort.utils.update_module_state import ModuleStateUpdate
from yolort.v5 import load_yolov5_model, get_yolov5_size


Expand Down
4 changes: 2 additions & 2 deletions yolort/utils/update_module_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from torch import nn

from yolort.models import yolo
from yolort.models.yolo import build_model
from yolort.v5 import get_yolov5_size


Expand Down Expand Up @@ -56,7 +56,7 @@ def __init__(
weights_name = (
f"yolov5_darknet_pan_{yolov5_size}_{version.replace('.', '')}_coco"
)
model = yolo.build_model(
model = build_model(
backbone_name,
depth_multiple,
width_multiple,
Expand Down

0 comments on commit e2b1667

Please sign in to comment.