Skip to content

Commit 9c15c72

Browse files
committed
Fixed BIGMAX_TENSOR to not be so big that it becomes an int64 instead of a float32
1 parent 49e25ab commit 9c15c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

animatediff/utils_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
BIGMIN = -(2**53-1)
2525
BIGMAX = (2**53-1)
26-
BIGMAX_TENSOR = torch.tensor(BIGMAX)
26+
BIGMAX_TENSOR = torch.tensor(9999999999.9)
2727

2828
MAX_RESOLUTION = 16384 # mirrors ComfyUI's nodes.py MAX_RESOLUTION
2929

0 commit comments

Comments
 (0)