Skip to content

Commit

Permalink
Add missing return in string_to_object in InferenceConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mdw771 committed May 22, 2024
1 parent 166a732 commit 5669a09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generic_trainer/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class InferenceConfig(Config):
def string_to_object(self, key, value):
if key == 'model_save_dir':
self.pretrained_model_path = os.path.join(value, 'best_model.pth')
return value


@dataclasses.dataclass
Expand Down

0 comments on commit 5669a09

Please sign in to comment.