1.PadResizeTransformer(target_size=(1, 1382400), pad_value=0., pad_position='bottom_right'),
前处理成(1, 1382400),还是报错:
2023-08-08 14:08:50,421 INFO Model has 2 inputs according to model file
2023-08-08 14:08:50,421 INFO Input shape [1, 1382400] has length: 2, make sure it is a featuremap input
2023-08-08 14:08:50,421 INFO Input shape [1, 3] has length: 2, make sure it is a featuremap input
2023-08-08 14:08:50,421 ERROR Parse 'input_parameters' failed!
2023-08-08 14:08:50,422 ERROR yaml file parse failed. Please double check your config file inputs
2023-08-08 14:08:50,423 ERROR list index out of range
2.看python脚本:
File "/usr/local/lib/python3.6/site-packages/horizon_tc_ui/config/mapper_conf_parser.py", line 598, in _validate_input_type_and_layout
and input_shape[3] != 1) or (train_layout == "NCHW"
IndexError: list index out of range
是需要四维的,但是我的是一维 gray,只取Y方向,因该是不用配置layout,但不配置会报错:
2023-08-08 14:16:10,129 INFO Model has 2 inputs according to model file
2023-08-08 14:16:10,129 INFO Input shape [1, 1382400] has length: 2, make sure it is a featuremap input
2023-08-08 14:16:10,129 INFO Input shape [1, 3] has length: 2, make sure it is a featuremap input
2023-08-08 14:16:10,129 ERROR Parse 'input_parameters' failed!
2023-08-08 14:16:10,129 ERROR yaml file parse failed. Please double check your config file inputs
2023-08-08 14:16:10,131 ERROR Input_layout_rt missing. input 0 input_type_rt is: gray. input_layout_rt is required for this type
3.关于calibration_parameters:
cal_data_dir: './calibration_data_gray_uint8;./calibration_data_angle_f32_bin'
cal_data_type: 'float32;float32'
calibration_type: 'default'
cal_data_type和input_type_train必须要相同吗?