mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-26 22:30:19 +08:00
Merge branch 'comfyanonymous:master' into master
This commit is contained in:
commit
8609a6dced
@ -696,7 +696,7 @@ def unet_inital_load_device(parameters, dtype):
|
|||||||
return torch_dev
|
return torch_dev
|
||||||
|
|
||||||
cpu_dev = torch.device("cpu")
|
cpu_dev = torch.device("cpu")
|
||||||
if DISABLE_SMART_MEMORY:
|
if DISABLE_SMART_MEMORY or vram_state == VRAMState.NO_VRAM:
|
||||||
return cpu_dev
|
return cpu_dev
|
||||||
|
|
||||||
model_size = dtype_size(dtype) * parameters
|
model_size = dtype_size(dtype) * parameters
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user