Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to import BlobReader from libmilstoragepython. No module named 'coremltools.libmilstoragepython' #693

Open
longge-vision opened this issue May 31, 2024 · 1 comment

Comments

@longge-vision
Copy link

D:\yolov10\yolov10-main>CALL d:\Anaconda3\Scripts\activate.bat d:\Anaconda3\envs\yolov10
2024-05-31 18:03:03.393293: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-05-31 18:03:04.232945: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
TensorFlow version 2.16.1 has not been tested with coremltools. You may run into unexpected errors. TensorFlow 2.12.0 is the most recent version that has been tested.
Failed to load _MLModelProxy: No module named 'coremltools.libcoremlpython'
Fail to import BlobReader from libmilstoragepython. No module named 'coremltools.libmilstoragepython'
Fail to import BlobWriter from libmilstoragepython. No module named 'coremltools.libmilstoragepython'
Traceback (most recent call last):
File "D:\yolov10\yolov10-main\coreml2onnx.py", line 8, in
onnx_model = onnxmltools.convert_coreml(coreml_model, 'Example Model')
File "d:\Anaconda3\envs\yolov10\lib\site-packages\onnxmltools\convert\main.py", line 30, in convert_coreml
return convert(
File "d:\Anaconda3\envs\yolov10\lib\site-packages\onnxmltools\convert\coreml\convert.py", line 70, in convert
topology = parse_coreml(
File "d:\Anaconda3\envs\yolov10\lib\site-packages\onnxmltools\convert\coreml_parse.py", line 659, in parse_coreml
topology.compile()
File "d:\Anaconda3\envs\yolov10\lib\site-packages\onnxconverter_common\topology.py", line 678, in compile
self._infer_all_types()
File "d:\Anaconda3\envs\yolov10\lib\site-packages\onnxconverter_common\topology.py", line 553, in _infer_all_types
operator.infer_types()
File "d:\Anaconda3\envs\yolov10\lib\site-packages\onnxconverter_common\topology.py", line 107, in infer_types
get_shape_calculator(self.type)(self)
File "d:\Anaconda3\envs\yolov10\lib\site-packages\onnxconverter_common\registration.py", line 67, in get_shape_calculator

@xadupre
Copy link
Collaborator

xadupre commented Jun 3, 2024

The converters for coremltools are not actively maintened. The unit test are not run anymore. Is there any way to convert the original model from pytorch or tensorflow to onnx instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants