|
- def config(self,
- batch_size=100,
- caffe_mean_file=None,
- channel_mean_value=None,
- dtype='float32',
- epochs=-1,
- force_gray=None,
- input_fitting='scale',
- input_normalization=None,
- mean_file=None,
- model_data_format='zone',
- model_quantize=None,
- optimize='Default',
- quantized_dtype='asymmetric_quantized-u8',
- quantized_moving_alpha=0.0,
- quantized_algorithm='normal',
- quantized_divergence_nbins=1024,
- random_brightness=None,
- random_contrast=None,
- random_crop=None,
- random_flip=None,
- random_mirror=None,
- reorder_channel=None,
- restart=False,
- samples=-1,
- need_horizontal_merge=False,
- deconv_merge=True,
- quantized_hybrid=False,
- output_optimize=0,
- remove_tensorflow_output_permute=False):
- """
- Configs
- :param batch_size: Batch size of input
- :param caffe_mean_file: Caffe mean file
- :param channel_mean_value: Channel mean value
- :param dtype: Data type
- :param epochs: Epochs
- :param force_gray: Force image to gray
- :param input_fitting:
- :param input_normalization:
- :param mean_file:
- :param model_data_format:
- :param model_quantize:
- :param optimize:
- :param quantized_dtype: quantize data type, currently support: asymmetric_quantized-u8, dynamic_fixed_point-8, dynamic_fixed_point-16
- :param quantized_moving_alpha:
- :param quantized_algorithm:
- :param quantized_divergence_nbins:
- :param random_brightness:
- :param random_contrast:
- :param random_crop:
- :param random_flip:
- :param random_mirror:
- :param reorder_channel:
- :param restart:
- :param samples:
- :param need_horizontal_merge: weather need merge horizontal layer, for inception serial models, it can optimize performance
- :param deconv_merge: merge deconv with bn or bn+scale
- :param quantized_hybrid:
- :param output_optimize: optimize get output time
- :param remove_tensorflow_output_permute: disable tensorflow model output permute, keep output format NCHW
- :return: None
- """
请问,model_data_format、quantized_algorithm、optimize这三个参数是什么作用?除了默认值还有哪些值可选?
|
|