mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-05-02 01:40:10 +08:00
Update curve_nodes.py
This commit is contained in:
parent
d31a7ce2a1
commit
9c6da66100
@ -290,7 +290,7 @@ class WeightScheduleConvert:
|
|||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
RETURN_TYPES = ("FLOAT", "STRING",)
|
RETURN_TYPES = ("FLOAT", "STRING", "INT",)
|
||||||
FUNCTION = "execute"
|
FUNCTION = "execute"
|
||||||
CATEGORY = "KJNodes"
|
CATEGORY = "KJNodes"
|
||||||
DESCRIPTION = """
|
DESCRIPTION = """
|
||||||
@ -357,7 +357,7 @@ Converts different value lists/series to another type.
|
|||||||
out = torch.tensor(float_values, dtype=torch.float32),
|
out = torch.tensor(float_values, dtype=torch.float32),
|
||||||
elif output_type == 'match_input':
|
elif output_type == 'match_input':
|
||||||
out = float_values,
|
out = float_values,
|
||||||
return (out, [str(value) for value in float_values],)
|
return (out, [str(value) for value in float_values], [int(value) for value in float_values])
|
||||||
|
|
||||||
|
|
||||||
class FloatToMask:
|
class FloatToMask:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user