Skip to content

Commit

Permalink
Update export.py (ultralytics#2909)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Apr 23, 2021
1 parent 28db237 commit a2a514d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
try:
import coremltools as ct

print(f'{prefix} starting export with coremltools {onnx.__version__}...')
print(f'{prefix} starting export with coremltools {ct.__version__}...')
# convert model from torchscript and apply pixel scaling as per detect.py
model = ct.convert(ts, inputs=[ct.ImageType(name='image', shape=img.shape, scale=1 / 255.0, bias=[0, 0, 0])])
f = opt.weights.replace('.pt', '.mlmodel') # filename
Expand Down

0 comments on commit a2a514d

Please sign in to comment.