Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion patches/external_pr/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def train_hypernetwork_ui(*args):
shared.loaded_hypernetwork = initial_hypernetwork
else:
shared.loaded_hypernetworks = []
del hypernetwork
if 'hypernetwork' in locals():
del hypernetwork
gc.collect()
shared.sd_model.cond_stage_model.to(devices.device)
shared.sd_model.first_stage_model.to(devices.device)
Expand Down