Closed maplecoder closed 4 years ago
Hi @maplecoder, thanks for reporting this issue! It seems you're converting a model from PyTorch. In latest update of coremltools
(https://github.com/apple/coremltools), we've added support for PyTorch -> Core ML directly without going through ONNX, can you give that a try? https://coremltools.readme.io/docs/pytorch-conversion. Please file an issue if you see any errors. Thanks!
Do you have upsampling layer in the PyTorch model?
Hi thanks for contacting me, I don't visit gmail often. I have solved the problem by using a custom conversion function, but the inference result cannot meet my needs, so I have not use that model anymore.
Yuduo Wu notifications@github.com 于2020年6月27日周六 上午8:34写道:
Hi @maplecoder https://github.com/maplecoder, thanks for reporting this issue! It seems you're converting a model from PyTorch. In latest update of coremltools (https://github.com/apple/coremltools), we've added support for PyTorch -> Core ML directly without going through ONNX, can you give that a try? https://coremltools.readme.io/docs/pytorch-conversion. Please file an issue https://github.com/apple/coremltools/issues/new?assignees=&labels=bug&template=---bug-report.md&title= if you see any errors. Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/onnx/onnx-coreml/issues/575#issuecomment-650463144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQDCFVQD7OTGIC6QCD4OA3RYU5BFANCNFSM4N5JOMQA .
Hi thanks for contacting me, I don't visit gmail often. I have solved the problem by using a custom conversion function, but the inference result cannot meet my needs, so I have not used that model anymore.
Mohit Nihalani notifications@github.com 于2020年7月3日周五 上午8:03写道:
Do you have upsampling layer in the PyTorch model?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/onnx/onnx-coreml/issues/575#issuecomment-653266272, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQDCFX2RXKNUVTDXC53EDDRZUN3JANCNFSM4N5JOMQA .
🐞Describe the bug
I'm trying to port https://github.com/alinstein/Depth_estimation to iOS.
There is a PyTorch model located at: https://drive.google.com/drive/folders/1rDvtiwUgYbhzk8ZPdQ176abv-u6SaZzI?usp=sharing
First I converted it to a ONNX model, then I converted the ONNX model to CoreML model, but the error was reported
Trace
TypeError Traceback (most recent call last)