We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d1b9f commit 78a3530Copy full SHA for 78a3530
yolov5/gen_wts.py
@@ -35,7 +35,7 @@ def parse_args():
35
model = torch.load(str(pt_file), map_location=device)['model'].float() # load to FP32
36
model.to(device).eval()
37
38
-with wts_file.open(mode = w+) as f:
+with wts_file.open(mode = "w+") as f:
39
f.write('{}\n'.format(len(official_model.state_dict().keys())))
40
for k, v in official_model.state_dict().items():
41
if k in model.state_dict():
0 commit comments