def _generate_result(self, asset): # routine to call the command-line executable and generate feature # scores in the log file. quality_width, quality_height = asset.quality_width_height log_file_path = self._get_log_file_path(asset) yuv_type = self._get_workfile_yuv_type(asset) ref_path = asset.ref_procfile_path dis_path = asset.dis_procfile_path w = quality_width h = quality_height logger = self.logger ExternalProgramCaller.call_vmafexec_multi_features( ['float_adm', 'float_vif', 'float_motion', 'float_ansnr'], yuv_type, ref_path, dis_path, w, h, log_file_path, logger, options={ 'float_adm': { 'debug': True }, 'float_vif': { 'debug': True }, 'float_motion': { 'debug': True }, })
def _generate_result(self, asset): quality_width, quality_height = asset.quality_width_height log_file_path = self._get_log_file_path(asset) yuv_type = self._get_workfile_yuv_type(asset) ref_path = asset.ref_procfile_path dis_path = asset.dis_procfile_path w = quality_width h = quality_height logger = self.logger ExternalProgramCaller.call_vmafexec_multi_features( ['adm', 'vif', 'motion', 'float_ansnr'], yuv_type, ref_path, dis_path, w, h, log_file_path, logger, options={ 'adm': { 'debug': True }, 'vif': { 'debug': True }, 'motion': { 'debug': True }, })
def _generate_result(self, asset): quality_width, quality_height = asset.quality_width_height log_file_path = self._get_log_file_path(asset) yuv_type = self._get_workfile_yuv_type(asset) ref_path = asset.ref_procfile_path dis_path = asset.dis_procfile_path w = quality_width h = quality_height logger = self.logger features = ['adm', 'vif', 'motion', 'float_ansnr'] options = { 'adm': { 'debug': True }, 'vif': { 'debug': True }, 'motion': { 'debug': True }, } if self.optional_dict is not None: for opt in self.optional_dict: if opt == 'vif_enhn_gain_limit': options['vif']['vif_enhn_gain_limit'] = self.optional_dict[ 'vif_enhn_gain_limit'] elif opt == 'adm_enhn_gain_limit': options['adm']['adm_enhn_gain_limit'] = self.optional_dict[ 'adm_enhn_gain_limit'] elif opt == 'adm_norm_view_dist': options['adm']['adm_norm_view_dist'] = self.optional_dict[ 'adm_norm_view_dist'] elif opt == 'adm_ref_display_height': options['adm'][ 'adm_ref_display_height'] = self.optional_dict[ 'adm_ref_display_height'] elif opt == 'motion_force_zero': options['motion'][ 'motion_force_zero'] = self.optional_dict[ 'motion_force_zero'] else: pass ExternalProgramCaller.call_vmafexec_multi_features(features, yuv_type, ref_path, dis_path, w, h, log_file_path, logger, options=options)
def _generate_result(self, asset): # routine to call the command-line executable and generate feature # scores in the log file. quality_width, quality_height = asset.quality_width_height log_file_path = self._get_log_file_path(asset) yuv_type = self._get_workfile_yuv_type(asset) ref_path = asset.ref_procfile_path dis_path = asset.dis_procfile_path w = quality_width h = quality_height logger = self.logger features = ['float_adm', 'float_vif', 'float_motion', 'float_ansnr'] options = { 'float_adm': { 'debug': True }, 'float_vif': { 'debug': True }, 'float_motion': { 'debug': True }, } if self.optional_dict is not None: for opt in self.optional_dict: if opt == 'vif_enhn_gain_limit': options['float_vif'][ 'vif_enhn_gain_limit'] = self.optional_dict[ 'vif_enhn_gain_limit'] elif opt == 'vif_kernelscale': options['float_vif'][ 'vif_kernelscale'] = self.optional_dict[ 'vif_kernelscale'] elif opt == 'adm_enhn_gain_limit': options['float_adm'][ 'adm_enhn_gain_limit'] = self.optional_dict[ 'adm_enhn_gain_limit'] elif opt == 'adm_norm_view_dist': options['float_adm'][ 'adm_norm_view_dist'] = self.optional_dict[ 'adm_norm_view_dist'] elif opt == 'adm_ref_display_height': options['float_adm'][ 'adm_ref_display_height'] = self.optional_dict[ 'adm_ref_display_height'] elif opt == 'motion_force_zero': options['float_motion'][ 'motion_force_zero'] = self.optional_dict[ 'motion_force_zero'] else: pass if self.optional_dict2 is not None: for opt in self.optional_dict2: if opt == 'disable_avx': options['disable_avx'] = self.optional_dict2['disable_avx'] ExternalProgramCaller.call_vmafexec_multi_features(features, yuv_type, ref_path, dis_path, w, h, log_file_path, logger, options=options)