From ab5dac03c6ab0e201efc2ec6c1dcd50124f36f0a Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Fri, 31 Jan 2025 03:54:39 -0600 Subject: [PATCH] Fixed BIGMAX_TENSOR to not be so big that it becomes an int64 instead of a float32 --- adv_control/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adv_control/utils.py b/adv_control/utils.py index 4dc7363..0f023e9 100644 --- a/adv_control/utils.py +++ b/adv_control/utils.py @@ -18,7 +18,7 @@ from .logger import logger BIGMIN = -(2**53-1) BIGMAX = (2**53-1) -BIGMAX_TENSOR = torch.tensor(BIGMAX) +BIGMAX_TENSOR = torch.tensor(9999999999.9) ORIG_PREVIOUS_CONTROLNET = "_orig_previous_controlnet" CONTROL_INIT_BY_ACN = "_control_init_by_ACN"