Skip to content

Commit

Permalink
Fix 'PyTorch starting from' for URL weights (ultralytics#4828)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Sep 16, 2021
1 parent a0665ef commit 18d2cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def run(data=ROOT / 'data/coco128.yaml', # 'dataset.yaml path'

for _ in range(2):
y = model(im) # dry runs
print(f"\n{colorstr('PyTorch:')} starting from {weights} ({file_size(weights):.1f} MB)")
print(f"\n{colorstr('PyTorch:')} starting from {file} ({file_size(file):.1f} MB)")

# Exports
if 'torchscript' in include:
Expand Down

0 comments on commit 18d2cc2

Please sign in to comment.