Skip to content

Commit

Permalink
Merge pull request #174 from KchnKchn/benchmark-fix
Browse files Browse the repository at this point in the history
Исправление критической ошибки парсера
  • Loading branch information
Alexander Khvatov authored May 17, 2020
2 parents bd0833f + 350bf37 commit 90238d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/benchmark/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90238d3

Please sign in to comment.