- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was running the Post-Training Optimization Tool and was getting a few errors since this was my first time trying to follow the documentation and figure out how to correctly configure the configuration file to quantize the sample model.
I started to get a random error after a few more trial and errors with the tool and this started showing up:
TypeError: Shared Cython type cython_function_or_method has the wrong size, try recompiling
I am not exactly sure how to fix this and have not found anyone else with this error online as well. Any suggestions? The picture attached is the error and output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another thing. I was running python 3.7 because certain modules did not play nicely with Python 3.8+. Here is the warning that I believe is causing the TypeError:
accuracy_checker WARNING: /home/destrada/anaconda3/envs/ncs2_3.8/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.8 of module 'openvino.inference_engine.ie_api' does not match runtime version 3.7
return f(*args, **kwds)
This happens with accuracy_checker and quatnizer tool. How do I recompile to have the:
compiletime version 3.8 of module 'openvino.inference_engine.ie_api'
be 3.7? I did a fresh install as well and still the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Damon,
Thank you for reaching out. I would suggest you use Python 3.7 version to run the OpenVINO toolkit. If possible, could you reinstall and set up the Post-Training Optimization Tool? Please refer to the following guide: https://docs.openvinotoolkit.org/latest/pot_README.html#install_and_set_up_post_training_optimization_tool
Regards,
Adli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Damon,
This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.
Regards,
Adli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Refer to this post for the answer: https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Post-training-Optimizer-Tool-library-conflicts/m-p/1229572#M21483
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page