mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-03 03:07:06 +08:00
Update nodes_train.py
This commit is contained in:
parent
c408c4675f
commit
3e3adfe804
@ -597,7 +597,7 @@ class TrainLoraNode:
|
|||||||
finally:
|
finally:
|
||||||
for m in mp.model.modules():
|
for m in mp.model.modules():
|
||||||
unpatch(m)
|
unpatch(m)
|
||||||
del ss, train_sampler, optimizer
|
del train_sampler, optimizer
|
||||||
torch.cuda.empty_cache()
|
torch.cuda.empty_cache()
|
||||||
|
|
||||||
for adapter in all_weight_adapters:
|
for adapter in all_weight_adapters:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user