hello
I downloaded the ONNX model vgg_ilsvrc_16_age_imdb_wiki.onnx from following link;
https://github.com/onnx/models/tree/main/vision/body_analysis/age_gender/models
The size of the ONNX model is 513 mb
i am trying to convert ONNX to blob using blobconverter package using following code;
import blobconverter
blob_path = blobconverter.from_onnx(
model="C:/Users/ABC/Documents/models-main/vision/body_analysis/age_gender/models/vgg_ilsvrc_16_age_imdb_wiki.onnx",
data_type="FP16",
shaves=6,
optimizer_params=[
"--input_shape=[1,3,224,224]",
"--mean_values=[127,127,127]",
"--scale_values=[255,255,255]"
],
)
I am getting following Bad Request error;
blob_path = blobconverter.from_onnx(
File "C:\ProgramData\Anaconda3\lib\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 "C:\ProgramData\Anaconda3\lib\site-packages\blobconverter__init.py", line 322, in compile_blob
response.raise_for_status()
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 1021, 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
How do i fix it?
thanks