erik
That's good to know.
By the way, so far I am not able to perform blobconverter over the script, could you help to take a look what's wrong bleow:
import blobconverter
blob_path = blobconverter.from_onnx(
model="model.onnx",
data_type="FP16",
shaves=6,
optimizer_params=[
"-ip U8",
"-op FP16",
],
)
And where to put the openvino version 2021.4 in the script?
If I run the above script, the error message is as below:
Downloading /home/paul/.cache/blobconverter/model_openvino_2021.4_6shave.blob...
{
"exit_code": 1,
"message": "Command failed with exit code 1, command: /app/venvs/venv2021_4/bin/python /app/model_compiler/openvino_2021.4/converter.py --precisions FP16 --output_dir /tmp/blobconverter/a02cbb6fa85b4407a6463849a6ea51eb --download_dir /tmp/blobconverter/a02cbb6fa85b4407a6463849a6ea51eb --name model --model_root /tmp/blobconverter/a02cbb6fa85b4407a6463849a6ea51eb",
"stderr": "usage: main.py [options]\nmain.py: error: unrecognized arguments: -ip U8\n",
"stdout": "========== Converting model to IR (FP16)\nConversion command: /app/venvs/venv2021_4/bin/python -m mo --framework=onnx --data_type=FP16 --output_dir=/tmp/blobconverter/a02cbb6fa85b4407a6463849a6ea51eb/model/FP16 --model_name=model '-ip U8' '-op FP16' --data_type=FP16 --input_model=/tmp/blobconverter/a02cbb6fa85b4407a6463849a6ea51eb/model/FP16/model.onnx\n\nFAILED:\nmodel\n"
}
Traceback (most recent call last):
File "/home/paul/oak/MRE/mre.py", line 27, in <module>
blob_path = blobconverter.from_onnx(
File "/home/paul/oak/lib/python3.8/site-packages/blobconverter/__init__.py", line 428, in from_onnx
return compile_blob(blob_name=Path(model_name).stem, req_data={"name": Path(model_name).stem}, req_files=files, data_type=data_type, **kwargs)
File "/home/paul/oak/lib/python3.8/site-packages/blobconverter/__init__.py", line 322, in compile_blob
response.raise_for_status()
File "/home/paul/oak/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: BAD REQUEST for url: https://blobconverter.luxonis.com/compile?version=2021.4&no_cache=False