Пример #1
0
def main():
    single_image_applier = ResnetSingleImageApplier()
    default_inference_mode_config = InfModeFullImage.make_default_config(model_result_suffix='_resnet')
    dataset_applier = BatchInferenceApplier(single_image_inference=single_image_applier,
                                            default_inference_mode_config=default_inference_mode_config,
                                            config_validator=JsonConfigValidator())
    dataset_applier.run_inference()
Пример #2
0
 def _validate_train_cfg(self, config):
     JsonConfigValidator().validate_train_cfg(config)
Пример #3
0
 def _validate_model_config(self, config):
     JsonConfigValidator().validate_inference_cfg(config)