-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Thank you very much for creating this repo.
I placed the default yolov5s.pt file in the root directory and ran the following command:
poetry run coreml-export --model-input-path yolov5s.pt
But getting this error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/samygarg/Documents/yolov5-coreml-tools/src/coreml_export/main.py", line 318, in main
model(sampleInput)
File "/Users/samygarg/Library/Caches/pypoetry/virtualenvs/coreml-tools-LHeNloI_-py3.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/Users/samygarg/Documents/yolov5/models/yolo.py", line 117, in forward
return self.forward_once(x, profile) # single-scale inference, train
File "/Users/samygarg/Documents/yolov5/models/yolo.py", line 148, in forward_once
x = m(x) # run
File "/Users/samygarg/Library/Caches/pypoetry/virtualenvs/coreml-tools-LHeNloI_-py3.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/Users/samygarg/Documents/yolov5/models/yolo.py", line 55, in forward
if self.inplace:
File "/Users/samygarg/Library/Caches/pypoetry/virtualenvs/coreml-tools-LHeNloI_-py3.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 779, in __getattr__
type(self).__name__, name))
torch.nn.modules.module.ModuleAttributeError: 'Detect' object has no attribute 'inplace'
Please let me know how I can get it to work.
ardimr
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested