Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6559 Discussions

I can't configure a .onnx extension file to IR

Ziad21
Novice
722 Views

I'm receiving this kind of problem as i am trying to convert an .onnx extension through the model optimizer using both mo.py and mo_onnx.py so please i would be thankful if someone can help 

thanks  

 

ERROR:root:----------------- INTERNAL ERROR ----------------
[ ERROR ] ----------------- INTERNAL ERROR ----------------
ERROR:root:Unexpected exception happened.
[ ERROR ] Unexpected exception happened.
ERROR:root:Please contact Model Optimizer developers and forward the following information:
[ ERROR ] Please contact Model Optimizer developers and forward the following information:
ERROR:root:[Errno 13] Permission denied: 'C:\\Program Files (x86)\\Intel\\openvino_2021.4.752\\deployment_tools\\model_optimizer\\.\\anomalydetect_tmp.bin'
[ ERROR ] [Errno 13] Permission denied: 'C:\\Program Files (x86)\\Intel\\openvino_2021.4.752\\deployment_tools\\model_optimizer\\.\\anomalydetect_tmp.bin'
ERROR:root:Traceback (most recent call last):
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\main.py", line 394, in main
ret_code = driver(argv)
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\main.py", line 356, in driver
ret_res = emit_ir(prepare_ir(argv), argv)
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\main.py", line 268, in emit_ir
prepare_emit_ir(graph=graph,
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\pipeline\common.py", line 213, in prepare_emit_ir
serialize_constants(graph, bin_file)
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\back\ie_ir_ver_2\emitter.py", line 38, in serialize_constants
with open(bin_file_name, 'wb') as bin_file:
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files (x86)\\Intel\\openvino_2021.4.752\\deployment_tools\\model_optimizer\\.\\anomalydetect_tmp.bin'

[ ERROR ] Traceback (most recent call last):
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\main.py", line 394, in main
ret_code = driver(argv)
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\main.py", line 356, in driver
ret_res = emit_ir(prepare_ir(argv), argv)
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\main.py", line 268, in emit_ir
prepare_emit_ir(graph=graph,
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\pipeline\common.py", line 213, in prepare_emit_ir
serialize_constants(graph, bin_file)
File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\model_optimizer\mo\back\ie_ir_ver_2\emitter.py", line 38, in serialize_constants
with open(bin_file_name, 'wb') as bin_file:
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files (x86)\\Intel\\openvino_2021.4.752\\deployment_tools\\model_optimizer\\.\\anomalydetect_tmp.bin'

 

 

0 Kudos
2 Replies
IntelSupport
Community Manager
708 Views

Hi Ziad21,

 

Thanks for reaching out.

 

This is an issue with writing permissions for the directory that you are converting the model. Since you are using Windows, I would suggest three approaches to you:

 

  • Open Command Prompt and run as Administrator.
  • Change to a directory that doesn't need Administrator rights to write to it, for example, C:\Users\your-username\Desktop
  • Disconnect your network from VPN.

 

 

Regards,

Aznie

 


0 Kudos
IntelSupport
Community Manager
651 Views

Hi Ziad21,


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,

Aznie


0 Kudos
Reply