checkpoint

This commit is contained in:
Will Miao
2025-04-01 19:17:43 +08:00
parent 195866b00d
commit 27db60ce68
6 changed files with 601 additions and 270 deletions

View File

@@ -48,6 +48,10 @@ def transform_empty_latent_presets(inputs: Dict) -> Dict:
return {"width": width, "height": height, "size": f"{width}x{height}"}
def transform_int_constant(inputs: Dict) -> int:
"""Transform function for INTConstant nodes"""
return inputs.get("value", 0)
# =============================================================================
# Register Mappers
# =============================================================================
@@ -65,6 +69,10 @@ KJNODES_MAPPERS = {
"EmptyLatentImagePresets": {
"inputs_to_track": ["dimensions", "invert", "batch_size"],
"transform_func": transform_empty_latent_presets
},
"INTConstant": {
"inputs_to_track": ["value"],
"transform_func": transform_int_constant
}
}