bugfix: reshape mask to (B, H, W)
This commit is contained in:
@@ -244,7 +244,7 @@ class ReduxAdvanced:
|
||||
for t in conditioning:
|
||||
n = [torch.cat((t[0], cond), dim=1), t[1].copy()]
|
||||
c.append(n)
|
||||
return (c, image, masko)
|
||||
return (c, image, masko.squeeze(-1))
|
||||
|
||||
|
||||
# A dictionary that contains all nodes you want to export with their names
|
||||
@@ -258,4 +258,4 @@ NODE_CLASS_MAPPINGS = {
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"StyleModelApplySimple": "Apply style model (simple)",
|
||||
"ReduxAdvanced": "Apply Redux model (advanced)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user