Skip to content

Commit

Permalink
Fix best models loading (for dataset generation)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsvgit committed Dec 25, 2023
1 parent 136bc2d commit 9e32202
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions VSharp.ML.AIAgent/ml/common_model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ def csv2best_models(ref_model_init: t.Callable[[], torch.nn.Module]):
)
ref_model = load_model(Path(path_to_model), model=ref_model_init())

ref_model.to(GeneralConfig.DEVICE)
best_models[map_name] = (
ref_model,
best_model_score[map_name],
best_model_name,
)
ref_model.to(GeneralConfig.DEVICE)
best_models[map_name] = (
ref_model,
best_model_score[map_name],
best_model_name,
)
return best_models


Expand Down

0 comments on commit 9e32202

Please sign in to comment.