diff --git a/src/benchmark/config_parser.py b/src/benchmark/config_parser.py index 4540abf60..1c36ad7d2 100644 --- a/src/benchmark/config_parser.py +++ b/src/benchmark/config_parser.py @@ -136,11 +136,11 @@ def __init__(self, task, name, model_path, weights_path, precision, source_frame raise ValueError('Model name is required parameter.') if self._parameter_not_is_none(model_path): self.model = model_path - else + else: raise ValueError('Path to model is required parameter.') if self._parameter_not_is_none(weights_path): self.weight = weights_path - else + else: raise ValueError('Path to model weights is required parameter.') if self._parameter_not_is_none(precision): self.precision = precision