mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-18 10:33:01 +08:00
Pytorch is stupid. (#10398)
This commit is contained in:
parent
dad076aee6
commit
b4f30bd408
@ -58,7 +58,7 @@ except (ModuleNotFoundError, TypeError):
|
|||||||
NVIDIA_MEMORY_CONV_BUG_WORKAROUND = False
|
NVIDIA_MEMORY_CONV_BUG_WORKAROUND = False
|
||||||
try:
|
try:
|
||||||
if comfy.model_management.is_nvidia():
|
if comfy.model_management.is_nvidia():
|
||||||
if torch.backends.cudnn.version() >= 91200 and comfy.model_management.torch_version_numeric >= (2, 9) and comfy.model_management.torch_version_numeric <= (2, 10):
|
if torch.backends.cudnn.version() >= 91002 and comfy.model_management.torch_version_numeric >= (2, 9) and comfy.model_management.torch_version_numeric <= (2, 10):
|
||||||
#TODO: change upper bound version once it's fixed'
|
#TODO: change upper bound version once it's fixed'
|
||||||
NVIDIA_MEMORY_CONV_BUG_WORKAROUND = True
|
NVIDIA_MEMORY_CONV_BUG_WORKAROUND = True
|
||||||
logging.info("working around nvidia conv3d memory bug.")
|
logging.info("working around nvidia conv3d memory bug.")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user