mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-06 08:07:04 +08:00
Invert image_weight value on Luma Image to Image node (#156)
This commit is contained in:
parent
98bfa52ccf
commit
79edd2dde7
@ -328,11 +328,11 @@ class LumaImageModifyNode(ComfyNodeABC):
|
|||||||
"image_weight": (
|
"image_weight": (
|
||||||
IO.FLOAT,
|
IO.FLOAT,
|
||||||
{
|
{
|
||||||
"default": 1.0,
|
"default": 0.1,
|
||||||
"min": 0.02,
|
"min": 0.0,
|
||||||
"max": 1.0,
|
"max": 0.98,
|
||||||
"step": 0.01,
|
"step": 0.01,
|
||||||
"tooltip": "Weight of the image; the closer to 0.0, the less the image will be modified.",
|
"tooltip": "Weight of the image; the closer to 1.0, the less the image will be modified.",
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
"model": ([model.value for model in LumaImageModel],),
|
"model": ([model.value for model in LumaImageModel],),
|
||||||
@ -380,7 +380,7 @@ class LumaImageModifyNode(ComfyNodeABC):
|
|||||||
prompt=prompt,
|
prompt=prompt,
|
||||||
model=model,
|
model=model,
|
||||||
modify_image_ref=LumaModifyImageRef(
|
modify_image_ref=LumaModifyImageRef(
|
||||||
url=image_url, weight=round(image_weight, 2)
|
url=image_url, weight=round(max(min(1.0-image_weight, 0.98), 0.0), 2)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
auth_token=auth_token,
|
auth_token=auth_token,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user