fix: Concat Conditionings crash

This commit is contained in:
Dr.Lt.Data
2023-12-11 19:18:46 +09:00
parent 9d3f786e5e
commit b8a4febd51
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import configparser
import os
version = "V4.45.1"
version = "V4.45.2"
dependency_version = 19
+3 -3
View File
@@ -252,9 +252,9 @@ class ConcatConditionings:
CATEGORY = "ImpactPack/__for_testing"
def doit(self, **kwargs):
conditioning_to = kwargs.values()[0]
conditioning_to = list(kwargs.values())[0]
for k, conditioning_from in kwargs.items()[1:]:
for k, conditioning_from in list(kwargs.items())[1:]:
out = []
if len(conditioning_from) > 1:
print("Warning: ConcatConditionings {k} contains more than 1 cond, only the first one will actually be applied to conditioning1.")
@@ -263,7 +263,7 @@ class ConcatConditionings:
for i in range(len(conditioning_to)):
t1 = conditioning_to[i][0]
tw = torch.cat((t1, cond_from),1)
tw = torch.cat((t1, cond_from), 1)
n = [tw, conditioning_to[i][1].copy()]
out.append(n)