update gen_wts.py (#1467)
This commit is contained in:
parent
f12bbe0359
commit
551be9d939
@ -32,7 +32,7 @@ print(f'Generating .wts for {m_type} model')
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user