Hi
I have converted my .pt to .onnx file but having trouble in conversion of .onnx file to blob format via the provided blobconverter tool. The error log is copied below:
Error message
Command failed with exit code 1, command: /app/venvs/venv2022_1/bin/python /app/model_compiler/openvino_2022.1/converter.py --precisions FP16 --output_dir /tmp/blobconverter/ad8ecc33cc4c425c92190b5df5734662 --download_dir /tmp/blobconverter/ad8ecc33cc4c425c92190b5df5734662 --name model --model_root /tmp/blobconverter/ad8ecc33cc4c425c92190b5df5734662
Console output (stdout)
========== Converting model to IR (FP16)
Conversion command: /app/venvs/venv2022_1/bin/python -- /app/venvs/venv2022_1/bin/mo --framework=onnx --data_type=FP16 --output_dir=/tmp/blobconverter/ad8ecc33cc4c425c92190b5df5734662/model/FP16 --model_name=model --input= --data_type=FP16 '--mean_values=[127.5,127.5,127.5]' '--scale_values=[255,255,255]' --input_model=/tmp/blobconverter/ad8ecc33cc4c425c92190b5df5734662/model/FP16/model.onnx
Model Optimizer arguments:
Common parameters:
- Path to the Input Model: /tmp/blobconverter/ad8ecc33cc4c425c92190b5df5734662/model/FP16/model.onnx
- Path for generated IR: /tmp/blobconverter/ad8ecc33cc4c425c92190b5df5734662/model/FP16
- IR output name: model
- Log level: ERROR
- Batch: Not specified, inherited from the model
- Input layers: Not specified, inherited from the model
- Output layers: Not specified, inherited from the model
- Input shapes: Not specified, inherited from the model
- Source layout: Not specified
- Target layout: Not specified
- Layout: Not specified
- Mean values: [127.5,127.5,127.5]
- Scale values: [255,255,255]
- Scale factor: Not specified
- Precision of IR: FP16
- Enable fusing: True
- User transformations: Not specified
- Reverse input channels: False
- Enable IR generation for fixed input shape: False
- Use the transformations config file: None
Advanced parameters:
- Force the usage of legacy Frontend of Model Optimizer for model conversion into IR: False
- Force the usage of new Frontend of Model Optimizer for model conversion into IR: False
OpenVINO runtime found in: /opt/intel/openvino2022_1/python/python3.8/openvino
OpenVINO runtime version: 2022.1.0-7019-cdb9bec7210-releases/2022/1
Model Optimizer version: 2022.1.0-7019-cdb9bec7210-releases/2022/1
[WARN] 2024-10-21T11:04:19z frontends/onnx/frontend/src/ops_bridge.cpp 240 Currently ONNX operator set version: 18 is unsupported. Falling back to: 15
FAILED:
model
Error output (stderr)
[ ERROR ] -------------------------------------------------
[ ERROR ] ----------------- INTERNAL ERROR ----------------
[ ERROR ] Unexpected exception happened.
[ ERROR ] Please contact Model Optimizer developers and forward the following information:
[ ERROR ] invalid external data: ExternalDataInfo(data_full_path: /tmp/blobconverter/005f4f8f960342058b5275be32c79dd2/model/FP16/my_model.onnx.data, offset: 512, data_length: 12800, sha1_digest: 0)
[ ERROR ] Traceback (most recent call last):
File "/app/venvs/venv2022_1/lib/python3.8/site-packages/openvino/tools/mo/main.py", line 533, in main
ret_code = driver(argv)
File "/app/venvs/venv2022_1/lib/python3.8/site-packages/openvino/tools/mo/main.py", line 489, in driver
graph, ngraph_function = prepare_ir(argv)
File "/app/venvs/venv2022_1/lib/python3.8/site-packages/openvino/tools/mo/main.py", line 394, in prepare_ir
ngraph_function = moc_pipeline(argv, moc_front_end)
File "/app/venvs/venv2022_1/lib/python3.8/site-packages/openvino/tools/mo/moc_frontend/pipeline.py", line 147, in moc_pipeline
ngraph_function = moc_front_end.convert(input_model)
RuntimeError: invalid external data: ExternalDataInfo(data_full_path: /tmp/blobconverter/005f4f8f960342058b5275be32c79dd2/model/FP16/my_model.onnx.data, offset: 512, data_length: 12800, sha1_digest: 0)
[ ERROR ] ---------------- END OF BUG REPORT --------------
[ ERROR ] -------------------------------------------------