mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-13 18:47:00 +08:00
cuda
This commit is contained in:
parent
ace7627a86
commit
461d4ff420
@ -515,7 +515,7 @@ def unet_offload_device():
|
|||||||
if vram_state == VRAMState.HIGH_VRAM:
|
if vram_state == VRAMState.HIGH_VRAM:
|
||||||
return get_torch_device()
|
return get_torch_device()
|
||||||
else:
|
else:
|
||||||
return torch.device("cpu")
|
return torch.device("cuda")
|
||||||
|
|
||||||
def unet_inital_load_device(parameters, dtype):
|
def unet_inital_load_device(parameters, dtype):
|
||||||
torch_dev = get_torch_device()
|
torch_dev = get_torch_device()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user