Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 20, 2021
1 parent 383809f commit 4694c37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yolort/utils/update_module_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def load_from_ultralytics(checkpoint_path: str, version: str = "r6.0"):
strides = checkpoint_yolov5.stride
anchor_grids = checkpoint_yolov5.yaml["anchors"]
if isinstance(anchor_grids, int):
anchor_grids = to_numpy(
checkpoint_yolov5.model[-1].anchor_grid
).reshape(3, -1).tolist()
anchor_grids = (
to_numpy(checkpoint_yolov5.model[-1].anchor_grid).reshape(3, -1).tolist()
)

depth_multiple = checkpoint_yolov5.yaml["depth_multiple"]
width_multiple = checkpoint_yolov5.yaml["width_multiple"]
Expand Down

0 comments on commit 4694c37

Please sign in to comment.