Update export.py (#2909)
Browse files- models/export.py +1 -1
models/export.py
CHANGED
@@ -112,7 +112,7 @@ if __name__ == '__main__':
|
|
112 |
try:
|
113 |
import coremltools as ct
|
114 |
|
115 |
-
print(f'{prefix} starting export with coremltools {
|
116 |
# convert model from torchscript and apply pixel scaling as per detect.py
|
117 |
model = ct.convert(ts, inputs=[ct.ImageType(name='image', shape=img.shape, scale=1 / 255.0, bias=[0, 0, 0])])
|
118 |
f = opt.weights.replace('.pt', '.mlmodel') # filename
|
|
|
112 |
try:
|
113 |
import coremltools as ct
|
114 |
|
115 |
+
print(f'{prefix} starting export with coremltools {ct.__version__}...')
|
116 |
# convert model from torchscript and apply pixel scaling as per detect.py
|
117 |
model = ct.convert(ts, inputs=[ct.ImageType(name='image', shape=img.shape, scale=1 / 255.0, bias=[0, 0, 0])])
|
118 |
f = opt.weights.replace('.pt', '.mlmodel') # filename
|