-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unexpected exception when running the model optimizer on tiny Yolov3 #151
Comments
Dear @martin-91x, Thanks, Shubha |
Hi, thank you for your response. I'm now using tensorflow 1.12 and the error is gone. I tried running the model on the CPU and the GPU - and I'm getting an error in either case: CPURunning Resulting error:
GPURunning Resulting error:
SetupI'm running the entire pipeline on an Atom E3930 Processor (without AVX support) and I have built the samples with |
Dearest @martin-91x, For the CPU error, please build your IE and Samples. When you do so you will find a cpu_extensiond.dll (or *.so) under dldt\inference-engine\bin\intel64\Release. Please add the filename with the full path to the -l argument when you run object_detection_demo_yolov3_async.py For the GPU error, that looks like it may be a bug. It doesn't look right. According to https://docs.openvinotoolkit.org/latest/_docs_IE_DG_supported_plugins_Supported_Devices.html FP32 should work on GPU, though FP16 is preferred. And I noticed that you did not use a --data_type FP16 in your above mo_tf.py command. Can you kindly retry your MO with --data_type FP16 and try again on the Intel GPU ? Make sure you rename it via the --model_name and --output_dir switches passed into mo_tf.py so that you don't clobber your FP32 version of IR (which is default if you don't provide a --data_type value). Let me know how these steps work for you and please report back here. Thanks for using OpenVino ! Shubha |
I've added the -l switch and now I get the same error as with using -d GPU. So I think there must be a problem with my converted IR. So, what I've done is:
I've also tried using an FP16 version and running the sample with .jpg images and .mp4 videos. I'll try to investigate this further. Best |
Dearest @martin-91x Also use Tensorflow 1.11 or 1.12. Tensorflow 1.13 is not yet supported by Model Optimizer. Let me know how it works for you, Thanks, Shubha |
I'm using tensorflow 1.12.0 for converting the model (as you suggested after my initial post). Best, |
Dear @martin-91x Thanks, Shubha |
Ok, thank you a lot. |
Dearest @martin-91x Thank you for being patient with us ! Sincerely, Shubha |
Hi @shubha-ramani, |
Dear @martin-91x Shubha |
facing similar issues |
@shubha-ramani |
@martin-91x is this issue still actual? Can we close it? |
Seems to be resolved already. Closing |
…penvinotoolkit#151) * Check MatMul expected attributes in a predicate instead of assert in the transformation callback. Fixes PyTorch addmm layer tests. * Put rank == 2 restriction on MatMul conversion. Fixes PyTorch linear layer tests.
Hi,
I just tried using the model optimizer following the tutorial https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_convert_model_tf_specific_Convert_YOLO_From_Tensorflow.html.
Because I had some problems with the input shape, I ran the following command:
python mo_tf.py --input_model C:\Users\mle\Documents\OpenVino\tensorflow-yolo-v3\yolov3-tiny.pb --tensorflow_use_custom_operations_config extensions\front\tf\yolov3-tiny.json --input_shape [1,416,416,3]
[ ERROR ] -------------------------------------------------
[ ERROR ] ----------------- INTERNAL ERROR ----------------
[ ERROR ] Unexpected exception happened.
[ ERROR ] Please contact Model Optimizer developers and forward the following information:
[ ERROR ]
[ ERROR ] Traceback (most recent call last):
File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\main.py", line 312, in main
return driver(argv)
File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\main.py", line 263, in driver
is_binary=not argv.input_model_is_text)
File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\pipeline\tf.py", line 141, in tf2nx
graph_clean_up_tf(graph)
File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\middle\passes\eliminate.py", line 186, in graph_clean_up_tf
graph_clean_up(graph, ['TFCustomSubgraphCall', 'Shape'])
File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\middle\passes\eliminate.py", line 181, in graph_clean_up
add_constant_operations(graph)
File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\middle\passes\eliminate.py", line 145, in add_constant_operations
Const(graph, dict(value=node.value, shape=np.array(node.value.shape))).create_node_with_data(data_nodes=node)
File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\ops\op.py", line 207, in create_node_with_data
[np.array_equal(old_data_value[id], data_node.value) for id, data_node in enumerate(data_nodes)])
AssertionError
[ ERROR ] ---------------- END OF BUG REPORT --------------
[ ERROR ] -------------------------------------------------
I just recognized that there is another implementation of yolo for OpenVino. I will try this one out as well.
Best,
Martin
The text was updated successfully, but these errors were encountered: