Files
Glenn Ko f6f56dd882 chore: move api_workflows central location in krita scripts
chore: fix: krita script hardcoded filepath workarounds
2026-02-10 12:17:15 +08:00

604 lines
9.4 KiB
JSON

{
"7": {
"inputs": {
"keep_model_loaded": true,
"individual_objects": [
"74",
0
],
"sam2_model": [
"9",
0
],
"image": [
"35",
0
],
"coordinates_positive": [
"104",
1
],
"coordinates_negative": [
"105",
1
]
},
"class_type": "Sam2Segmentation",
"_meta": {
"title": "Sam2Segmentation"
}
},
"9": {
"inputs": {
"model": "sam2_hiera_large.safetensors",
"segmentor": [
"103",
0
],
"device": "cuda",
"precision": "fp16"
},
"class_type": "DownloadAndLoadSAM2Model",
"_meta": {
"title": "(Down)Load SAM2Model"
}
},
"30": {
"inputs": {
"mask": [
"77",
0
]
},
"class_type": "MaskToImage",
"_meta": {
"title": "Convert Mask to Image"
}
},
"33": {
"inputs": {
"value": "WORKING_FOLDER_LOCATION"
},
"class_type": "PrimitiveString",
"_meta": {
"title": "working folder location"
}
},
"34": {
"inputs": {
"a": [
"33",
0
],
"b": "/input_src"
},
"class_type": "JWStringConcat",
"_meta": {
"title": "String Concatenate"
}
},
"35": {
"inputs": {
"directory": [
"34",
0
],
"image_load_cap": 0,
"start_index": 0,
"load_always": true,
"sort_method": "Alphabetical (ASC)"
},
"class_type": "LoadImagesFromDir //Inspire",
"_meta": {
"title": "Load Image Batch From Dir (Inspire)"
}
},
"40": {
"inputs": {
"path_pattern": [
"41",
0
],
"start_index": 0,
"overwrite": "true",
"images": [
"30",
0
]
},
"class_type": "JWSaveImageSequence",
"_meta": {
"title": "Batch Save Image Sequence"
}
},
"41": {
"inputs": {
"a": [
"33",
0
],
"b": "/output/{:06d}.png"
},
"class_type": "JWStringConcat",
"_meta": {
"title": "String Concatenate"
}
},
"46": {
"inputs": {
"expand": [
"64",
0
],
"incremental_expandrate": 0,
"tapered_corners": [
"68",
0
],
"flip_input": false,
"blur_radius": 0,
"lerp_alpha": 1,
"decay_factor": 1,
"fill_holes": [
"61",
0
],
"mask": [
"7",
0
]
},
"class_type": "GrowMaskWithBlur",
"_meta": {
"title": "Grow Mask With Blur"
}
},
"50": {
"inputs": {
"a": [
"33",
0
],
"b": "/meta.json"
},
"class_type": "JWStringConcat",
"_meta": {
"title": "String Concatenate"
}
},
"51": {
"inputs": {
"file_path": [
"50",
0
],
"dictionary_name": "[filename]"
},
"class_type": "Load Text File",
"_meta": {
"title": "Load meta.json File"
}
},
"53": {
"inputs": {
"json_input": [
"51",
0
],
"key": "expand"
},
"class_type": "JSONKeyCheckerNode",
"_meta": {
"title": "JSON Key Checker"
}
},
"54": {
"inputs": {
"json_input": [
"51",
0
],
"key": "tapered_corners"
},
"class_type": "JSONKeyCheckerNode",
"_meta": {
"title": "JSON Key Checker"
}
},
"55": {
"inputs": {
"json_input": [
"51",
0
],
"key": "invert_mask"
},
"class_type": "JSONKeyCheckerNode",
"_meta": {
"title": "JSON Key Checker"
}
},
"56": {
"inputs": {
"json_input": [
"51",
0
],
"key": "fill_holes"
},
"class_type": "JSONKeyCheckerNode",
"_meta": {
"title": "JSON Key Checker"
}
},
"57": {
"inputs": {
"text": [
"56",
1
]
},
"class_type": "CR String To Boolean",
"_meta": {
"title": "🔧 CR String To Boolean"
}
},
"58": {
"inputs": {
"text": [
"55",
1
]
},
"class_type": "CR String To Boolean",
"_meta": {
"title": "🔧 CR String To Boolean"
}
},
"59": {
"inputs": {
"cond": [
"55",
0
],
"tt_value": [
"58",
0
],
"ff_value": [
"60",
0
]
},
"class_type": "ImpactConditionalBranch",
"_meta": {
"title": "ImpactConditionalBranch"
}
},
"60": {
"inputs": {
"value": true
},
"class_type": "BOOLConstant",
"_meta": {
"title": "true"
}
},
"61": {
"inputs": {
"cond": [
"56",
0
],
"tt_value": [
"57",
0
],
"ff_value": [
"56",
0
]
},
"class_type": "ImpactConditionalBranch",
"_meta": {
"title": "ImpactConditionalBranch"
}
},
"63": {
"inputs": {
"value": 0
},
"class_type": "INTConstant",
"_meta": {
"title": "0"
}
},
"64": {
"inputs": {
"cond": [
"53",
0
],
"tt_value": [
"65",
0
],
"ff_value": [
"63",
0
]
},
"class_type": "ImpactConditionalBranch",
"_meta": {
"title": "ImpactConditionalBranch"
}
},
"65": {
"inputs": {
"text": [
"53",
1
]
},
"class_type": "JWStringToInteger",
"_meta": {
"title": "String to Integer"
}
},
"67": {
"inputs": {
"text": [
"54",
1
]
},
"class_type": "CR String To Boolean",
"_meta": {
"title": "🔧 CR String To Boolean"
}
},
"68": {
"inputs": {
"cond": [
"54",
0
],
"tt_value": [
"67",
0
],
"ff_value": [
"54",
0
]
},
"class_type": "ImpactConditionalBranch",
"_meta": {
"title": "ImpactConditionalBranch"
}
},
"71": {
"inputs": {
"json_input": [
"51",
0
],
"key": "individual_objects"
},
"class_type": "JSONKeyCheckerNode",
"_meta": {
"title": "JSON Key Checker"
}
},
"73": {
"inputs": {
"text": [
"71",
1
]
},
"class_type": "CR String To Boolean",
"_meta": {
"title": "🔧 CR String To Boolean"
}
},
"74": {
"inputs": {
"cond": [
"71",
0
],
"tt_value": [
"73",
0
],
"ff_value": [
"71",
0
]
},
"class_type": "ImpactConditionalBranch",
"_meta": {
"title": "ImpactConditionalBranch"
}
},
"76": {
"inputs": {
"mask": [
"46",
0
]
},
"class_type": "InvertMask",
"_meta": {
"title": "InvertMask"
}
},
"77": {
"inputs": {
"cond": [
"59",
0
],
"tt_value": [
"76",
0
],
"ff_value": [
"46",
0
]
},
"class_type": "ImpactConditionalBranch",
"_meta": {
"title": "ImpactConditionalBranch"
}
},
"78": {
"inputs": {
"json_input": [
"51",
0
],
"key": "use_bboxes"
},
"class_type": "JSONKeyCheckerNode",
"_meta": {
"title": "JSON Key Checker"
}
},
"80": {
"inputs": {
"cond": [
"78",
0
],
"tt_value": [
"81",
0
],
"ff_value": [
"78",
0
]
},
"class_type": "ImpactConditionalBranch",
"_meta": {
"title": "ImpactConditionalBranch"
}
},
"81": {
"inputs": {
"text": [
"78",
1
]
},
"class_type": "CR String To Boolean",
"_meta": {
"title": "🔧 CR String To Boolean"
}
},
"88": {
"inputs": {
"image": [
"35",
0
]
},
"class_type": "GetImageSize",
"_meta": {
"title": "Get Image Size"
}
},
"89": {
"inputs": {
"comparison": ">",
"a": [
"88",
2
],
"b": [
"90",
0
]
},
"class_type": "SimpleComparison+",
"_meta": {
"title": "🔧 Simple Comparison"
}
},
"90": {
"inputs": {
"value": 1
},
"class_type": "INTConstant",
"_meta": {
"title": "1"
}
},
"100": {
"inputs": {
"text": "video"
},
"class_type": "CR Text",
"_meta": {
"title": "🔤 CR Text video"
}
},
"102": {
"inputs": {
"text": "single_image"
},
"class_type": "CR Text",
"_meta": {
"title": "🔤 CR Text single_image"
}
},
"103": {
"inputs": {
"cond": [
"89",
0
],
"tt_value": [
"100",
0
],
"ff_value": [
"102",
0
]
},
"class_type": "ImpactConditionalBranch",
"_meta": {
"title": "ImpactConditionalBranch"
}
},
"104": {
"inputs": {
"json_input": [
"51",
0
],
"key": "coordinates_positive"
},
"class_type": "JSONKeyCheckerNode",
"_meta": {
"title": "JSON Key Checker"
}
},
"105": {
"inputs": {
"json_input": [
"51",
0
],
"key": "coordinates_negative"
},
"class_type": "JSONKeyCheckerNode",
"_meta": {
"title": "JSON Key Checker"
}
}
}