Skip to content

Commit

Permalink
No longer necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed May 12, 2024
1 parent e1489ad commit 49c20cd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions comfy/model_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,6 @@ def load_models_gpu(models, memory_required=0, force_patch_weights=False):
loaded_model = LoadedModel(x)

if loaded_model in current_loaded_models:
index = current_loaded_models.index(loaded_model)
current_loaded_models.insert(0, current_loaded_models.pop(index))
models_already_loaded.append(loaded_model)
else:
if hasattr(x, "model"):
Expand Down

0 comments on commit 49c20cd

Please sign in to comment.