oskarastrom commited on
Commit
ac53593
·
1 Parent(s): cf87b0c

Update InferenceConfig.py

Browse files
Files changed (1) hide show
  1. InferenceConfig.py +3 -3
InferenceConfig.py CHANGED
@@ -57,9 +57,9 @@ class InferenceConfig:
57
 
58
  def find_model(self, model_list):
59
  print("weights", self.weights)
60
- for model_name, model_path in enumerate(model_list):
61
- print("Path", model_path, "->", model_name)
62
- if model_path == self.weights:
63
  return model_name
64
  print("not found")
65
  return None
 
57
 
58
  def find_model(self, model_list):
59
  print("weights", self.weights)
60
+ for model_name in model_list:
61
+ print("Path", model_list[model_name], "->", model_name)
62
+ if model_list[model_name] == self.weights:
63
  return model_name
64
  print("not found")
65
  return None