Skip to content

Commit

Permalink
update gen_wts.py (wang-xinyu#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
WuxinrongY authored Mar 26, 2024
1 parent f12bbe0 commit 551be9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolov9/gen_wts.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def parse_args():
print(f'Loading {pt_file}')
device = select_device('cpu')
model = torch.load(pt_file, map_location=device) # Load FP32 weights
model.model.float()
model = model["model"].float()

if m_type in ['detect', 'seg']:
# update anchor_grid info
Expand Down

0 comments on commit 551be9d

Please sign in to comment.