mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-10 05:15:05 +08:00
clamp ColorToMask
This commit is contained in:
parent
0298e965d2
commit
3275b332f3
4
nodes.py
4
nodes.py
@ -1036,6 +1036,7 @@ controls the number of images processed at once.
|
|||||||
pbar.update(batch_count)
|
pbar.update(batch_count)
|
||||||
|
|
||||||
tensors_out = torch.cat(tensors_out, dim=0)
|
tensors_out = torch.cat(tensors_out, dim=0)
|
||||||
|
tensors_out = torch.clamp(tensors_out, min=0.0, max=1.0)
|
||||||
return tensors_out,
|
return tensors_out,
|
||||||
|
|
||||||
class ConditioningMultiCombine:
|
class ConditioningMultiCombine:
|
||||||
@ -4965,7 +4966,6 @@ If no image is provided, mode is set to text-to-image
|
|||||||
if model != "sd3-turbo":
|
if model != "sd3-turbo":
|
||||||
data["negative_prompt"] = n_prompt
|
data["negative_prompt"] = n_prompt
|
||||||
|
|
||||||
|
|
||||||
headers={
|
headers={
|
||||||
"accept": "image/*"
|
"accept": "image/*"
|
||||||
}
|
}
|
||||||
@ -5081,8 +5081,6 @@ class WeightScheduleConvert:
|
|||||||
"default": 'list'
|
"default": 'list'
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
RETURN_TYPES = ("FLOAT",)
|
RETURN_TYPES = ("FLOAT",)
|
||||||
FUNCTION = "execute"
|
FUNCTION = "execute"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user