I try hailo optimize model_256.har --calib-set-path dataset_rgb_500.npy
and it was error:
*raise AccelerasUnsupportedError( hailo_model_optimization.acceleras.utils.acceleras_exceptions.AccelerasUnsupportedError: layer sd_vae_256/matmul2 does not support shift delta. To overcome this issue you should force larger range at the inputs of the layer using command quantization_param([layer_name], force_range_in=[range_min, range_max], force_range_index=index) current range of input 0 is [0.001, 0.009] and input 1 is [-7.718, 7.754].You should increase the multiplication of these ranges by a factor of 7.738, e.g. you can apply factor of sqrt(7.738) to both inputs: quantization_param([sd_vae_256/matmul2], force_range_in=[0.003, 0.025], force_range_index=0) quantization_param([sd_vae_256/matmul2], force_range_in=[-21.469, 21.570], force_range_index=1) *
Then i try make script from error
cat scr.alls
*quantization_param([sd_vae_256/matmul2], force_range_in=[0.003, 0.025], force_range_index=0)
quantization_param([sd_vae_256/matmul2], force_range_in=[-21.469, 21.570], force_range_index=1)
*
If i try with script": *hailo optimize model_256.har --calib-set-path dataset_rgb_500.npy --model-script scr.alls
*
an error appears: *
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for ModelOptimizationConfig
translation_config → layers → sd_vae_256/matmul2 → force_range_in
wrong tuple length 4, expected 2 (type=value_error.tuple.length; actual_length=4; expected_length=2)
*
How to solve this problem?