mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
Add torch.device
This commit is contained in:
+1
-1
@@ -311,7 +311,7 @@ def run_MEHmodelmerger(id_task, **kwargs): # pylint: disable=unused-argument
|
||||
kwargs.pop("beta_mid_block", None)
|
||||
kwargs.pop("beta_out_blocks", None)
|
||||
kwargs.pop("beta_preset", None)
|
||||
|
||||
|
||||
if kwargs["device"] == "cuda":
|
||||
sd_models.unload_model_weights()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user