diff --git a/Nodes/modules/exif_data_checker.py b/Nodes/modules/exif_data_checker.py index e9b5fab..6a66d93 100644 --- a/Nodes/modules/exif_data_checker.py +++ b/Nodes/modules/exif_data_checker.py @@ -3,6 +3,7 @@ import difflib import folder_paths import comfy.samplers import os +import numpy as np def get_model_hash(filename): hash_sha256 = hashlib.sha256() @@ -20,17 +21,16 @@ def check_model_from_exif(model_hash_exif, model_name_exif, model_name, model_ha allcheckpoints = folder_paths.get_filename_list("checkpoints") source_model_name = model_name_exif.split('_', 1)[-1] - cutoff_list = [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1] + cutoff_list = list(np.around(np.arange(0.1, 1.05, 0.05).tolist(), 2))[::-1] # [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1] is_found = [] - for trycut in cutoff_list: - is_found = difflib.get_close_matches(model_name_exif, allcheckpoints, cutoff=trycut) + is_found = difflib.get_close_matches(source_model_name, allcheckpoints, cutoff=round(trycut, 2)) if len(is_found) == 1: break if len(is_found) != 1: for trycut in cutoff_list: - is_found = difflib.get_close_matches(source_model_name, allcheckpoints, cutoff=trycut) + is_found = difflib.get_close_matches(model_name_exif, allcheckpoints, cutoff=round(trycut, 2)) if len(is_found) == 1: break @@ -47,7 +47,12 @@ def check_model_from_exif(model_hash_exif, model_name_exif, model_name, model_ha else: model_name = valid_model else: - print('Model name:' + model_name_exif + ' not available by diffcheck, using system source: ' + model_name) + if len(is_found) == 0: + print('Model name:' + model_name_exif + ' not available by diffcheck, using system source: ' + model_name) + if len(is_found) > 0: + print('Model name:' + model_name_exif + ' more than one results by diffcheck, using first found: ' + str(is_found[0])) + model_name = is_found[0] + return model_name @@ -83,7 +88,7 @@ def check_sampler_from_exif(sampler_name_exif, sampler_name, scheduler_name): if any((match := substring) in sampler_name_exif for substring in comfy_schedulers): scheduler_name = match else: - cutoff_list_schedulers = [0.7, 0.6, 0.5, 0.4] + cutoff_list_schedulers = list(np.around(np.arange(0.4, 0.75, 0.05).tolist(), 2))[::-1] # [0.7, 0.6, 0.5, 0.4] for trycut in cutoff_list_schedulers: is_found_scheduler = difflib.get_close_matches(sampler_name_exif, comfy_schedulers, cutoff=trycut) diff --git a/Workflow/civitai-all-refiner.json b/Workflow/civitai-all-refiner.json index c6c6426..cc7d88a 100644 --- a/Workflow/civitai-all-refiner.json +++ b/Workflow/civitai-all-refiner.json @@ -1,6 +1,6 @@ { - "last_node_id": 147, - "last_link_id": 434, + "last_node_id": 162, + "last_link_id": 520, "nodes": [ { "id": 1, @@ -21,7 +21,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 405 + 439 ], "shape": 3, "slot_index": 0 @@ -37,9 +37,11 @@ "Node name for S&R": "LoadImage" }, "widgets_values": [ - "Image_20230912_184033_594563028205117_2448x3840_1.jpg", + "ORIGINAL_INPUT (1).png", "image" - ] + ], + "color": "#232", + "bgcolor": "#353" }, { "id": 45, @@ -60,7 +62,7 @@ "name": "MODEL_NAME", "type": "CHECKPOINT_NAME", "links": [ - 40 + 441 ], "shape": 3 }, @@ -68,10 +70,10 @@ "name": "MODEL_VERSION", "type": "STRING", "links": [ - 406, - 411, - 416, - 421 + 442, + 462, + 491, + 501 ], "shape": 3, "slot_index": 1 @@ -82,9 +84,11 @@ }, "widgets_values": [ "BestAll\\realisticVision_v5.1.safetensors", - true, - false - ] + false, + true + ], + "color": "#233", + "bgcolor": "#355" }, { "id": 48, @@ -105,14 +109,14 @@ "name": "SEED", "type": "INT", "links": [ - 350, - 372, - 387, - 394, - 402, - 403, - 423, - 429 + 438, + 457, + 475, + 500, + 515, + 516, + 517, + 518 ], "shape": 3, "slot_index": 0 @@ -122,23 +126,25 @@ "Node name for S&R": "PrimereSeed" }, "widgets_values": [ - 293225912506824, + 905453192399078, null, null, null - ] + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 46, + "id": 151, "type": "PrimereCKPTLoader", "pos": [ - 1487, - 364 + 1473, + 359 + ], + "size": [ + 389.94110107421875, + 206 ], - "size": { - "0": 330, - "1": 190 - }, "flags": {}, "order": 3, "mode": 0, @@ -146,8 +152,12 @@ { "name": "ckpt_name", "type": "CHECKPOINT_NAME", - "link": 40, - "slot_index": 0 + "link": 441 + }, + { + "name": "concept_data", + "type": "TUPLE", + "link": null }, { "name": "loaded_model", @@ -165,11 +175,11 @@ "link": null }, { - "name": "is_lcm", - "type": "INT", + "name": "model_concept", + "type": "STRING", "link": null, "widget": { - "name": "is_lcm" + "name": "model_concept" } } ], @@ -178,10 +188,10 @@ "name": "MODEL", "type": "MODEL", "links": [ - 345, - 379, - 395, - 424 + 451, + 471, + 480, + 511 ], "shape": 3, "slot_index": 0 @@ -190,14 +200,14 @@ "name": "CLIP", "type": "CLIP", "links": [ - 346, - 373, - 380, - 386, - 393, - 396, - 422, - 425 + 452, + 458, + 459, + 472, + 476, + 481, + 512, + 514 ], "shape": 3, "slot_index": 1 @@ -206,10 +216,10 @@ "name": "VAE", "type": "VAE", "links": [ - 347, - 381, - 397, - 426 + 453, + 473, + 482, + 513 ], "shape": 3, "slot_index": 2 @@ -217,9 +227,8 @@ { "name": "MODEL_VERSION", "type": "STRING", - "links": [], - "shape": 3, - "slot_index": 3 + "links": null, + "shape": 3 } ], "properties": { @@ -229,43 +238,458 @@ false, 1, 1, - 1 - ] + "Normal" + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 141, - "type": "PrimereImageSegments", + "id": 149, + "type": "PrimereRefinerPrompt", "pos": [ - 1490, - 600 + 792, + 729 + ], + "size": [ + 471.94110107421875, + 633.3858642578125 ], - "size": { - "0": 502.9666748046875, - "1": 486 - }, "flags": {}, "order": 4, "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 458 + }, + { + "name": "seed", + "type": "INT", + "link": 438, + "widget": { + "name": "seed" + } + }, + { + "name": "positive_original", + "type": "STRING", + "link": null, + "widget": { + "name": "positive_original" + } + }, + { + "name": "negative_original", + "type": "STRING", + "link": null, + "widget": { + "name": "negative_original" + } + } + ], + "outputs": [ + { + "name": "PROMPT+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", + "links": [ + 443 + ], + "shape": 3, + "slot_index": 4 + } + ], + "properties": { + "Node name for S&R": "PrimereRefinerPrompt" + }, + "widgets_values": [ + "{red and white|red|white|black|green|blue|yellow|blue and white|yellow and red|red and yellow} {luxury|regular|cheap} {linear striped|patterned|super sport|flower patterned|animal patterned|elegant minimalist|modern minimalist} elegant wet {silky|plastic} swimsuit, perfect fingers\n", + "deformed face, deformed hands, deformed fingers, blured", + 1, + 1, + 1, + 1, + 881631701313966, + "randomize", + "length", + "comfy++", + "", + "" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 154, + "type": "PrimereRefinerPrompt", + "pos": [ + 2494, + 330 + ], + "size": [ + 399.94110107421875, + 505.3858642578125 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 459 + }, + { + "name": "seed", + "type": "INT", + "link": 457, + "widget": { + "name": "seed" + } + }, + { + "name": "positive_original", + "type": "STRING", + "link": null, + "widget": { + "name": "positive_original" + } + }, + { + "name": "negative_original", + "type": "STRING", + "link": null, + "widget": { + "name": "negative_original" + } + } + ], + "outputs": [ + { + "name": "PROMPT+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", + "links": [ + 463 + ], + "shape": 3, + "slot_index": 4 + } + ], + "properties": { + "Node name for S&R": "PrimereRefinerPrompt" + }, + "widgets_values": [ + "detailed human wet face, natural wet skin, perfect detailed eyes, ({happy|unhappy|screaming loud|creepy|crying|laugh|scared, frightened terrified|angry} mood:1.4) on face", + "deformed face, deformed eyes", + 1, + 1, + 1, + 1, + 452025153637376, + "randomize", + "length", + "comfy++", + "", + "" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 157, + "type": "PrimereRefinerPrompt", + "pos": [ + 3410, + 328 + ], + "size": [ + 394.941162109375, + 457.3858642578125 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 476 + }, + { + "name": "seed", + "type": "INT", + "link": 475, + "widget": { + "name": "seed" + } + }, + { + "name": "positive_original", + "type": "STRING", + "link": null, + "widget": { + "name": "positive_original" + } + }, + { + "name": "negative_original", + "type": "STRING", + "link": null, + "widget": { + "name": "negative_original" + } + } + ], + "outputs": [ + { + "name": "PROMPT+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", + "links": [ + 492 + ], + "shape": 3, + "slot_index": 4 + } + ], + "properties": { + "Node name for S&R": "PrimereRefinerPrompt" + }, + "widgets_values": [ + "perfect fingers, perfect hands, wet, 5 fingers, natural nails", + "deformed hands, deformed fingers, extra fingers", + 1, + 1, + 1, + 1, + 923061831763864, + "randomize", + "length", + "comfy++", + "", + "" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 160, + "type": "PrimereRefinerPrompt", + "pos": [ + 4324, + 322 + ], + "size": [ + 403.941162109375, + 465.3858642578125 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 514 + }, + { + "name": "seed", + "type": "INT", + "link": 500, + "widget": { + "name": "seed" + } + }, + { + "name": "positive_original", + "type": "STRING", + "link": null, + "widget": { + "name": "positive_original" + } + }, + { + "name": "negative_original", + "type": "STRING", + "link": null, + "widget": { + "name": "negative_original" + } + } + ], + "outputs": [ + { + "name": "PROMPT+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", + "links": [ + 504 + ], + "shape": 3, + "slot_index": 4 + } + ], + "properties": { + "Node name for S&R": "PrimereRefinerPrompt" + }, + "widgets_values": [ + "(wet light pink rainy long hair:1.3), highly detailed", + "blonde, dry, face", + 1, + 1.1, + 1, + 1, + 637521368318380, + "randomize", + "length", + "comfy++", + "", + "" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 150, + "type": "PrimereImageSegments", + "pos": [ + 1331, + 742 + ], + "size": [ + 468.5999755859375, + 642 + ], + "flags": {}, + "order": 8, + "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 405 + "link": 439 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 443 }, { "name": "model_version", "type": "STRING", - "link": 406, + "link": 442, "widget": { "name": "model_version" } }, { - "name": "dino_serach_prompt", + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", "type": "STRING", "link": null, "widget": { - "name": "dino_serach_prompt" + "name": "dino_search_prompt" } }, { @@ -282,9 +706,10 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 407 + 445 ], - "shape": 3 + "shape": 3, + "slot_index": 0 }, { "name": "IMAGE_SEGS", @@ -295,8 +720,11 @@ { "name": "DETECTOR", "type": "DETECTOR", - "links": null, - "shape": 3 + "links": [ + 446 + ], + "shape": 3, + "slot_index": 2 }, { "name": "SAM_MODEL", @@ -308,9 +736,10 @@ "name": "SEGS", "type": "SEGS", "links": [ - 408 + 447 ], - "shape": 3 + "shape": 3, + "slot_index": 4 }, { "name": "CROP_REGIONS", @@ -324,13 +753,38 @@ "links": null, "shape": 3 }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3 + }, { "name": "SEGMENT_SETTINGS", "type": "TUPLE", "links": [ - 409 + 448 ], - "shape": 3 + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 449 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 450 + ], + "shape": 3, + "slot_index": 10 } ], "properties": { @@ -347,405 +801,28 @@ "sling_dress", "eye", 0.5, - 4, - 2.5, + 3, + 1.1, 10, "BaseModel_1024", + 768, "", "" - ] + ], + "color": "#322", + "bgcolor": "#533" }, { - "id": 131, - "type": "PrimereRefinerPrompt", - "pos": [ - 792, - 729 - ], - "size": { - "0": 455.39410400390625, - "1": 573.5899047851562 - }, - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [ - { - "name": "clip", - "type": "CLIP", - "link": 373 - }, - { - "name": "seed", - "type": "INT", - "link": 372, - "widget": { - "name": "seed" - } - }, - { - "name": "positive_original", - "type": "STRING", - "link": null, - "widget": { - "name": "positive_original" - } - }, - { - "name": "negative_original", - "type": "STRING", - "link": null, - "widget": { - "name": "negative_original" - } - } - ], - "outputs": [ - { - "name": "PROMPT+", - "type": "STRING", - "links": null, - "shape": 3 - }, - { - "name": "PROMPT-", - "type": "STRING", - "links": null, - "shape": 3 - }, - { - "name": "COND+", - "type": "CONDITIONING", - "links": [ - 374 - ], - "shape": 3, - "slot_index": 2 - }, - { - "name": "COND-", - "type": "CONDITIONING", - "links": [ - 375 - ], - "shape": 3, - "slot_index": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereRefinerPrompt" - }, - "widgets_values": [ - "{red and white|red|white|black|green|blue|yellow|blue and white|yellow and red|red and yellow} {luxury|regular|cheap} {linear striped|patterned|super sport|flower patterned|animal patterned|elegant minimalist|modern minimalist} elegant wet {silky|plastic} swimsuit, perfect fingers", - "deformed face, deformed hands, deformed fingers, blured", - 1, - 1, - 1, - 1, - 574652480570673, - "randomize", - "length+mean", - "comfy++", - "", - "" - ] - }, - { - "id": 134, - "type": "PrimereRefinerPrompt", - "pos": [ - 2510, - 400 - ], - "size": { - "0": 397.7899169921875, - "1": 466.2799987792969 - }, - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [ - { - "name": "clip", - "type": "CLIP", - "link": 386 - }, - { - "name": "seed", - "type": "INT", - "link": 387, - "widget": { - "name": "seed" - } - }, - { - "name": "positive_original", - "type": "STRING", - "link": null, - "widget": { - "name": "positive_original" - } - }, - { - "name": "negative_original", - "type": "STRING", - "link": null, - "widget": { - "name": "negative_original" - } - } - ], - "outputs": [ - { - "name": "PROMPT+", - "type": "STRING", - "links": null, - "shape": 3 - }, - { - "name": "PROMPT-", - "type": "STRING", - "links": null, - "shape": 3 - }, - { - "name": "COND+", - "type": "CONDITIONING", - "links": [ - 384 - ], - "shape": 3, - "slot_index": 2 - }, - { - "name": "COND-", - "type": "CONDITIONING", - "links": [ - 385 - ], - "shape": 3, - "slot_index": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereRefinerPrompt" - }, - "widgets_values": [ - "detailed human wet face, natural wet skin, perfect detailed eyes, {happy|unhappy|screaming loud|creepy|crying|laugh|scared, frightened terrified} mood on face", - "deformed face, deformed eyes", - 1, - 1, - 1, - 1, - 1090130322513628, - "randomize", - "length+mean", - "comfy++", - "", - "" - ] - }, - { - "id": 138, - "type": "PrimereRefinerPrompt", - "pos": [ - 3410, - 410 - ], - "size": { - "0": 398.8716125488281, - "1": 461.1500244140625 - }, - "flags": {}, - "order": 7, - "mode": 0, - "inputs": [ - { - "name": "clip", - "type": "CLIP", - "link": 393 - }, - { - "name": "seed", - "type": "INT", - "link": 394, - "widget": { - "name": "seed" - } - }, - { - "name": "positive_original", - "type": "STRING", - "link": null, - "widget": { - "name": "positive_original" - } - }, - { - "name": "negative_original", - "type": "STRING", - "link": null, - "widget": { - "name": "negative_original" - } - } - ], - "outputs": [ - { - "name": "PROMPT+", - "type": "STRING", - "links": null, - "shape": 3 - }, - { - "name": "PROMPT-", - "type": "STRING", - "links": null, - "shape": 3 - }, - { - "name": "COND+", - "type": "CONDITIONING", - "links": [ - 400 - ], - "shape": 3, - "slot_index": 2 - }, - { - "name": "COND-", - "type": "CONDITIONING", - "links": [ - 401 - ], - "shape": 3, - "slot_index": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereRefinerPrompt" - }, - "widgets_values": [ - "perfect fingers, perfect hands, wet, 5 fingers, natural nails", - "deformed hands, deformed fingers, extra fingers", - 1, - 1, - 1, - 1, - 940416388928173, - "randomize", - "length+mean", - "comfy++", - "", - "" - ] - }, - { - "id": 145, - "type": "PrimereRefinerPrompt", - "pos": [ - 4330, - 410 - ], - "size": { - "0": 401.44378662109375, - "1": 450.400634765625 - }, - "flags": {}, - "order": 8, - "mode": 0, - "inputs": [ - { - "name": "clip", - "type": "CLIP", - "link": 422 - }, - { - "name": "seed", - "type": "INT", - "link": 423, - "widget": { - "name": "seed" - } - }, - { - "name": "positive_original", - "type": "STRING", - "link": null, - "widget": { - "name": "positive_original" - } - }, - { - "name": "negative_original", - "type": "STRING", - "link": null, - "widget": { - "name": "negative_original" - } - } - ], - "outputs": [ - { - "name": "PROMPT+", - "type": "STRING", - "links": null, - "shape": 3 - }, - { - "name": "PROMPT-", - "type": "STRING", - "links": null, - "shape": 3 - }, - { - "name": "COND+", - "type": "CONDITIONING", - "links": [ - 430 - ], - "shape": 3, - "slot_index": 2 - }, - { - "name": "COND-", - "type": "CONDITIONING", - "links": [ - 431 - ], - "shape": 3, - "slot_index": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereRefinerPrompt" - }, - "widgets_values": [ - "light-red hair, detailed wet hair in the rain", - "blonde, dry", - 1, - 1, - 1, - 1, - 291839764184511, - "randomize", - "length+mean", - "comfy++", - "", - "" - ] - }, - { - "id": 125, + "id": 152, "type": "PrimereAnyDetailer", "pos": [ - 2045, - 390 + 1911, + 359 + ], + "size": [ + 405.5999755859375, + 578 ], - "size": { - "0": 405.5999755859375, - "1": 458 - }, "flags": {}, "order": 9, "mode": 0, @@ -753,52 +830,92 @@ { "name": "image", "type": "IMAGE", - "link": 407 + "link": 445 }, { "name": "model", "type": "MODEL", - "link": 345 + "link": 451 }, { "name": "clip", "type": "CLIP", - "link": 346 + "link": 452 }, { "name": "vae", "type": "VAE", - "link": 347 + "link": 453 }, { "name": "positive", "type": "CONDITIONING", - "link": 374 + "link": 449 }, { "name": "negative", "type": "CONDITIONING", - "link": 375 + "link": 450 }, { "name": "segment_settings", "type": "TUPLE", - "link": 409 + "link": 448 }, { "name": "segs", "type": "SEGS", - "link": 408 + "link": 447 }, { "name": "detector", "type": "DETECTOR", - "link": null + "link": 446 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } }, { "name": "seed", "type": "INT", - "link": 350, + "link": 515, "widget": { "name": "seed" } @@ -809,8 +926,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 352, - 410 + 461 ], "shape": 3, "slot_index": 0 @@ -818,7 +934,9 @@ { "name": "CROPPED_REFINED", "type": "IMAGE", - "links": [], + "links": [ + 444 + ], "shape": 6, "slot_index": 1 }, @@ -839,79 +957,73 @@ "Node name for S&R": "PrimereAnyDetailer" }, "widgets_values": [ - 382856497443396, + 362989667966229, "randomize", - 20, - 8.5, "euler", "normal", - 0.65, + 20, + 8, + 0.68, 10, true, false, + 1, + "Normal", + "euler", + "normal", + 4, 1 - ] + ], + "color": "#322", + "bgcolor": "#533" }, { - "id": 58, - "type": "PreviewImage", + "id": 155, + "type": "PrimereImageSegments", "pos": [ - 2046, - 893 + 2497, + 908 + ], + "size": [ + 381.941162109375, + 625.3858642578125 ], - "size": { - "0": 392.17169189453125, - "1": 428.15911865234375 - }, "flags": {}, "order": 10, "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 352, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, - { - "id": 142, - "type": "PrimereImageSegments", - "pos": [ - 2520, - 920 - ], - "size": { - "0": 387.9666748046875, - "1": 486 - }, - "flags": {}, - "order": 11, - "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 410 + "link": 461 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 463 }, { "name": "model_version", "type": "STRING", - "link": 411, + "link": 462, "widget": { "name": "model_version" } }, { - "name": "dino_serach_prompt", + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", "type": "STRING", "link": null, "widget": { - "name": "dino_serach_prompt" + "name": "dino_search_prompt" } }, { @@ -928,537 +1040,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 412 - ], - "shape": 3 - }, - { - "name": "IMAGE_SEGS", - "type": "IMAGE", - "links": null, - "shape": 6 - }, - { - "name": "DETECTOR", - "type": "DETECTOR", - "links": null, - "shape": 3 - }, - { - "name": "SAM_MODEL", - "type": "SAM_MODEL", - "links": null, - "shape": 3 - }, - { - "name": "SEGS", - "type": "SEGS", - "links": [ - 413 - ], - "shape": 3 - }, - { - "name": "CROP_REGIONS", - "type": "TUPLE", - "links": null, - "shape": 3 - }, - { - "name": "IMAGE_MAX", - "type": "INT", - "links": null, - "shape": 3 - }, - { - "name": "SEGMENT_SETTINGS", - "type": "TUPLE", - "links": [ - 414 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereImageSegments" - }, - "widgets_values": [ - true, - 0, - 0, - "bbox/face_yolov8m.pt", - "sam_vit_b_01ec64.pth", - "AUTO", - "person", - "short_sleeved_shirt", - "eye", - 0.5, - 3, - 1.3, - 10, - "BaseModel_1024", - "", - "" - ] - }, - { - "id": 133, - "type": "PrimereAnyDetailer", - "pos": [ - 2930, - 400 - ], - "size": { - "0": 405.5999755859375, - "1": 458 - }, - "flags": {}, - "order": 12, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 412 - }, - { - "name": "model", - "type": "MODEL", - "link": 379 - }, - { - "name": "clip", - "type": "CLIP", - "link": 380 - }, - { - "name": "vae", - "type": "VAE", - "link": 381 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 384 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 385 - }, - { - "name": "segment_settings", - "type": "TUPLE", - "link": 414 - }, - { - "name": "segs", - "type": "SEGS", - "link": 413 - }, - { - "name": "detector", - "type": "DETECTOR", - "link": null - }, - { - "name": "seed", - "type": "INT", - "link": 402, - "widget": { - "name": "seed" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 388, - 415 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "CROPPED_REFINED", - "type": "IMAGE", - "links": null, - "shape": 6 - }, - { - "name": "WIDTH", - "type": "INT", - "links": null, - "shape": 3 - }, - { - "name": "HEIGHT", - "type": "INT", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereAnyDetailer" - }, - "widgets_values": [ - 852536622843233, - "randomize", - 20, - 8, - "euler", - "normal", - 0.65, - 10, - true, - false, - 1 - ] - }, - { - "id": 135, - "type": "PreviewImage", - "pos": [ - 2930, - 910 - ], - "size": { - "0": 406.87164306640625, - "1": 386.33184814453125 - }, - "flags": {}, - "order": 13, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 388, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, - { - "id": 143, - "type": "PrimereImageSegments", - "pos": [ - 3410, - 920 - ], - "size": { - "0": 402.9666748046875, - "1": 486 - }, - "flags": {}, - "order": 14, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 415 - }, - { - "name": "model_version", - "type": "STRING", - "link": 416, - "widget": { - "name": "model_version" - } - }, - { - "name": "dino_serach_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_serach_prompt" - } - }, - { - "name": "dino_replace_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_replace_prompt" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 433 - ], - "shape": 3 - }, - { - "name": "IMAGE_SEGS", - "type": "IMAGE", - "links": null, - "shape": 6 - }, - { - "name": "DETECTOR", - "type": "DETECTOR", - "links": null, - "shape": 3 - }, - { - "name": "SAM_MODEL", - "type": "SAM_MODEL", - "links": null, - "shape": 3 - }, - { - "name": "SEGS", - "type": "SEGS", - "links": [ - 418 - ], - "shape": 3 - }, - { - "name": "CROP_REGIONS", - "type": "TUPLE", - "links": null, - "shape": 3 - }, - { - "name": "IMAGE_MAX", - "type": "INT", - "links": null, - "shape": 3 - }, - { - "name": "SEGMENT_SETTINGS", - "type": "TUPLE", - "links": [ - 419 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereImageSegments" - }, - "widgets_values": [ - true, - 0, - 0, - "bbox/hand_yolov8n.pt", - "sam_vit_b_01ec64.pth", - "AUTO", - "person", - "short_sleeved_shirt", - "eye", - 0.5, - 3, - 2.5, - 5, - "BaseModel_1024", - "", - "" - ] - }, - { - "id": 137, - "type": "PrimereAnyDetailer", - "pos": [ - 3830, - 410 - ], - "size": { - "0": 405.5999755859375, - "1": 458 - }, - "flags": {}, - "order": 15, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 433 - }, - { - "name": "model", - "type": "MODEL", - "link": 395 - }, - { - "name": "clip", - "type": "CLIP", - "link": 396 - }, - { - "name": "vae", - "type": "VAE", - "link": 397 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 400 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 401 - }, - { - "name": "segment_settings", - "type": "TUPLE", - "link": 419 - }, - { - "name": "segs", - "type": "SEGS", - "link": 418 - }, - { - "name": "detector", - "type": "DETECTOR", - "link": null - }, - { - "name": "seed", - "type": "INT", - "link": 403, - "widget": { - "name": "seed" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 391, - 420 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "CROPPED_REFINED", - "type": "IMAGE", - "links": null, - "shape": 6 - }, - { - "name": "WIDTH", - "type": "INT", - "links": null, - "shape": 3 - }, - { - "name": "HEIGHT", - "type": "INT", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereAnyDetailer" - }, - "widgets_values": [ - 821864425772173, - "randomize", - 30, - 8.5, - "euler", - "normal", - 0.4, - 5, - true, - false, - 1 - ] - }, - { - "id": 139, - "type": "PreviewImage", - "pos": [ - 3825, - 921 - ], - "size": { - "0": 406.87164306640625, - "1": 386.33184814453125 - }, - "flags": {}, - "order": 16, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 391, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, - { - "id": 147, - "type": "PrimereImageSegments", - "pos": [ - 4330, - 920 - ], - "size": { - "0": 402.9666748046875, - "1": 486 - }, - "flags": {}, - "order": 17, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 420 - }, - { - "name": "model_version", - "type": "STRING", - "link": 421, - "widget": { - "name": "model_version" - } - }, - { - "name": "dino_serach_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_serach_prompt" - } - }, - { - "name": "dino_replace_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_replace_prompt" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 434 + 465 ], "shape": 3, "slot_index": 0 @@ -1472,20 +1054,24 @@ { "name": "DETECTOR", "type": "DETECTOR", - "links": null, - "shape": 3 + "links": [ + 468 + ], + "shape": 3, + "slot_index": 2 }, { "name": "SAM_MODEL", "type": "SAM_MODEL", "links": null, - "shape": 3 + "shape": 3, + "slot_index": 3 }, { "name": "SEGS", "type": "SEGS", "links": [ - 428 + 470 ], "shape": 3, "slot_index": 4 @@ -1502,14 +1088,762 @@ "links": null, "shape": 3 }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3 + }, { "name": "SEGMENT_SETTINGS", "type": "TUPLE", "links": [ - 427 + 469 ], "shape": 3, - "slot_index": 7 + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 520 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 519 + ], + "shape": 3, + "slot_index": 10 + } + ], + "properties": { + "Node name for S&R": "PrimereImageSegments" + }, + "widgets_values": [ + true, + 0, + 0, + "bbox/face_yolov8m.pt", + "sam_vit_b_01ec64.pth", + "AUTO", + "person", + "short_sleeved_shirt", + "eye", + 0.6, + 5, + 1.3, + 10, + "BaseModel_1024", + 768, + "", + "" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 58, + "type": "PreviewImage", + "pos": [ + 1933, + 989 + ], + "size": [ + 360.930908203125, + 433.3359680175781 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 444, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 156, + "type": "PrimereAnyDetailer", + "pos": [ + 2941, + 406 + ], + "size": [ + 415.941162109375, + 558 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 465 + }, + { + "name": "model", + "type": "MODEL", + "link": 471 + }, + { + "name": "clip", + "type": "CLIP", + "link": 472 + }, + { + "name": "vae", + "type": "VAE", + "link": 473 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 520 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 519 + }, + { + "name": "segment_settings", + "type": "TUPLE", + "link": 469 + }, + { + "name": "segs", + "type": "SEGS", + "link": 470 + }, + { + "name": "detector", + "type": "DETECTOR", + "link": 468 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } + }, + { + "name": "seed", + "type": "INT", + "link": 516, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 493 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CROPPED_REFINED", + "type": "IMAGE", + "links": [ + 474 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "WIDTH", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereAnyDetailer" + }, + "widgets_values": [ + 92184042743363, + "randomize", + "euler", + "normal", + 20, + 7, + 0.5, + 8, + true, + false, + 1, + "Normal", + "euler", + "normal", + 4, + 1 + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 159, + "type": "PrimereImageSegments", + "pos": [ + 3427, + 885 + ], + "size": [ + 394.941162109375, + 546 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 493 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 492 + }, + { + "name": "model_version", + "type": "STRING", + "link": 491, + "widget": { + "name": "model_version" + } + }, + { + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_search_prompt" + } + }, + { + "name": "dino_replace_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_replace_prompt" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 494 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "IMAGE_SEGS", + "type": "IMAGE", + "links": null, + "shape": 6 + }, + { + "name": "DETECTOR", + "type": "DETECTOR", + "links": [ + 497 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "SAM_MODEL", + "type": "SAM_MODEL", + "links": null, + "shape": 3 + }, + { + "name": "SEGS", + "type": "SEGS", + "links": [ + 498 + ], + "shape": 3, + "slot_index": 4 + }, + { + "name": "CROP_REGIONS", + "type": "TUPLE", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "SEGMENT_SETTINGS", + "type": "TUPLE", + "links": [ + 499 + ], + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 495 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 496 + ], + "shape": 3, + "slot_index": 10 + } + ], + "properties": { + "Node name for S&R": "PrimereImageSegments" + }, + "widgets_values": [ + true, + 0, + 0, + "bbox/hand_yolov8n.pt", + "sam_vit_b_01ec64.pth", + "AUTO", + "person", + "short_sleeved_shirt", + "eye", + 0.45, + 8, + 1.3, + 10, + "BaseModel_1024", + 768, + "", + "" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 135, + "type": "PreviewImage", + "pos": [ + 2942, + 1047 + ], + "size": { + "0": 406.87164306640625, + "1": 386.33184814453125 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 474, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 158, + "type": "PrimereAnyDetailer", + "pos": [ + 3859, + 316 + ], + "size": [ + 405.5999755859375, + 578 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 494 + }, + { + "name": "model", + "type": "MODEL", + "link": 480 + }, + { + "name": "clip", + "type": "CLIP", + "link": 481 + }, + { + "name": "vae", + "type": "VAE", + "link": 482 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 495 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 496 + }, + { + "name": "segment_settings", + "type": "TUPLE", + "link": 499 + }, + { + "name": "segs", + "type": "SEGS", + "link": 498 + }, + { + "name": "detector", + "type": "DETECTOR", + "link": 497 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } + }, + { + "name": "seed", + "type": "INT", + "link": 517, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 503 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CROPPED_REFINED", + "type": "IMAGE", + "links": [ + 483 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "WIDTH", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereAnyDetailer" + }, + "widgets_values": [ + 21553365781793, + "randomize", + "euler", + "simple", + 30, + 7, + 0.43, + 8, + true, + false, + 1, + "Normal", + "euler", + "normal", + 4, + 1 + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 161, + "type": "PrimereImageSegments", + "pos": [ + 4322, + 871 + ], + "size": [ + 468.5999755859375, + 642 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 503 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 504 + }, + { + "name": "model_version", + "type": "STRING", + "link": 501, + "widget": { + "name": "model_version" + } + }, + { + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_search_prompt" + } + }, + { + "name": "dino_replace_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_replace_prompt" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 505 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "IMAGE_SEGS", + "type": "IMAGE", + "links": null, + "shape": 6 + }, + { + "name": "DETECTOR", + "type": "DETECTOR", + "links": [ + 506 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "SAM_MODEL", + "type": "SAM_MODEL", + "links": null, + "shape": 3 + }, + { + "name": "SEGS", + "type": "SEGS", + "links": [ + 507 + ], + "shape": 3, + "slot_index": 4 + }, + { + "name": "CROP_REGIONS", + "type": "TUPLE", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "SEGMENT_SETTINGS", + "type": "TUPLE", + "links": [ + 508 + ], + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 509 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 510 + ], + "shape": 3, + "slot_index": 10 } ], "properties": { @@ -1525,79 +1859,150 @@ "person", "short_sleeved_shirt", "eye", - 0.5, - 2, - 1.5, - 5, + 0.45, + 10, + 1.3, + 10, "BaseModel_1024", + 768, "", "" - ] + ], + "color": "#323", + "bgcolor": "#535" }, { - "id": 144, - "type": "PrimereAnyDetailer", + "id": 139, + "type": "PreviewImage", "pos": [ - 4793, - 405 + 3884, + 996 ], "size": { - "0": 405.5999755859375, - "1": 458 + "0": 406.87164306640625, + "1": 386.33184814453125 }, "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 483, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 162, + "type": "PrimereAnyDetailer", + "pos": [ + 4870, + 322 + ], + "size": [ + 405.5999755859375, + 578 + ], + "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 434 + "link": 505 }, { "name": "model", "type": "MODEL", - "link": 424 + "link": 511 }, { "name": "clip", "type": "CLIP", - "link": 425 + "link": 512 }, { "name": "vae", "type": "VAE", - "link": 426 + "link": 513 }, { "name": "positive", "type": "CONDITIONING", - "link": 430 + "link": 509 }, { "name": "negative", "type": "CONDITIONING", - "link": 431 + "link": 510 }, { "name": "segment_settings", "type": "TUPLE", - "link": 427 + "link": 508 }, { "name": "segs", "type": "SEGS", - "link": 428 + "link": 507 }, { "name": "detector", "type": "DETECTOR", - "link": null + "link": 506 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } }, { "name": "seed", "type": "INT", - "link": 429, + "link": 518, "widget": { "name": "seed" } @@ -1608,7 +2013,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 432 + 502 ], "shape": 3, "slot_index": 0 @@ -1636,30 +2041,37 @@ "Node name for S&R": "PrimereAnyDetailer" }, "widgets_values": [ - 768008297069405, + 373622672088759, "randomize", - 30, - 8.5, "euler", - "normal", - 0.55, - 5, + "simple", + 30, + 7.5, + 0.72, + 15, true, false, + 1, + "Normal", + "euler", + "normal", + 4, 1 - ] + ], + "color": "#323", + "bgcolor": "#535" }, { "id": 146, "type": "PreviewImage", "pos": [ - 4783, - 935 + 5338, + 316 + ], + "size": [ + 682.9389250468757, + 1016.3414829062503 ], - "size": { - "0": 406.87164306640625, - "1": 386.33184814453125 - }, "flags": {}, "order": 19, "mode": 0, @@ -1667,471 +2079,537 @@ { "name": "images", "type": "IMAGE", - "link": 432, + "link": 502, "slot_index": 0 } ], "properties": { "Node name for S&R": "PreviewImage" - } + }, + "color": "#223", + "bgcolor": "#335" } ], "links": [ [ - 40, + 438, + 48, + 0, + 149, + 1, + "INT" + ], + [ + 439, + 1, + 0, + 150, + 0, + "IMAGE" + ], + [ + 441, 45, 0, - 46, + 151, 0, "CHECKPOINT_NAME" ], [ - 345, - 46, - 0, - 125, + 442, + 45, 1, - "MODEL" + 150, + 2, + "STRING" ], [ - 346, - 46, + 443, + 149, + 4, + 150, 1, - 125, - 2, - "CLIP" + "TUPLE" ], [ - 347, - 46, - 2, - 125, - 3, - "VAE" - ], - [ - 350, - 48, - 0, - 125, - 9, - "INT" - ], - [ - 352, - 125, - 0, + 444, + 152, + 1, 58, 0, "IMAGE" ], [ - 372, - 48, + 445, + 150, 0, - 131, - 1, - "INT" + 152, + 0, + "IMAGE" ], [ - 373, - 46, - 1, - 131, - 0, - "CLIP" - ], - [ - 374, - 131, + 446, + 150, 2, - 125, + 152, + 8, + "DETECTOR" + ], + [ + 447, + 150, + 4, + 152, + 7, + "SEGS" + ], + [ + 448, + 150, + 8, + 152, + 6, + "TUPLE" + ], + [ + 449, + 150, + 9, + 152, 4, "CONDITIONING" ], [ - 375, - 131, - 3, - 125, + 450, + 150, + 10, + 152, 5, "CONDITIONING" ], [ - 379, - 46, + 451, + 151, 0, - 133, + 152, 1, "MODEL" ], [ - 380, - 46, + 452, + 151, 1, - 133, + 152, 2, "CLIP" ], [ - 381, - 46, + 453, + 151, 2, - 133, + 152, 3, "VAE" ], [ - 384, - 134, - 2, - 133, - 4, - "CONDITIONING" - ], - [ - 385, - 134, - 3, - 133, - 5, - "CONDITIONING" - ], - [ - 386, - 46, - 1, - 134, - 0, - "CLIP" - ], - [ - 387, + 457, 48, 0, - 134, + 154, 1, "INT" ], [ - 388, - 133, + 458, + 151, + 1, + 149, 0, + "CLIP" + ], + [ + 459, + 151, + 1, + 154, + 0, + "CLIP" + ], + [ + 461, + 152, + 0, + 155, + 0, + "IMAGE" + ], + [ + 462, + 45, + 1, + 155, + 2, + "STRING" + ], + [ + 463, + 154, + 4, + 155, + 1, + "TUPLE" + ], + [ + 465, + 155, + 0, + 156, + 0, + "IMAGE" + ], + [ + 468, + 155, + 2, + 156, + 8, + "DETECTOR" + ], + [ + 469, + 155, + 8, + 156, + 6, + "TUPLE" + ], + [ + 470, + 155, + 4, + 156, + 7, + "SEGS" + ], + [ + 471, + 151, + 0, + 156, + 1, + "MODEL" + ], + [ + 472, + 151, + 1, + 156, + 2, + "CLIP" + ], + [ + 473, + 151, + 2, + 156, + 3, + "VAE" + ], + [ + 474, + 156, + 1, 135, 0, "IMAGE" ], [ - 391, - 137, + 475, + 48, 0, + 157, + 1, + "INT" + ], + [ + 476, + 151, + 1, + 157, + 0, + "CLIP" + ], + [ + 480, + 151, + 0, + 158, + 1, + "MODEL" + ], + [ + 481, + 151, + 1, + 158, + 2, + "CLIP" + ], + [ + 482, + 151, + 2, + 158, + 3, + "VAE" + ], + [ + 483, + 158, + 1, 139, 0, "IMAGE" ], [ - 393, - 46, + 491, + 45, 1, - 138, - 0, - "CLIP" - ], - [ - 394, - 48, - 0, - 138, - 1, - "INT" - ], - [ - 395, - 46, - 0, - 137, - 1, - "MODEL" - ], - [ - 396, - 46, - 1, - 137, + 159, 2, - "CLIP" + "STRING" ], [ - 397, - 46, - 2, - 137, - 3, - "VAE" + 492, + 157, + 4, + 159, + 1, + "TUPLE" ], [ - 400, - 138, - 2, - 137, + 493, + 156, + 0, + 159, + 0, + "IMAGE" + ], + [ + 494, + 159, + 0, + 158, + 0, + "IMAGE" + ], + [ + 495, + 159, + 9, + 158, 4, "CONDITIONING" ], [ - 401, - 138, - 3, - 137, + 496, + 159, + 10, + 158, 5, "CONDITIONING" ], [ - 402, - 48, - 0, - 133, - 9, - "INT" - ], - [ - 403, - 48, - 0, - 137, - 9, - "INT" - ], - [ - 405, - 1, - 0, - 141, - 0, - "IMAGE" - ], - [ - 406, - 45, - 1, - 141, - 1, - "STRING" - ], - [ - 407, - 141, - 0, - 125, - 0, - "IMAGE" - ], - [ - 408, - 141, - 4, - 125, - 7, - "SEGS" - ], - [ - 409, - 141, - 7, - 125, - 6, - "TUPLE" - ], - [ - 410, - 125, - 0, - 142, - 0, - "IMAGE" - ], - [ - 411, - 45, - 1, - 142, - 1, - "STRING" - ], - [ - 412, - 142, - 0, - 133, - 0, - "IMAGE" - ], - [ - 413, - 142, - 4, - 133, - 7, - "SEGS" - ], - [ - 414, - 142, - 7, - 133, - 6, - "TUPLE" - ], - [ - 415, - 133, - 0, - 143, - 0, - "IMAGE" - ], - [ - 416, - 45, - 1, - 143, - 1, - "STRING" - ], - [ - 418, - 143, - 4, - 137, - 7, - "SEGS" - ], - [ - 419, - 143, - 7, - 137, - 6, - "TUPLE" - ], - [ - 420, - 137, - 0, - 147, - 0, - "IMAGE" - ], - [ - 421, - 45, - 1, - 147, - 1, - "STRING" - ], - [ - 422, - 46, - 1, - 145, - 0, - "CLIP" - ], - [ - 423, - 48, - 0, - 145, - 1, - "INT" - ], - [ - 424, - 46, - 0, - 144, - 1, - "MODEL" - ], - [ - 425, - 46, - 1, - 144, + 497, + 159, 2, - "CLIP" + 158, + 8, + "DETECTOR" ], [ - 426, - 46, - 2, - 144, - 3, - "VAE" - ], - [ - 427, - 147, - 7, - 144, - 6, - "TUPLE" - ], - [ - 428, - 147, + 498, + 159, 4, - 144, + 158, 7, "SEGS" ], [ - 429, + 499, + 159, + 8, + 158, + 6, + "TUPLE" + ], + [ + 500, 48, 0, - 144, - 9, + 160, + 1, "INT" ], [ - 430, - 145, + 501, + 45, + 1, + 161, 2, - 144, - 4, - "CONDITIONING" + "STRING" ], [ - 431, - 145, - 3, - 144, - 5, - "CONDITIONING" - ], - [ - 432, - 144, + 502, + 162, 0, 146, 0, "IMAGE" ], [ - 433, - 143, + 503, + 158, 0, - 137, + 161, 0, "IMAGE" ], [ - 434, - 147, + 504, + 160, + 4, + 161, + 1, + "TUPLE" + ], + [ + 505, + 161, 0, - 144, + 162, 0, "IMAGE" + ], + [ + 506, + 161, + 2, + 162, + 8, + "DETECTOR" + ], + [ + 507, + 161, + 4, + 162, + 7, + "SEGS" + ], + [ + 508, + 161, + 8, + 162, + 6, + "TUPLE" + ], + [ + 509, + 161, + 9, + 162, + 4, + "CONDITIONING" + ], + [ + 510, + 161, + 10, + 162, + 5, + "CONDITIONING" + ], + [ + 511, + 151, + 0, + 162, + 1, + "MODEL" + ], + [ + 512, + 151, + 1, + 162, + 2, + "CLIP" + ], + [ + 513, + 151, + 2, + 162, + 3, + "VAE" + ], + [ + 514, + 151, + 1, + 160, + 0, + "CLIP" + ], + [ + 515, + 48, + 0, + 152, + 14, + "INT" + ], + [ + 516, + 48, + 0, + 156, + 14, + "INT" + ], + [ + 517, + 48, + 0, + 158, + 14, + "INT" + ], + [ + 518, + 48, + 0, + 162, + 14, + "INT" + ], + [ + 519, + 155, + 10, + 156, + 5, + "CONDITIONING" + ], + [ + 520, + 155, + 9, + 156, + 4, + "CONDITIONING" ] ], "groups": [], diff --git a/Workflow/civitai-face-refiner.json b/Workflow/civitai-face-refiner.json index 52a1194..defb2e9 100644 --- a/Workflow/civitai-face-refiner.json +++ b/Workflow/civitai-face-refiner.json @@ -1,13 +1,13 @@ { - "last_node_id": 132, - "last_link_id": 381, + "last_node_id": 142, + "last_link_id": 425, "nodes": [ { "id": 1, "type": "LoadImage", "pos": [ - 109, - 360 + 50, + 65 ], "size": { "0": 639.1292114257812, @@ -21,7 +21,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 376 + 425 ], "shape": 3, "slot_index": 0 @@ -37,7 +37,7 @@ "Node name for S&R": "LoadImage" }, "widgets_values": [ - "GP_Image_20231711_125928_383602995137207_1296x809_01-hq-scale-3_00x.jpg", + "ORIGINAL_INPUT.png", "image" ] }, @@ -45,8 +45,8 @@ "id": 45, "type": "PrimereVisualCKPT", "pos": [ - 804, - 360 + 750, + 95 ], "size": { "0": 641.046875, @@ -60,7 +60,7 @@ "name": "MODEL_NAME", "type": "CHECKPOINT_NAME", "links": [ - 40 + 384 ], "shape": 3 }, @@ -68,7 +68,7 @@ "name": "MODEL_VERSION", "type": "STRING", "links": [ - 377 + 410 ], "shape": 3, "slot_index": 1 @@ -78,17 +78,17 @@ "Node name for S&R": "PrimereVisualCKPT" }, "widgets_values": [ - "BestPhoto\\absoluteRealistic_v20.safetensors", - true, - false + "BestAll\\photon_v1.safetensors", + false, + true ] }, { "id": 48, "type": "PrimereSeed", "pos": [ - 797, - 538 + 751, + 268 ], "size": { "0": 402.27398681640625, @@ -102,8 +102,8 @@ "name": "SEED", "type": "INT", "links": [ - 350, - 372 + 407, + 420 ], "shape": 3, "slot_index": 0 @@ -113,22 +113,22 @@ "Node name for S&R": "PrimereSeed" }, "widgets_values": [ - 668487755299382, + 991030014985297, null, null, null ] }, { - "id": 46, + "id": 134, "type": "PrimereCKPTLoader", "pos": [ - 1487, - 364 + 1510, + 95 ], "size": { "0": 330, - "1": 190 + "1": 210 }, "flags": {}, "order": 3, @@ -137,8 +137,12 @@ { "name": "ckpt_name", "type": "CHECKPOINT_NAME", - "link": 40, - "slot_index": 0 + "link": 384 + }, + { + "name": "concept_data", + "type": "TUPLE", + "link": null }, { "name": "loaded_model", @@ -156,11 +160,11 @@ "link": null }, { - "name": "is_lcm", - "type": "INT", + "name": "model_concept", + "type": "STRING", "link": null, "widget": { - "name": "is_lcm" + "name": "model_concept" } } ], @@ -169,7 +173,7 @@ "name": "MODEL", "type": "MODEL", "links": [ - 345 + 412 ], "shape": 3, "slot_index": 0 @@ -178,8 +182,8 @@ "name": "CLIP", "type": "CLIP", "links": [ - 346, - 373 + 406, + 413 ], "shape": 3, "slot_index": 1 @@ -188,7 +192,7 @@ "name": "VAE", "type": "VAE", "links": [ - 347 + 414 ], "shape": 3, "slot_index": 2 @@ -196,7 +200,7 @@ { "name": "MODEL_VERSION", "type": "STRING", - "links": [], + "links": null, "shape": 3, "slot_index": 3 } @@ -205,161 +209,36 @@ "Node name for S&R": "PrimereCKPTLoader" }, "widgets_values": [ - false, + true, 1, 1, - 1 + "Normal" ] }, { - "id": 132, - "type": "PrimereImageSegments", + "id": 139, + "type": "PrimereRefinerPrompt", "pos": [ - 1490, - 600 - ], - "size": [ - 487.78133964538483, - 486 + 750, + 470 ], + "size": { + "0": 579.9000244140625, + "1": 577.9000244140625 + }, "flags": {}, "order": 4, "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 376 - }, - { - "name": "model_version", - "type": "STRING", - "link": 377, - "widget": { - "name": "model_version" - } - }, - { - "name": "dino_serach_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_serach_prompt" - } - }, - { - "name": "dino_replace_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_replace_prompt" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 378 - ], - "shape": 3 - }, - { - "name": "IMAGE_SEGS", - "type": "IMAGE", - "links": [ - 379 - ], - "shape": 6 - }, - { - "name": "DETECTOR", - "type": "DETECTOR", - "links": null, - "shape": 3 - }, - { - "name": "SAM_MODEL", - "type": "SAM_MODEL", - "links": null, - "shape": 3 - }, - { - "name": "SEGS", - "type": "SEGS", - "links": [ - 380 - ], - "shape": 3 - }, - { - "name": "CROP_REGIONS", - "type": "TUPLE", - "links": null, - "shape": 3 - }, - { - "name": "IMAGE_MAX", - "type": "INT", - "links": null, - "shape": 3 - }, - { - "name": "SEGMENT_SETTINGS", - "type": "TUPLE", - "links": [ - 381 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereImageSegments" - }, - "widgets_values": [ - true, - 3500, - 0, - "bbox/face_yolov8m.pt", - "sam_vit_b_01ec64.pth", - "AUTO", - "person", - "short_sleeved_shirt", - "eye", - 0.5, - 3, - 1.2, - 10, - "BaseModel_1024", - "", - "" - ] - }, - { - "id": 131, - "type": "PrimereRefinerPrompt", - "pos": [ - 792, - 729 - ], - "size": { - "0": 455.39410400390625, - "1": 573.5899047851562 - }, - "flags": {}, - "order": 5, - "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", - "link": 373 + "link": 406 }, { "name": "seed", "type": "INT", - "link": 372, + "link": 407, "widget": { "name": "seed" } @@ -397,20 +276,23 @@ { "name": "COND+", "type": "CONDITIONING", - "links": [ - 374 - ], - "shape": 3, - "slot_index": 2 + "links": null, + "shape": 3 }, { "name": "COND-", "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", "links": [ - 375 + 408 ], "shape": 3, - "slot_index": 3 + "slot_index": 4 } ], "properties": { @@ -423,24 +305,197 @@ 1, 1, 1, - 392400973429062, + 783934042842185, "randomize", - "length+mean", + "mean", "comfy++", "", "" ] }, { - "id": 129, - "type": "PreviewImage", + "id": 137, + "type": "PrimereImageSegments", "pos": [ - 1325, - 1139 + 1365, + 475 ], "size": { - "0": 578.4644165039062, - "1": 306.16473388671875 + "0": 468.5999755859375, + "1": 642 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 425 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 408 + }, + { + "name": "model_version", + "type": "STRING", + "link": 410, + "widget": { + "name": "model_version" + } + }, + { + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_search_prompt" + } + }, + { + "name": "dino_replace_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_replace_prompt" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 411 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "IMAGE_SEGS", + "type": "IMAGE", + "links": [ + 422 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "DETECTOR", + "type": "DETECTOR", + "links": [ + 417 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "SAM_MODEL", + "type": "SAM_MODEL", + "links": null, + "shape": 3, + "slot_index": 3 + }, + { + "name": "SEGS", + "type": "SEGS", + "links": [ + 418 + ], + "shape": 3, + "slot_index": 4 + }, + { + "name": "CROP_REGIONS", + "type": "TUPLE", + "links": null, + "shape": 3, + "slot_index": 5 + }, + { + "name": "IMAGE_MAX", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3, + "slot_index": 7 + }, + { + "name": "SEGMENT_SETTINGS", + "type": "TUPLE", + "links": [ + 419 + ], + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 415 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 416 + ], + "shape": 3, + "slot_index": 10 + } + ], + "properties": { + "Node name for S&R": "PrimereImageSegments" + }, + "widgets_values": [ + true, + 0, + 0, + "bbox/face_yolov8n.pt", + "sam_vit_b_01ec64.pth", + "AUTO", + "person", + "vest_dress", + "eye", + 0.5, + 10, + 1.5, + 10, + "BaseModel_1024", + 768, + "", + "" + ] + }, + { + "id": 142, + "type": "PreviewImage", + "pos": [ + 1875, + 950 + ], + "size": { + "0": 232, + "1": 315 }, "flags": {}, "order": 6, @@ -449,7 +504,7 @@ { "name": "images", "type": "IMAGE", - "link": 379, + "link": 422, "slot_index": 0 } ], @@ -458,15 +513,15 @@ } }, { - "id": 125, + "id": 138, "type": "PrimereAnyDetailer", "pos": [ - 2045, - 390 + 1950, + 355 ], "size": { - "0": 405.5999755859375, - "1": 458 + "0": 426, + "1": 530 }, "flags": {}, "order": 7, @@ -475,52 +530,92 @@ { "name": "image", "type": "IMAGE", - "link": 378 + "link": 411 }, { "name": "model", "type": "MODEL", - "link": 345 + "link": 412 }, { "name": "clip", "type": "CLIP", - "link": 346 + "link": 413 }, { "name": "vae", "type": "VAE", - "link": 347 + "link": 414 }, { "name": "positive", "type": "CONDITIONING", - "link": 374 + "link": 415 }, { "name": "negative", "type": "CONDITIONING", - "link": 375 + "link": 416 }, { "name": "segment_settings", "type": "TUPLE", - "link": 381 + "link": 419 }, { "name": "segs", "type": "SEGS", - "link": 380 + "link": 418 }, { "name": "detector", "type": "DETECTOR", - "link": null + "link": 417 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } }, { "name": "seed", "type": "INT", - "link": 350, + "link": 420, "widget": { "name": "seed" } @@ -531,7 +626,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 352 + 421 ], "shape": 3, "slot_index": 0 @@ -540,7 +635,7 @@ "name": "CROPPED_REFINED", "type": "IMAGE", "links": [ - 351 + 423 ], "shape": 6, "slot_index": 1 @@ -562,29 +657,34 @@ "Node name for S&R": "PrimereAnyDetailer" }, "widgets_values": [ - 217476339804601, + 63595822550083, "randomize", - 30, - 8.5, "euler", "normal", - 0.48, - 4, + 25, + 8, + 0.42, + 10, true, false, + 1, + "Normal", + "euler", + "normal", + 4, 1 ] }, { - "id": 58, + "id": 140, "type": "PreviewImage", "pos": [ - 2520, - 291 + 2418, + 75 ], "size": { - "0": 673.8094482421875, - "1": 653.249755859375 + "0": 852, + "1": 936 }, "flags": {}, "order": 8, @@ -593,7 +693,7 @@ { "name": "images", "type": "IMAGE", - "link": 352, + "link": 421, "slot_index": 0 } ], @@ -602,15 +702,15 @@ } }, { - "id": 59, + "id": 141, "type": "PreviewImage", "pos": [ - 2027, - 1133 + 2145, + 950 ], "size": { - "0": 606.1574096679688, - "1": 300.36773681640625 + "0": 230, + "1": 304 }, "flags": {}, "order": 9, @@ -619,7 +719,7 @@ { "name": "images", "type": "IMAGE", - "link": 351, + "link": 423, "slot_index": 0 } ], @@ -630,140 +730,156 @@ ], "links": [ [ - 40, + 384, 45, 0, - 46, + 134, 0, "CHECKPOINT_NAME" ], [ - 345, - 46, + 406, + 134, + 1, + 139, 0, - 125, + "CLIP" + ], + [ + 407, + 48, + 0, + 139, + 1, + "INT" + ], + [ + 408, + 139, + 4, + 137, + 1, + "TUPLE" + ], + [ + 410, + 45, + 1, + 137, + 2, + "STRING" + ], + [ + 411, + 137, + 0, + 138, + 0, + "IMAGE" + ], + [ + 412, + 134, + 0, + 138, 1, "MODEL" ], [ - 346, - 46, + 413, + 134, 1, - 125, + 138, 2, "CLIP" ], [ - 347, - 46, + 414, + 134, 2, - 125, + 138, 3, "VAE" ], [ - 350, - 48, - 0, - 125, + 415, + 137, 9, - "INT" - ], - [ - 351, - 125, - 1, - 59, - 0, - "IMAGE" - ], - [ - 352, - 125, - 0, - 58, - 0, - "IMAGE" - ], - [ - 372, - 48, - 0, - 131, - 1, - "INT" - ], - [ - 373, - 46, - 1, - 131, - 0, - "CLIP" - ], - [ - 374, - 131, - 2, - 125, + 138, 4, "CONDITIONING" ], [ - 375, - 131, - 3, - 125, + 416, + 137, + 10, + 138, 5, "CONDITIONING" ], [ - 376, - 1, - 0, - 132, - 0, - "IMAGE" + 417, + 137, + 2, + 138, + 8, + "DETECTOR" ], [ - 377, - 45, - 1, - 132, - 1, - "STRING" - ], - [ - 378, - 132, - 0, - 125, - 0, - "IMAGE" - ], - [ - 379, - 132, - 1, - 129, - 0, - "IMAGE" - ], - [ - 380, - 132, + 418, + 137, 4, - 125, + 138, 7, "SEGS" ], [ - 381, - 132, - 7, - 125, + 419, + 137, + 8, + 138, 6, "TUPLE" + ], + [ + 420, + 48, + 0, + 138, + 14, + "INT" + ], + [ + 421, + 138, + 0, + 140, + 0, + "IMAGE" + ], + [ + 422, + 137, + 1, + 142, + 0, + "IMAGE" + ], + [ + 423, + 138, + 1, + 141, + 0, + "IMAGE" + ], + [ + 425, + 1, + 0, + 137, + 0, + "IMAGE" ] ], "groups": [], diff --git a/Workflow/civitai-hair-refiner.json b/Workflow/civitai-hair-refiner.json index e910c18..e2c9eb4 100644 --- a/Workflow/civitai-hair-refiner.json +++ b/Workflow/civitai-hair-refiner.json @@ -1,13 +1,13 @@ { - "last_node_id": 132, - "last_link_id": 381, + "last_node_id": 142, + "last_link_id": 425, "nodes": [ { "id": 1, "type": "LoadImage", "pos": [ - 109, - 360 + 50, + 65 ], "size": { "0": 639.1292114257812, @@ -21,7 +21,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 376 + 425 ], "shape": 3, "slot_index": 0 @@ -37,7 +37,7 @@ "Node name for S&R": "LoadImage" }, "widgets_values": [ - "00004-20230720150900-3087570324.jpg", + "ComfyUI_00007hyperv_.png", "image" ] }, @@ -45,8 +45,8 @@ "id": 45, "type": "PrimereVisualCKPT", "pos": [ - 804, - 360 + 750, + 95 ], "size": { "0": 641.046875, @@ -60,7 +60,7 @@ "name": "MODEL_NAME", "type": "CHECKPOINT_NAME", "links": [ - 40 + 384 ], "shape": 3 }, @@ -68,7 +68,7 @@ "name": "MODEL_VERSION", "type": "STRING", "links": [ - 377 + 410 ], "shape": 3, "slot_index": 1 @@ -79,16 +79,16 @@ }, "widgets_values": [ "BestAll\\photon_v1.safetensors", - true, - false + false, + true ] }, { "id": 48, "type": "PrimereSeed", "pos": [ - 797, - 538 + 751, + 268 ], "size": { "0": 402.27398681640625, @@ -102,8 +102,8 @@ "name": "SEED", "type": "INT", "links": [ - 350, - 372 + 407, + 420 ], "shape": 3, "slot_index": 0 @@ -113,22 +113,22 @@ "Node name for S&R": "PrimereSeed" }, "widgets_values": [ - 79222818949421, + 610421989093353, null, null, null ] }, { - "id": 46, + "id": 134, "type": "PrimereCKPTLoader", "pos": [ - 1487, - 364 + 1510, + 95 ], "size": { "0": 330, - "1": 190 + "1": 210 }, "flags": {}, "order": 3, @@ -137,8 +137,12 @@ { "name": "ckpt_name", "type": "CHECKPOINT_NAME", - "link": 40, - "slot_index": 0 + "link": 384 + }, + { + "name": "concept_data", + "type": "TUPLE", + "link": null }, { "name": "loaded_model", @@ -156,11 +160,11 @@ "link": null }, { - "name": "is_lcm", - "type": "INT", + "name": "model_concept", + "type": "STRING", "link": null, "widget": { - "name": "is_lcm" + "name": "model_concept" } } ], @@ -169,7 +173,7 @@ "name": "MODEL", "type": "MODEL", "links": [ - 345 + 412 ], "shape": 3, "slot_index": 0 @@ -178,8 +182,8 @@ "name": "CLIP", "type": "CLIP", "links": [ - 346, - 373 + 406, + 413 ], "shape": 3, "slot_index": 1 @@ -188,7 +192,7 @@ "name": "VAE", "type": "VAE", "links": [ - 347 + 414 ], "shape": 3, "slot_index": 2 @@ -196,7 +200,7 @@ { "name": "MODEL_VERSION", "type": "STRING", - "links": [], + "links": null, "shape": 3, "slot_index": 3 } @@ -205,161 +209,36 @@ "Node name for S&R": "PrimereCKPTLoader" }, "widgets_values": [ - false, + true, 1, 1, - 1 + "Normal" ] }, { - "id": 132, - "type": "PrimereImageSegments", + "id": 139, + "type": "PrimereRefinerPrompt", "pos": [ - 1490, - 600 - ], - "size": [ - 494.3468168904951, - 486 + 750, + 470 ], + "size": { + "0": 579.9000244140625, + "1": 577.9000244140625 + }, "flags": {}, "order": 4, "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 376 - }, - { - "name": "model_version", - "type": "STRING", - "link": 377, - "widget": { - "name": "model_version" - } - }, - { - "name": "dino_serach_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_serach_prompt" - } - }, - { - "name": "dino_replace_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_replace_prompt" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 378 - ], - "shape": 3 - }, - { - "name": "IMAGE_SEGS", - "type": "IMAGE", - "links": [ - 379 - ], - "shape": 6 - }, - { - "name": "DETECTOR", - "type": "DETECTOR", - "links": null, - "shape": 3 - }, - { - "name": "SAM_MODEL", - "type": "SAM_MODEL", - "links": null, - "shape": 3 - }, - { - "name": "SEGS", - "type": "SEGS", - "links": [ - 380 - ], - "shape": 3 - }, - { - "name": "CROP_REGIONS", - "type": "TUPLE", - "links": null, - "shape": 3 - }, - { - "name": "IMAGE_MAX", - "type": "INT", - "links": null, - "shape": 3 - }, - { - "name": "SEGMENT_SETTINGS", - "type": "TUPLE", - "links": [ - 381 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereImageSegments" - }, - "widgets_values": [ - true, - 0, - 5000, - "segm/hair_yolov8n-seg_60.pt", - "sam_vit_b_01ec64.pth", - "AUTO", - "person", - "short_sleeved_shirt", - "eye", - 0.6, - 3, - 1.2000000000000002, - 10, - "BaseModel_1024", - "", - "" - ] - }, - { - "id": 131, - "type": "PrimereRefinerPrompt", - "pos": [ - 792, - 729 - ], - "size": { - "0": 455.39410400390625, - "1": 573.5899047851562 - }, - "flags": {}, - "order": 5, - "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", - "link": 373 + "link": 406 }, { "name": "seed", "type": "INT", - "link": 372, + "link": 407, "widget": { "name": "seed" } @@ -397,50 +276,226 @@ { "name": "COND+", "type": "CONDITIONING", - "links": [ - 374 - ], - "shape": 3, - "slot_index": 2 + "links": null, + "shape": 3 }, { "name": "COND-", "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", "links": [ - 375 + 408 ], "shape": 3, - "slot_index": 3 + "slot_index": 4 } ], "properties": { "Node name for S&R": "PrimereRefinerPrompt" }, "widgets_values": [ - "long ligt-pink hair, detailed hair image", - "black brown", + "(dark-{black|brown|red|green|blue|pink}:1.3) curly hair", + "blurred, cap, face", 1, 1, 1, 1, - 996489686208211, + 462182293888357, "randomize", - "length+mean", + "mean", "comfy++", "", "" ] }, { - "id": 129, - "type": "PreviewImage", + "id": 137, + "type": "PrimereImageSegments", "pos": [ - 1322, - 1154 + 1365, + 475 ], "size": { - "0": 578.4644165039062, - "1": 306.16473388671875 + "0": 468.5999755859375, + "1": 642 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 425 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 408 + }, + { + "name": "model_version", + "type": "STRING", + "link": 410, + "widget": { + "name": "model_version" + } + }, + { + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_search_prompt" + } + }, + { + "name": "dino_replace_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_replace_prompt" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 411 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "IMAGE_SEGS", + "type": "IMAGE", + "links": [ + 422 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "DETECTOR", + "type": "DETECTOR", + "links": [ + 417 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "SAM_MODEL", + "type": "SAM_MODEL", + "links": null, + "shape": 3, + "slot_index": 3 + }, + { + "name": "SEGS", + "type": "SEGS", + "links": [ + 418 + ], + "shape": 3, + "slot_index": 4 + }, + { + "name": "CROP_REGIONS", + "type": "TUPLE", + "links": null, + "shape": 3, + "slot_index": 5 + }, + { + "name": "IMAGE_MAX", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3, + "slot_index": 7 + }, + { + "name": "SEGMENT_SETTINGS", + "type": "TUPLE", + "links": [ + 419 + ], + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 415 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 416 + ], + "shape": 3, + "slot_index": 10 + } + ], + "properties": { + "Node name for S&R": "PrimereImageSegments" + }, + "widgets_values": [ + true, + 0, + 0, + "segm/hair_yolov8n-seg_60.pt", + "sam_vit_b_01ec64.pth", + "AUTO", + "person", + "vest_dress", + "eye", + 0.5, + 9, + 1.2000000000000002, + 10, + "BaseModel_1024", + 768, + "", + "" + ] + }, + { + "id": 142, + "type": "PreviewImage", + "pos": [ + 1875, + 950 + ], + "size": { + "0": 232, + "1": 315 }, "flags": {}, "order": 6, @@ -449,7 +504,7 @@ { "name": "images", "type": "IMAGE", - "link": 379, + "link": 422, "slot_index": 0 } ], @@ -458,15 +513,15 @@ } }, { - "id": 125, + "id": 138, "type": "PrimereAnyDetailer", "pos": [ - 2045, - 390 + 1950, + 355 ], "size": { - "0": 405.5999755859375, - "1": 458 + "0": 426, + "1": 530 }, "flags": {}, "order": 7, @@ -475,52 +530,92 @@ { "name": "image", "type": "IMAGE", - "link": 378 + "link": 411 }, { "name": "model", "type": "MODEL", - "link": 345 + "link": 412 }, { "name": "clip", "type": "CLIP", - "link": 346 + "link": 413 }, { "name": "vae", "type": "VAE", - "link": 347 + "link": 414 }, { "name": "positive", "type": "CONDITIONING", - "link": 374 + "link": 415 }, { "name": "negative", "type": "CONDITIONING", - "link": 375 + "link": 416 }, { "name": "segment_settings", "type": "TUPLE", - "link": 381 + "link": 419 }, { "name": "segs", "type": "SEGS", - "link": 380 + "link": 418 }, { "name": "detector", "type": "DETECTOR", - "link": null + "link": 417 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } }, { "name": "seed", "type": "INT", - "link": 350, + "link": 420, "widget": { "name": "seed" } @@ -531,7 +626,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 352 + 421 ], "shape": 3, "slot_index": 0 @@ -540,7 +635,7 @@ "name": "CROPPED_REFINED", "type": "IMAGE", "links": [ - 351 + 423 ], "shape": 6, "slot_index": 1 @@ -562,29 +657,34 @@ "Node name for S&R": "PrimereAnyDetailer" }, "widgets_values": [ - 936681996752245, + 979781680127353, "randomize", - 25, - 7.5, "euler", "normal", - 0.65, - 20, + 25, + 8, + 0.73, + 10, true, false, + 1, + "Normal", + "euler", + "normal", + 4, 1 ] }, { - "id": 58, + "id": 140, "type": "PreviewImage", "pos": [ - 2520, - 291 + 2418, + 75 ], "size": { - "0": 673.8094482421875, - "1": 653.249755859375 + "0": 852, + "1": 936 }, "flags": {}, "order": 8, @@ -593,7 +693,7 @@ { "name": "images", "type": "IMAGE", - "link": 352, + "link": 421, "slot_index": 0 } ], @@ -602,15 +702,15 @@ } }, { - "id": 59, + "id": 141, "type": "PreviewImage", "pos": [ - 2107, - 1086 + 2145, + 950 ], "size": { - "0": 606.1574096679688, - "1": 300.36773681640625 + "0": 230, + "1": 304 }, "flags": {}, "order": 9, @@ -619,7 +719,7 @@ { "name": "images", "type": "IMAGE", - "link": 351, + "link": 423, "slot_index": 0 } ], @@ -630,140 +730,156 @@ ], "links": [ [ - 40, + 384, 45, 0, - 46, + 134, 0, "CHECKPOINT_NAME" ], [ - 345, - 46, + 406, + 134, + 1, + 139, 0, - 125, + "CLIP" + ], + [ + 407, + 48, + 0, + 139, + 1, + "INT" + ], + [ + 408, + 139, + 4, + 137, + 1, + "TUPLE" + ], + [ + 410, + 45, + 1, + 137, + 2, + "STRING" + ], + [ + 411, + 137, + 0, + 138, + 0, + "IMAGE" + ], + [ + 412, + 134, + 0, + 138, 1, "MODEL" ], [ - 346, - 46, + 413, + 134, 1, - 125, + 138, 2, "CLIP" ], [ - 347, - 46, + 414, + 134, 2, - 125, + 138, 3, "VAE" ], [ - 350, - 48, - 0, - 125, + 415, + 137, 9, - "INT" - ], - [ - 351, - 125, - 1, - 59, - 0, - "IMAGE" - ], - [ - 352, - 125, - 0, - 58, - 0, - "IMAGE" - ], - [ - 372, - 48, - 0, - 131, - 1, - "INT" - ], - [ - 373, - 46, - 1, - 131, - 0, - "CLIP" - ], - [ - 374, - 131, - 2, - 125, + 138, 4, "CONDITIONING" ], [ - 375, - 131, - 3, - 125, + 416, + 137, + 10, + 138, 5, "CONDITIONING" ], [ - 376, - 1, - 0, - 132, - 0, - "IMAGE" + 417, + 137, + 2, + 138, + 8, + "DETECTOR" ], [ - 377, - 45, - 1, - 132, - 1, - "STRING" - ], - [ - 378, - 132, - 0, - 125, - 0, - "IMAGE" - ], - [ - 379, - 132, - 1, - 129, - 0, - "IMAGE" - ], - [ - 380, - 132, + 418, + 137, 4, - 125, + 138, 7, "SEGS" ], [ - 381, - 132, - 7, - 125, + 419, + 137, + 8, + 138, 6, "TUPLE" + ], + [ + 420, + 48, + 0, + 138, + 14, + "INT" + ], + [ + 421, + 138, + 0, + 140, + 0, + "IMAGE" + ], + [ + 422, + 137, + 1, + 142, + 0, + "IMAGE" + ], + [ + 423, + 138, + 1, + 141, + 0, + "IMAGE" + ], + [ + 425, + 1, + 0, + 137, + 0, + "IMAGE" ] ], "groups": [], diff --git a/Workflow/civitai-hand-refiner.json b/Workflow/civitai-hand-refiner.json index 56b78d5..bdbc355 100644 --- a/Workflow/civitai-hand-refiner.json +++ b/Workflow/civitai-hand-refiner.json @@ -1,13 +1,13 @@ { - "last_node_id": 132, - "last_link_id": 381, + "last_node_id": 142, + "last_link_id": 425, "nodes": [ { "id": 1, "type": "LoadImage", "pos": [ - 109, - 360 + 50, + 65 ], "size": { "0": 639.1292114257812, @@ -21,7 +21,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 376 + 425 ], "shape": 3, "slot_index": 0 @@ -37,7 +37,7 @@ "Node name for S&R": "LoadImage" }, "widgets_values": [ - "Image_20241301_134806_211178893612040_2568x3648_1.jpg", + "ORIGINAL_INPUT.png", "image" ] }, @@ -45,8 +45,8 @@ "id": 45, "type": "PrimereVisualCKPT", "pos": [ - 804, - 360 + 750, + 95 ], "size": { "0": 641.046875, @@ -60,7 +60,7 @@ "name": "MODEL_NAME", "type": "CHECKPOINT_NAME", "links": [ - 40 + 384 ], "shape": 3 }, @@ -68,7 +68,7 @@ "name": "MODEL_VERSION", "type": "STRING", "links": [ - 377 + 410 ], "shape": 3, "slot_index": 1 @@ -78,17 +78,17 @@ "Node name for S&R": "PrimereVisualCKPT" }, "widgets_values": [ - "SDXL\\icbinpXL_v10.safetensors", - true, - false + "BestAll\\photon_v1.safetensors", + false, + true ] }, { "id": 48, "type": "PrimereSeed", "pos": [ - 797, - 538 + 751, + 268 ], "size": { "0": 402.27398681640625, @@ -102,8 +102,8 @@ "name": "SEED", "type": "INT", "links": [ - 350, - 372 + 407, + 420 ], "shape": 3, "slot_index": 0 @@ -113,22 +113,22 @@ "Node name for S&R": "PrimereSeed" }, "widgets_values": [ - -1, + 1080928404499292, null, null, null ] }, { - "id": 46, + "id": 134, "type": "PrimereCKPTLoader", "pos": [ - 1487, - 364 + 1510, + 95 ], "size": { "0": 330, - "1": 190 + "1": 210 }, "flags": {}, "order": 3, @@ -137,8 +137,12 @@ { "name": "ckpt_name", "type": "CHECKPOINT_NAME", - "link": 40, - "slot_index": 0 + "link": 384 + }, + { + "name": "concept_data", + "type": "TUPLE", + "link": null }, { "name": "loaded_model", @@ -156,11 +160,11 @@ "link": null }, { - "name": "is_lcm", - "type": "INT", + "name": "model_concept", + "type": "STRING", "link": null, "widget": { - "name": "is_lcm" + "name": "model_concept" } } ], @@ -169,7 +173,7 @@ "name": "MODEL", "type": "MODEL", "links": [ - 345 + 412 ], "shape": 3, "slot_index": 0 @@ -178,8 +182,8 @@ "name": "CLIP", "type": "CLIP", "links": [ - 346, - 373 + 406, + 413 ], "shape": 3, "slot_index": 1 @@ -188,7 +192,7 @@ "name": "VAE", "type": "VAE", "links": [ - 347 + 414 ], "shape": 3, "slot_index": 2 @@ -196,7 +200,7 @@ { "name": "MODEL_VERSION", "type": "STRING", - "links": [], + "links": null, "shape": 3, "slot_index": 3 } @@ -205,161 +209,36 @@ "Node name for S&R": "PrimereCKPTLoader" }, "widgets_values": [ - false, + true, 1, 1, - 1 + "Normal" ] }, { - "id": 132, - "type": "PrimereImageSegments", + "id": 139, + "type": "PrimereRefinerPrompt", "pos": [ - 1490, - 600 + 750, + 470 ], "size": { - "0": 530.7103881835938, - "1": 486 + "0": 579.9000244140625, + "1": 577.9000244140625 }, "flags": {}, "order": 4, "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 376 - }, - { - "name": "model_version", - "type": "STRING", - "link": 377, - "widget": { - "name": "model_version" - } - }, - { - "name": "dino_serach_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_serach_prompt" - } - }, - { - "name": "dino_replace_prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "dino_replace_prompt" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 378 - ], - "shape": 3 - }, - { - "name": "IMAGE_SEGS", - "type": "IMAGE", - "links": [ - 379 - ], - "shape": 6 - }, - { - "name": "DETECTOR", - "type": "DETECTOR", - "links": null, - "shape": 3 - }, - { - "name": "SAM_MODEL", - "type": "SAM_MODEL", - "links": null, - "shape": 3 - }, - { - "name": "SEGS", - "type": "SEGS", - "links": [ - 380 - ], - "shape": 3 - }, - { - "name": "CROP_REGIONS", - "type": "TUPLE", - "links": null, - "shape": 3 - }, - { - "name": "IMAGE_MAX", - "type": "INT", - "links": null, - "shape": 3 - }, - { - "name": "SEGMENT_SETTINGS", - "type": "TUPLE", - "links": [ - 381 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereImageSegments" - }, - "widgets_values": [ - true, - 0, - 0, - "bbox/hand_yolov8n.pt", - "sam_vit_b_01ec64.pth", - "AUTO", - "person", - "short_sleeved_shirt", - "eye", - 0.65, - 0, - 3, - 10, - "BaseModel_1024", - "", - "" - ] - }, - { - "id": 131, - "type": "PrimereRefinerPrompt", - "pos": [ - 792, - 729 - ], - "size": { - "0": 455.39410400390625, - "1": 573.5899047851562 - }, - "flags": {}, - "order": 5, - "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", - "link": 373 + "link": 406 }, { "name": "seed", "type": "INT", - "link": 372, + "link": 407, "widget": { "name": "seed" } @@ -397,33 +276,36 @@ { "name": "COND+", "type": "CONDITIONING", - "links": [ - 374 - ], - "shape": 3, - "slot_index": 2 + "links": null, + "shape": 3 }, { "name": "COND-", "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", "links": [ - 375 + 408 ], "shape": 3, - "slot_index": 3 + "slot_index": 4 } ], "properties": { "Node name for S&R": "PrimereRefinerPrompt" }, "widgets_values": [ - "perfect hands, head of hand only, natural detailed skin, perfect fingers, detailed, ultra detailed, realistic photo quality, high resolution, smooth, nicely proportioned, 8k, ultradetailed", - "Deformed, blurry, bad anatomy, disfigured, mutation, mutated, weird hands, broken fingers, extra fingers, missing fingers, mutated hands, bad nails, deformed nails, bad hand, blur, blurred, long fingers, tangled fingers, (blurred, blurry, face, mouth, eye, vague, jpeg artifacts:1.6), bad shadows", + "perfect hands, head of hand only, natural detailed skin, perfect fingers, detailed, ultra detailed, realistic photo quality, high resolution, smooth, nicely proportioned", + "Deformed, blurry, bad anatomy, disfigured, mutation, mutated, weird hands, broken fingers, extra fingers, missing fingers, mutated hands, bad nails, deformed nails, bad hand, blur, blurred, long fingers, tangled fingers, (blurred, blurry, face, mouth, eye, vague, jpeg artifacts:1.4), bad shadows", 1, 1, 1, 1, - 811037129184416, + 477020500931647, "randomize", "mean", "comfy++", @@ -432,15 +314,188 @@ ] }, { - "id": 129, - "type": "PreviewImage", + "id": 137, + "type": "PrimereImageSegments", "pos": [ - 1424, - 1142 + 1365, + 475 ], "size": { - "0": 578.4644165039062, - "1": 306.16473388671875 + "0": 468.5999755859375, + "1": 642 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 425 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 408 + }, + { + "name": "model_version", + "type": "STRING", + "link": 410, + "widget": { + "name": "model_version" + } + }, + { + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_search_prompt" + } + }, + { + "name": "dino_replace_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_replace_prompt" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 411 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "IMAGE_SEGS", + "type": "IMAGE", + "links": [ + 422 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "DETECTOR", + "type": "DETECTOR", + "links": [ + 417 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "SAM_MODEL", + "type": "SAM_MODEL", + "links": null, + "shape": 3, + "slot_index": 3 + }, + { + "name": "SEGS", + "type": "SEGS", + "links": [ + 418 + ], + "shape": 3, + "slot_index": 4 + }, + { + "name": "CROP_REGIONS", + "type": "TUPLE", + "links": null, + "shape": 3, + "slot_index": 5 + }, + { + "name": "IMAGE_MAX", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3, + "slot_index": 7 + }, + { + "name": "SEGMENT_SETTINGS", + "type": "TUPLE", + "links": [ + 419 + ], + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 415 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 416 + ], + "shape": 3, + "slot_index": 10 + } + ], + "properties": { + "Node name for S&R": "PrimereImageSegments" + }, + "widgets_values": [ + true, + 0, + 0, + "bbox/hand_yolov8n.pt", + "sam_vit_b_01ec64.pth", + "AUTO", + "person", + "vest_dress", + "eye", + 0.5, + 10, + 1.5, + 10, + "BaseModel_1024", + 768, + "", + "" + ] + }, + { + "id": 142, + "type": "PreviewImage", + "pos": [ + 1875, + 950 + ], + "size": { + "0": 232, + "1": 315 }, "flags": {}, "order": 6, @@ -449,7 +504,7 @@ { "name": "images", "type": "IMAGE", - "link": 379, + "link": 422, "slot_index": 0 } ], @@ -458,15 +513,15 @@ } }, { - "id": 125, + "id": 138, "type": "PrimereAnyDetailer", "pos": [ - 2045, - 390 + 1950, + 355 ], "size": { - "0": 405.5999755859375, - "1": 458 + "0": 426, + "1": 530 }, "flags": {}, "order": 7, @@ -475,52 +530,92 @@ { "name": "image", "type": "IMAGE", - "link": 378 + "link": 411 }, { "name": "model", "type": "MODEL", - "link": 345 + "link": 412 }, { "name": "clip", "type": "CLIP", - "link": 346 + "link": 413 }, { "name": "vae", "type": "VAE", - "link": 347 + "link": 414 }, { "name": "positive", "type": "CONDITIONING", - "link": 374 + "link": 415 }, { "name": "negative", "type": "CONDITIONING", - "link": 375 + "link": 416 }, { "name": "segment_settings", "type": "TUPLE", - "link": 381 + "link": 419 }, { "name": "segs", "type": "SEGS", - "link": 380 + "link": 418 }, { "name": "detector", "type": "DETECTOR", - "link": null + "link": 417 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } }, { "name": "seed", "type": "INT", - "link": 350, + "link": 420, "widget": { "name": "seed" } @@ -531,7 +626,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 352 + 421 ], "shape": 3, "slot_index": 0 @@ -540,7 +635,7 @@ "name": "CROPPED_REFINED", "type": "IMAGE", "links": [ - 351 + 423 ], "shape": 6, "slot_index": 1 @@ -562,29 +657,34 @@ "Node name for S&R": "PrimereAnyDetailer" }, "widgets_values": [ - 1061251226328543, + 756865534900922, "randomize", - 40, - 9, - "dpmpp_2m", - "karras", - 0.3, + "euler", + "normal", + 25, + 8, + 0.42, 10, true, false, + 1, + "Normal", + "euler", + "normal", + 4, 1 ] }, { - "id": 58, + "id": 140, "type": "PreviewImage", "pos": [ - 2520, - 291 + 2418, + 75 ], "size": { - "0": 673.8094482421875, - "1": 653.249755859375 + "0": 852, + "1": 936 }, "flags": {}, "order": 8, @@ -593,7 +693,7 @@ { "name": "images", "type": "IMAGE", - "link": 352, + "link": 421, "slot_index": 0 } ], @@ -602,15 +702,15 @@ } }, { - "id": 59, + "id": 141, "type": "PreviewImage", "pos": [ - 2058, - 1144 + 2145, + 950 ], "size": { - "0": 606.1574096679688, - "1": 300.36773681640625 + "0": 230, + "1": 304 }, "flags": {}, "order": 9, @@ -619,7 +719,7 @@ { "name": "images", "type": "IMAGE", - "link": 351, + "link": 423, "slot_index": 0 } ], @@ -630,140 +730,156 @@ ], "links": [ [ - 40, + 384, 45, 0, - 46, + 134, 0, "CHECKPOINT_NAME" ], [ - 345, - 46, + 406, + 134, + 1, + 139, 0, - 125, + "CLIP" + ], + [ + 407, + 48, + 0, + 139, + 1, + "INT" + ], + [ + 408, + 139, + 4, + 137, + 1, + "TUPLE" + ], + [ + 410, + 45, + 1, + 137, + 2, + "STRING" + ], + [ + 411, + 137, + 0, + 138, + 0, + "IMAGE" + ], + [ + 412, + 134, + 0, + 138, 1, "MODEL" ], [ - 346, - 46, + 413, + 134, 1, - 125, + 138, 2, "CLIP" ], [ - 347, - 46, + 414, + 134, 2, - 125, + 138, 3, "VAE" ], [ - 350, - 48, - 0, - 125, + 415, + 137, 9, - "INT" - ], - [ - 351, - 125, - 1, - 59, - 0, - "IMAGE" - ], - [ - 352, - 125, - 0, - 58, - 0, - "IMAGE" - ], - [ - 372, - 48, - 0, - 131, - 1, - "INT" - ], - [ - 373, - 46, - 1, - 131, - 0, - "CLIP" - ], - [ - 374, - 131, - 2, - 125, + 138, 4, "CONDITIONING" ], [ - 375, - 131, - 3, - 125, + 416, + 137, + 10, + 138, 5, "CONDITIONING" ], [ - 376, - 1, - 0, - 132, - 0, - "IMAGE" + 417, + 137, + 2, + 138, + 8, + "DETECTOR" ], [ - 377, - 45, - 1, - 132, - 1, - "STRING" - ], - [ - 378, - 132, - 0, - 125, - 0, - "IMAGE" - ], - [ - 379, - 132, - 1, - 129, - 0, - "IMAGE" - ], - [ - 380, - 132, + 418, + 137, 4, - 125, + 138, 7, "SEGS" ], [ - 381, - 132, - 7, - 125, + 419, + 137, + 8, + 138, 6, "TUPLE" + ], + [ + 420, + 48, + 0, + 138, + 14, + "INT" + ], + [ + 421, + 138, + 0, + 140, + 0, + "IMAGE" + ], + [ + 422, + 137, + 1, + 142, + 0, + "IMAGE" + ], + [ + 423, + 138, + 1, + 141, + 0, + "IMAGE" + ], + [ + 425, + 1, + 0, + 137, + 0, + "IMAGE" ] ], "groups": [], diff --git a/Workflow/civitai-image-recycler.json b/Workflow/civitai-image-recycler.json new file mode 100644 index 0000000..7935ed2 --- /dev/null +++ b/Workflow/civitai-image-recycler.json @@ -0,0 +1,1158 @@ +{ + "last_node_id": 10, + "last_link_id": 33, + "nodes": [ + { + "id": 1, + "type": "PrimereMetaHandler", + "pos": [ + 60, + 93 + ], + "size": { + "0": 794.3366088867188, + "1": 1014.8226318359375 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [ + { + "name": "workflow_tuple", + "type": "TUPLE", + "link": null + } + ], + "outputs": [ + { + "name": "WORKFLOW_TUPLE", + "type": "TUPLE", + "links": [ + 1, + 3 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "ORIGINAL_EXIF", + "type": "TUPLE", + "links": null, + "shape": 3 + }, + { + "name": "LOADED_IMAGE", + "type": "IMAGE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereMetaHandler" + }, + "widgets_values": [ + true, + true, + false, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + false, + false, + false, + "civitai-recycler02.jpg", + "image" + ] + }, + { + "id": 2, + "type": "PrimereMetaDistributor", + "pos": [ + 903, + 93 + ], + "size": { + "0": 355.20001220703125, + "1": 366 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "workflow_tuple", + "type": "TUPLE", + "link": 1 + } + ], + "outputs": [ + { + "name": "PROMPT+", + "type": "STRING", + "links": [ + 4 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "PROMPT-", + "type": "STRING", + "links": [ + 5 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "PROMPT L+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT L-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT R+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT R-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "MODEL", + "type": "CHECKPOINT_NAME", + "links": [ + 2 + ], + "shape": 3, + "slot_index": 6 + }, + { + "name": "MODEL_VERSION", + "type": "STRING", + "links": [ + 6 + ], + "shape": 3, + "slot_index": 7 + }, + { + "name": "MODEL_CONCEPT", + "type": "STRING", + "links": [ + 7, + 10, + 28 + ], + "shape": 3, + "slot_index": 8 + }, + { + "name": "CONCEPT_DATA", + "type": "TUPLE", + "links": [ + 11 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "VAE", + "type": "VAE_NAME", + "links": [ + 13 + ], + "shape": 3, + "slot_index": 10 + }, + { + "name": "SAMPLER", + "type": "COMBO", + "links": [ + 26 + ], + "shape": 3, + "slot_index": 11 + }, + { + "name": "SCHEDULER", + "type": "COMBO", + "links": [ + 27 + ], + "shape": 3, + "slot_index": 12 + }, + { + "name": "STEPS", + "type": "INT", + "links": [ + 24 + ], + "shape": 3, + "slot_index": 13 + }, + { + "name": "CFG", + "type": "FLOAT", + "links": [ + 25 + ], + "shape": 3, + "slot_index": 14 + }, + { + "name": "SEED", + "type": "INT", + "links": [ + 22, + 23 + ], + "shape": 3, + "slot_index": 15 + }, + { + "name": "WIDTH", + "type": "INT", + "links": [ + 18, + 29 + ], + "shape": 3, + "slot_index": 16 + }, + { + "name": "HEIGHT", + "type": "INT", + "links": [ + 21, + 30 + ], + "shape": 3, + "slot_index": 17 + } + ], + "properties": { + "Node name for S&R": "PrimereMetaDistributor" + } + }, + { + "id": 4, + "type": "PrimereAnyOutput", + "pos": [ + 901, + 515 + ], + "size": [ + 840, + 863 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "input", + "type": "*", + "link": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereAnyOutput" + }, + "widgets_values": [ + "{\n \"exif_status\": \"SUCCEED\",\n \"exif_data_count\": 15,\n \"positive\": \"Golden Yellow luxury slow European big modern futuristic spaceship in the highway of small city, racing, professional car photography\",\n \"prompt_state\": \"Dynamic\",\n \"decoded_positive\": \"Golden Yellow luxury slow European big modern futuristic spaceship in the highway of small city, racing, professional car photography\",\n \"model\": \"BestAll\\\\photon_v1.safetensors\",\n \"model_version\": \"BaseModel_768\",\n \"is_sdxl\": 0,\n \"model_hash\": \"ec41bd2a82\",\n \"vae\": \"Baked VAE\",\n \"sampler\": \"dpmpp_sde\",\n \"scheduler\": \"karras\",\n \"steps\": 30,\n \"cfg\": 9.0,\n \"seed\": 1255477315,\n \"width\": 768,\n \"height\": 512,\n \"size_string\": \"768x512\",\n \"face_restoration\": \"GFPGAN\",\n \"cfg_rescale\": 0.0,\n \"npw_weight\": 1.2,\n \"antiburn\": 5,\n \"version\": \"v1.3.1-1-gcbe17997\",\n \"meta_source\": \"Automatic1111\",\n \"setup_states\": {\n \"data_source\": true,\n \"prompt_surce\": true,\n \"prompt_state\": false,\n \"model\": true,\n \"model_hash_check\": false,\n \"sampler\": true,\n \"scheduler\": true,\n \"cfg\": true,\n \"steps\": true,\n \"seed\": true,\n \"image_size\": true,\n \"recount_image\": false,\n \"vae\": false,\n \"force_vae\": true,\n \"model_concept\": false,\n \"prefered\": false,\n \"use_prefered\": false,\n \"image\": \"civitai-recycler02.jpg\"\n }\n}" + ] + }, + { + "id": 3, + "type": "PrimereCKPTLoader", + "pos": [ + 1339, + 92 + ], + "size": { + "0": 369.4214782714844, + "1": 206 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "ckpt_name", + "type": "CHECKPOINT_NAME", + "link": 2 + }, + { + "name": "concept_data", + "type": "TUPLE", + "link": 11 + }, + { + "name": "loaded_model", + "type": "MODEL", + "link": null + }, + { + "name": "loaded_clip", + "type": "CLIP", + "link": null + }, + { + "name": "loaded_vae", + "type": "VAE", + "link": null + }, + { + "name": "model_concept", + "type": "STRING", + "link": 10, + "widget": { + "name": "model_concept" + } + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 33 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 32 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 12, + 17 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "MODEL_VERSION", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereCKPTLoader" + }, + "widgets_values": [ + true, + 1, + 1, + "Normal" + ] + }, + { + "id": 6, + "type": "PrimereCLIPEncoder", + "pos": [ + 2101, + 505 + ], + "size": [ + 355, + 758 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 32 + }, + { + "name": "model_keywords", + "type": "MODEL_KEYWORD", + "link": null + }, + { + "name": "lora_keywords", + "type": "MODEL_KEYWORD", + "link": null + }, + { + "name": "lycoris_keywords", + "type": "MODEL_KEYWORD", + "link": null + }, + { + "name": "embedding_pos", + "type": "EMBEDDING", + "link": null + }, + { + "name": "embedding_neg", + "type": "EMBEDDING", + "link": null + }, + { + "name": "model_version", + "type": "STRING", + "link": 6, + "widget": { + "name": "model_version" + } + }, + { + "name": "positive_prompt", + "type": "STRING", + "link": 4, + "widget": { + "name": "positive_prompt" + } + }, + { + "name": "negative_prompt", + "type": "STRING", + "link": 5, + "widget": { + "name": "negative_prompt" + } + }, + { + "name": "model_concept", + "type": "STRING", + "link": 28, + "widget": { + "name": "model_concept" + } + }, + { + "name": "opt_pos_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "opt_pos_prompt" + } + }, + { + "name": "opt_neg_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "opt_neg_prompt" + } + }, + { + "name": "style_pos_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "style_pos_prompt" + } + }, + { + "name": "style_neg_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "style_neg_prompt" + } + }, + { + "name": "sdxl_positive_l", + "type": "STRING", + "link": null, + "widget": { + "name": "sdxl_positive_l" + } + }, + { + "name": "sdxl_negative_l", + "type": "STRING", + "link": null, + "widget": { + "name": "sdxl_negative_l" + } + }, + { + "name": "width", + "type": "INT", + "link": 29, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 30, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 8 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "PROMPT+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT L+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT L-", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereCLIPEncoder" + }, + "widgets_values": [ + "BaseModel_1024", + "", + "", + 1.2, + false, + "PHOTO_SFW", + 1, + "BETTER_IMAGES", + 0.8, + true, + "length", + "comfy++", + "Normal", + "", + 1, + "", + 1, + false, + "", + 1, + "", + 1, + "", + "", + true, + 1, + 1024, + 1024 + ] + }, + { + "id": 5, + "type": "PrimereVAELoader", + "pos": [ + 1824, + 88 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "vae_name", + "type": "VAE_NAME", + "link": 13 + }, + { + "name": "baked_vae", + "type": "VAE", + "link": 12 + } + ], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 14 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PrimereVAELoader" + } + }, + { + "id": 9, + "type": "PrimereLatentNoise", + "pos": [ + 1766, + 198 + ], + "size": [ + 314, + 454 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "optional_vae", + "type": "VAE", + "link": 17 + }, + { + "name": "width", + "type": "INT", + "link": 18, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 21, + "widget": { + "name": "height" + } + }, + { + "name": "noise_seed", + "type": "INT", + "link": 22, + "widget": { + "name": "noise_seed" + } + } + ], + "outputs": [ + { + "name": "LATENTS", + "type": "LATENT", + "links": [ + 16 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "PREVIEWS", + "type": "IMAGE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereLatentNoise" + }, + "widgets_values": [ + 512, + 512, + true, + "white", + true, + 1, + 0.5, + 1.5, + true, + 1, + 0.8, + 1.4, + 478824831178323, + "randomize", + true, + "cpu", + false, + 1032393767947067, + "randomize" + ] + }, + { + "id": 7, + "type": "PrimereKSampler", + "pos": [ + 2136, + 198 + ], + "size": { + "0": 306.481201171875, + "1": 246 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 33 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 8 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 9 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 16 + }, + { + "name": "model_concept", + "type": "STRING", + "link": 7, + "widget": { + "name": "model_concept" + } + }, + { + "name": "seed", + "type": "INT", + "link": 23, + "widget": { + "name": "seed" + } + }, + { + "name": "cfg", + "type": "FLOAT", + "link": 25, + "widget": { + "name": "cfg" + } + }, + { + "name": "sampler_name", + "type": "COMBO", + "link": 26, + "widget": { + "name": "sampler_name" + } + }, + { + "name": "steps", + "type": "INT", + "link": 24, + "widget": { + "name": "steps" + } + }, + { + "name": "scheduler_name", + "type": "COMBO", + "link": 27, + "widget": { + "name": "scheduler_name" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 15 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PrimereKSampler" + }, + "widgets_values": [ + 537483628507981, + "randomize", + 20, + 8, + "euler", + "normal", + 1, + "Normal" + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 2164, + 91 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 15 + }, + { + "name": "vae", + "type": "VAE", + "link": 14 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 31 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 10, + "type": "PreviewImage", + "pos": [ + 2484, + 101 + ], + "size": [ + 824, + 915 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 31 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 1, + 1, + 0, + 2, + 0, + "TUPLE" + ], + [ + 2, + 2, + 6, + 3, + 0, + "CHECKPOINT_NAME" + ], + [ + 3, + 1, + 0, + 4, + 0, + "*" + ], + [ + 4, + 2, + 0, + 6, + 7, + "STRING" + ], + [ + 5, + 2, + 1, + 6, + 8, + "STRING" + ], + [ + 6, + 2, + 7, + 6, + 6, + "STRING" + ], + [ + 7, + 2, + 8, + 7, + 4, + "STRING" + ], + [ + 8, + 6, + 0, + 7, + 1, + "CONDITIONING" + ], + [ + 9, + 6, + 1, + 7, + 2, + "CONDITIONING" + ], + [ + 10, + 2, + 8, + 3, + 5, + "STRING" + ], + [ + 11, + 2, + 9, + 3, + 1, + "TUPLE" + ], + [ + 12, + 3, + 2, + 5, + 1, + "VAE" + ], + [ + 13, + 2, + 10, + 5, + 0, + "VAE_NAME" + ], + [ + 14, + 5, + 0, + 8, + 1, + "VAE" + ], + [ + 15, + 7, + 0, + 8, + 0, + "LATENT" + ], + [ + 16, + 9, + 0, + 7, + 3, + "LATENT" + ], + [ + 17, + 3, + 2, + 9, + 0, + "VAE" + ], + [ + 18, + 2, + 16, + 9, + 1, + "INT" + ], + [ + 21, + 2, + 17, + 9, + 2, + "INT" + ], + [ + 22, + 2, + 15, + 9, + 3, + "INT" + ], + [ + 23, + 2, + 15, + 7, + 5, + "INT" + ], + [ + 24, + 2, + 13, + 7, + 8, + "INT" + ], + [ + 25, + 2, + 14, + 7, + 6, + "FLOAT" + ], + [ + 26, + 2, + 11, + 7, + 7, + "COMBO" + ], + [ + 27, + 2, + 12, + 7, + 9, + "COMBO" + ], + [ + 28, + 2, + 8, + 6, + 9, + "STRING" + ], + [ + 29, + 2, + 16, + 6, + 16, + "INT" + ], + [ + 30, + 2, + 17, + 6, + 17, + "INT" + ], + [ + 31, + 8, + 0, + 10, + 0, + "IMAGE" + ], + [ + 32, + 3, + 1, + 6, + 0, + "CLIP" + ], + [ + 33, + 3, + 0, + 7, + 0, + "MODEL" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/Workflow/civitai-rewear-refiner.json b/Workflow/civitai-rewear-refiner.json index a2a58e3..06fcabf 100644 --- a/Workflow/civitai-rewear-refiner.json +++ b/Workflow/civitai-rewear-refiner.json @@ -1,13 +1,13 @@ { - "last_node_id": 132, - "last_link_id": 381, + "last_node_id": 142, + "last_link_id": 425, "nodes": [ { "id": 1, "type": "LoadImage", "pos": [ - 109, - 360 + 50, + 65 ], "size": { "0": 639.1292114257812, @@ -21,7 +21,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 376 + 392 ], "shape": 3, "slot_index": 0 @@ -45,8 +45,8 @@ "id": 45, "type": "PrimereVisualCKPT", "pos": [ - 804, - 360 + 750, + 95 ], "size": { "0": 641.046875, @@ -60,7 +60,7 @@ "name": "MODEL_NAME", "type": "CHECKPOINT_NAME", "links": [ - 40 + 384 ], "shape": 3 }, @@ -68,7 +68,7 @@ "name": "MODEL_VERSION", "type": "STRING", "links": [ - 377 + 390 ], "shape": 3, "slot_index": 1 @@ -78,17 +78,17 @@ "Node name for S&R": "PrimereVisualCKPT" }, "widgets_values": [ - "BestPhoto\\absoluteRealistic_v20.safetensors", - true, - false + "BestAll\\photon_v1.safetensors", + false, + true ] }, { "id": 48, "type": "PrimereSeed", "pos": [ - 797, - 538 + 751, + 268 ], "size": { "0": 402.27398681640625, @@ -102,8 +102,8 @@ "name": "SEED", "type": "INT", "links": [ - 350, - 372 + 383, + 405 ], "shape": 3, "slot_index": 0 @@ -113,23 +113,23 @@ "Node name for S&R": "PrimereSeed" }, "widgets_values": [ - 1028215486165451, + 610421989093353, null, null, null ] }, { - "id": 46, + "id": 134, "type": "PrimereCKPTLoader", "pos": [ - 1487, - 364 + 1510, + 95 + ], + "size": [ + 330, + 210 ], - "size": { - "0": 330, - "1": 190 - }, "flags": {}, "order": 3, "mode": 0, @@ -137,8 +137,12 @@ { "name": "ckpt_name", "type": "CHECKPOINT_NAME", - "link": 40, - "slot_index": 0 + "link": 384 + }, + { + "name": "concept_data", + "type": "TUPLE", + "link": null }, { "name": "loaded_model", @@ -156,11 +160,11 @@ "link": null }, { - "name": "is_lcm", - "type": "INT", + "name": "model_concept", + "type": "STRING", "link": null, "widget": { - "name": "is_lcm" + "name": "model_concept" } } ], @@ -169,7 +173,7 @@ "name": "MODEL", "type": "MODEL", "links": [ - 345 + 387 ], "shape": 3, "slot_index": 0 @@ -178,8 +182,8 @@ "name": "CLIP", "type": "CLIP", "links": [ - 346, - 373 + 388, + 394 ], "shape": 3, "slot_index": 1 @@ -188,7 +192,7 @@ "name": "VAE", "type": "VAE", "links": [ - 347 + 389 ], "shape": 3, "slot_index": 2 @@ -196,7 +200,7 @@ { "name": "MODEL_VERSION", "type": "STRING", - "links": [], + "links": null, "shape": 3, "slot_index": 3 } @@ -205,46 +209,59 @@ "Node name for S&R": "PrimereCKPTLoader" }, "widgets_values": [ - false, + true, 1, 1, - 1 + "Normal" ] }, { - "id": 132, + "id": 135, "type": "PrimereImageSegments", "pos": [ - 1490, - 600 + 1370, + 350 ], "size": [ - 478.18158816503046, - 486 + 468.5999755859375, + 642 ], "flags": {}, - "order": 4, + "order": 5, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 376 + "link": 392 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 391 }, { "name": "model_version", "type": "STRING", - "link": 377, + "link": 390, "widget": { "name": "model_version" } }, { - "name": "dino_serach_prompt", + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", "type": "STRING", "link": null, "widget": { - "name": "dino_serach_prompt" + "name": "dino_search_prompt" } }, { @@ -261,43 +278,51 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 378 + 393 ], - "shape": 3 + "shape": 3, + "slot_index": 0 }, { "name": "IMAGE_SEGS", "type": "IMAGE", "links": [ - 379 + 400 ], - "shape": 6 + "shape": 6, + "slot_index": 1 }, { "name": "DETECTOR", "type": "DETECTOR", - "links": null, - "shape": 3 + "links": [ + 402 + ], + "shape": 3, + "slot_index": 2 }, { "name": "SAM_MODEL", "type": "SAM_MODEL", "links": null, - "shape": 3 + "shape": 3, + "slot_index": 3 }, { "name": "SEGS", "type": "SEGS", "links": [ - 380 + 403 ], - "shape": 3 + "shape": 3, + "slot_index": 4 }, { "name": "CROP_REGIONS", "type": "TUPLE", "links": null, - "shape": 3 + "shape": 3, + "slot_index": 5 }, { "name": "IMAGE_MAX", @@ -305,13 +330,38 @@ "links": null, "shape": 3 }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3 + }, { "name": "SEGMENT_SETTINGS", "type": "TUPLE", "links": [ - 381 + 404 ], - "shape": 3 + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 397 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 398 + ], + "shape": 3, + "slot_index": 10 } ], "properties": { @@ -327,39 +377,281 @@ "person", "vest_dress", "eye", - 0.5, - 20, - 1.5, + 0.4, + 11, + 1.2000000000000002, 10, "BaseModel_1024", + 768, "", "" ] }, { - "id": 131, + "id": 129, + "type": "PreviewImage", + "pos": [ + 1868, + 647 + ], + "size": [ + 232, + 315 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 400, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 136, + "type": "PrimereAnyDetailer", + "pos": [ + 1909, + 54 + ], + "size": [ + 426, + 530 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 393 + }, + { + "name": "model", + "type": "MODEL", + "link": 387 + }, + { + "name": "clip", + "type": "CLIP", + "link": 394 + }, + { + "name": "vae", + "type": "VAE", + "link": 389 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 397 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 398 + }, + { + "name": "segment_settings", + "type": "TUPLE", + "link": 404 + }, + { + "name": "segs", + "type": "SEGS", + "link": 403 + }, + { + "name": "detector", + "type": "DETECTOR", + "link": 402 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } + }, + { + "name": "seed", + "type": "INT", + "link": 405, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 399 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CROPPED_REFINED", + "type": "IMAGE", + "links": [ + 401 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "WIDTH", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereAnyDetailer" + }, + "widgets_values": [ + 1001075368110141, + "randomize", + "euler", + "simple", + 30, + 8, + 0.72, + 10, + true, + false, + 1, + "Normal", + "euler", + "normal", + 4, + 1 + ] + }, + { + "id": 58, + "type": "PreviewImage", + "pos": [ + 2390, + 43 + ], + "size": [ + 852, + 936 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 399, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 59, + "type": "PreviewImage", + "pos": [ + 2134, + 654 + ], + "size": [ + 230, + 304 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 401, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 133, "type": "PrimereRefinerPrompt", "pos": [ - 792, - 729 + 753, + 448 + ], + "size": [ + 579, + 485 ], - "size": { - "0": 455.39410400390625, - "1": 573.5899047851562 - }, "flags": {}, - "order": 5, + "order": 4, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", - "link": 373 + "link": 388 }, { "name": "seed", "type": "INT", - "link": 372, + "link": 383, "widget": { "name": "seed" } @@ -397,373 +689,196 @@ { "name": "COND+", "type": "CONDITIONING", - "links": [ - 374 - ], - "shape": 3, - "slot_index": 2 + "links": null, + "shape": 3 }, { "name": "COND-", "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", "links": [ - 375 + 391 ], "shape": 3, - "slot_index": 3 + "slot_index": 4 } ], "properties": { "Node name for S&R": "PrimereRefinerPrompt" }, "widgets_values": [ - "{red and white|red|white|black|green|blue|yellow|blue and white|yellow and red|red and yellow} {luxury|regular|cheap} {linear striped|patterned|super sport|flower patterned|animal patterned|elegant minimalist|modern minimalist} elegant wet {silky|plastic} swimsuit, perfect fingers", - "deformed face, deformed hands, deformed fingers, blured", + "vest dress, (dark-{red and white|red|white|black|green|blue|yellow|blue and white|yellow and red|red and yellow}:1.3), (elegant red flower patterned silky party top vest-dress:1.3), photoreal detailed image", + "deformed face, deformed hands, deformed fingers, blurred, face, person, woman, body, necklace", + 1, + 1.2, 1, 1, - 1, - 1, - 666119771191640, + 967302491110248, "randomize", - "length+mean", + "mean", "comfy++", "", "" ] - }, - { - "id": 129, - "type": "PreviewImage", - "pos": [ - 1307, - 1152 - ], - "size": { - "0": 578.4644165039062, - "1": 306.16473388671875 - }, - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 379, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, - { - "id": 125, - "type": "PrimereAnyDetailer", - "pos": [ - 2045, - 390 - ], - "size": { - "0": 405.5999755859375, - "1": 458 - }, - "flags": {}, - "order": 7, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 378 - }, - { - "name": "model", - "type": "MODEL", - "link": 345 - }, - { - "name": "clip", - "type": "CLIP", - "link": 346 - }, - { - "name": "vae", - "type": "VAE", - "link": 347 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 374 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 375 - }, - { - "name": "segment_settings", - "type": "TUPLE", - "link": 381 - }, - { - "name": "segs", - "type": "SEGS", - "link": 380 - }, - { - "name": "detector", - "type": "DETECTOR", - "link": null - }, - { - "name": "seed", - "type": "INT", - "link": 350, - "widget": { - "name": "seed" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 352 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "CROPPED_REFINED", - "type": "IMAGE", - "links": [ - 351 - ], - "shape": 6, - "slot_index": 1 - }, - { - "name": "WIDTH", - "type": "INT", - "links": null, - "shape": 3 - }, - { - "name": "HEIGHT", - "type": "INT", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PrimereAnyDetailer" - }, - "widgets_values": [ - 930914082567674, - "randomize", - 25, - 9, - "euler", - "normal", - 0.67, - 10, - true, - false, - 1 - ] - }, - { - "id": 58, - "type": "PreviewImage", - "pos": [ - 2520, - 291 - ], - "size": { - "0": 673.8094482421875, - "1": 653.249755859375 - }, - "flags": {}, - "order": 8, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 352, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, - { - "id": 59, - "type": "PreviewImage", - "pos": [ - 1939, - 1165 - ], - "size": { - "0": 606.1574096679688, - "1": 300.36773681640625 - }, - "flags": {}, - "order": 9, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 351, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } } ], "links": [ [ - 40, + 383, + 48, + 0, + 133, + 1, + "INT" + ], + [ + 384, 45, 0, - 46, + 134, 0, "CHECKPOINT_NAME" ], [ - 345, - 46, + 387, + 134, 0, - 125, + 136, 1, "MODEL" ], [ - 346, - 46, + 388, + 134, 1, - 125, - 2, + 133, + 0, "CLIP" ], [ - 347, - 46, + 389, + 134, 2, - 125, + 136, 3, "VAE" ], [ - 350, - 48, - 0, - 125, - 9, - "INT" + 390, + 45, + 1, + 135, + 2, + "STRING" ], [ - 351, - 125, + 391, + 133, + 4, + 135, 1, - 59, + "TUPLE" + ], + [ + 392, + 1, + 0, + 135, 0, "IMAGE" ], [ - 352, - 125, + 393, + 135, + 0, + 136, + 0, + "IMAGE" + ], + [ + 394, + 134, + 1, + 136, + 2, + "CLIP" + ], + [ + 397, + 135, + 9, + 136, + 4, + "CONDITIONING" + ], + [ + 398, + 135, + 10, + 136, + 5, + "CONDITIONING" + ], + [ + 399, + 136, 0, 58, 0, "IMAGE" ], [ - 372, - 48, - 0, - 131, - 1, - "INT" - ], - [ - 373, - 46, - 1, - 131, - 0, - "CLIP" - ], - [ - 374, - 131, - 2, - 125, - 4, - "CONDITIONING" - ], - [ - 375, - 131, - 3, - 125, - 5, - "CONDITIONING" - ], - [ - 376, - 1, - 0, - 132, - 0, - "IMAGE" - ], - [ - 377, - 45, - 1, - 132, - 1, - "STRING" - ], - [ - 378, - 132, - 0, - 125, - 0, - "IMAGE" - ], - [ - 379, - 132, + 400, + 135, 1, 129, 0, "IMAGE" ], [ - 380, - 132, + 401, + 136, + 1, + 59, + 0, + "IMAGE" + ], + [ + 402, + 135, + 2, + 136, + 8, + "DETECTOR" + ], + [ + 403, + 135, 4, - 125, + 136, 7, "SEGS" ], [ - 381, - 132, - 7, - 125, + 404, + 135, + 8, + 136, 6, "TUPLE" + ], + [ + 405, + 48, + 0, + 136, + 14, + "INT" ] ], "groups": [], diff --git a/Workflow/civitai-rewear-rehair-refiner.json b/Workflow/civitai-rewear-rehair-refiner.json new file mode 100644 index 0000000..d6329e0 --- /dev/null +++ b/Workflow/civitai-rewear-rehair-refiner.json @@ -0,0 +1,1552 @@ +{ + "last_node_id": 142, + "last_link_id": 423, + "nodes": [ + { + "id": 1, + "type": "LoadImage", + "pos": [ + 50, + 65 + ], + "size": { + "0": 639.1292114257812, + "1": 960.4127197265625 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 392 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "ComfyUI_00007hyperv_.png", + "image" + ] + }, + { + "id": 45, + "type": "PrimereVisualCKPT", + "pos": [ + 750, + 95 + ], + "size": { + "0": 641.046875, + "1": 126 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "MODEL_NAME", + "type": "CHECKPOINT_NAME", + "links": [ + 384 + ], + "shape": 3 + }, + { + "name": "MODEL_VERSION", + "type": "STRING", + "links": [ + 390, + 410 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "PrimereVisualCKPT" + }, + "widgets_values": [ + "BestAll\\photon_v1.safetensors", + false, + true + ] + }, + { + "id": 48, + "type": "PrimereSeed", + "pos": [ + 751, + 268 + ], + "size": { + "0": 402.27398681640625, + "1": 130 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "SEED", + "type": "INT", + "links": [ + 383, + 405, + 407, + 420 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PrimereSeed" + }, + "widgets_values": [ + 610421989093353, + null, + null, + null + ] + }, + { + "id": 134, + "type": "PrimereCKPTLoader", + "pos": [ + 1510, + 95 + ], + "size": [ + 330, + 210 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "ckpt_name", + "type": "CHECKPOINT_NAME", + "link": 384 + }, + { + "name": "concept_data", + "type": "TUPLE", + "link": null + }, + { + "name": "loaded_model", + "type": "MODEL", + "link": null + }, + { + "name": "loaded_clip", + "type": "CLIP", + "link": null + }, + { + "name": "loaded_vae", + "type": "VAE", + "link": null + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 387, + 412 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 388, + 394, + 406, + 413 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 389, + 414 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "MODEL_VERSION", + "type": "STRING", + "links": null, + "shape": 3, + "slot_index": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereCKPTLoader" + }, + "widgets_values": [ + true, + 1, + 1, + "Normal" + ] + }, + { + "id": 139, + "type": "PrimereRefinerPrompt", + "pos": [ + 720, + 1192 + ], + "size": [ + 579.9000335693361, + 577.9000061035156 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 406 + }, + { + "name": "seed", + "type": "INT", + "link": 407, + "widget": { + "name": "seed" + } + }, + { + "name": "positive_original", + "type": "STRING", + "link": null, + "widget": { + "name": "positive_original" + } + }, + { + "name": "negative_original", + "type": "STRING", + "link": null, + "widget": { + "name": "negative_original" + } + } + ], + "outputs": [ + { + "name": "PROMPT+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", + "links": [ + 408 + ], + "shape": 3, + "slot_index": 4 + } + ], + "properties": { + "Node name for S&R": "PrimereRefinerPrompt" + }, + "widgets_values": [ + "(dark-{black|brown|red|green|blue|pink}:1.3) curly hair", + "blurred, cap, face", + 1, + 1, + 1, + 1, + 1045319503856664, + "randomize", + "mean", + "comfy++", + "", + "" + ] + }, + { + "id": 135, + "type": "PrimereImageSegments", + "pos": [ + 1370, + 350 + ], + "size": [ + 468.5999755859375, + 642 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 392 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 391 + }, + { + "name": "model_version", + "type": "STRING", + "link": 390, + "widget": { + "name": "model_version" + } + }, + { + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_search_prompt" + } + }, + { + "name": "dino_replace_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_replace_prompt" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 393 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "IMAGE_SEGS", + "type": "IMAGE", + "links": [ + 400 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "DETECTOR", + "type": "DETECTOR", + "links": [ + 402 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "SAM_MODEL", + "type": "SAM_MODEL", + "links": null, + "shape": 3, + "slot_index": 3 + }, + { + "name": "SEGS", + "type": "SEGS", + "links": [ + 403 + ], + "shape": 3, + "slot_index": 4 + }, + { + "name": "CROP_REGIONS", + "type": "TUPLE", + "links": null, + "shape": 3, + "slot_index": 5 + }, + { + "name": "IMAGE_MAX", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "SEGMENT_SETTINGS", + "type": "TUPLE", + "links": [ + 404 + ], + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 397 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 398 + ], + "shape": 3, + "slot_index": 10 + } + ], + "properties": { + "Node name for S&R": "PrimereImageSegments" + }, + "widgets_values": [ + true, + 0, + 0, + "segm/deepfashion2_yolov8s-seg.pt", + "sam_vit_b_01ec64.pth", + "AUTO", + "person", + "vest_dress", + "eye", + 0.4, + 11, + 1.2000000000000002, + 10, + "BaseModel_1024", + 768, + "", + "" + ] + }, + { + "id": 129, + "type": "PreviewImage", + "pos": [ + 1868, + 647 + ], + "size": [ + 232, + 315 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 400, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 136, + "type": "PrimereAnyDetailer", + "pos": [ + 1909, + 54 + ], + "size": [ + 426, + 530 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 393 + }, + { + "name": "model", + "type": "MODEL", + "link": 387 + }, + { + "name": "clip", + "type": "CLIP", + "link": 394 + }, + { + "name": "vae", + "type": "VAE", + "link": 389 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 397 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 398 + }, + { + "name": "segment_settings", + "type": "TUPLE", + "link": 404 + }, + { + "name": "segs", + "type": "SEGS", + "link": 403 + }, + { + "name": "detector", + "type": "DETECTOR", + "link": 402 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } + }, + { + "name": "seed", + "type": "INT", + "link": 405, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 399, + 409 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CROPPED_REFINED", + "type": "IMAGE", + "links": [ + 401 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "WIDTH", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereAnyDetailer" + }, + "widgets_values": [ + 404496368254515, + "randomize", + "euler", + "simple", + 30, + 8, + 0.72, + 10, + true, + false, + 1, + "Normal", + "euler", + "normal", + 4, + 1 + ] + }, + { + "id": 58, + "type": "PreviewImage", + "pos": [ + 2390, + 43 + ], + "size": [ + 852, + 936 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 399, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 137, + "type": "PrimereImageSegments", + "pos": [ + 1334, + 1198 + ], + "size": [ + 468.5999755859375, + 642 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 409 + }, + { + "name": "segment_prompt_data", + "type": "TUPLE", + "link": 408 + }, + { + "name": "model_version", + "type": "STRING", + "link": 410, + "widget": { + "name": "model_version" + } + }, + { + "name": "square_shape", + "type": "INT", + "link": null, + "widget": { + "name": "square_shape" + } + }, + { + "name": "dino_search_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_search_prompt" + } + }, + { + "name": "dino_replace_prompt", + "type": "STRING", + "link": null, + "widget": { + "name": "dino_replace_prompt" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 411 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "IMAGE_SEGS", + "type": "IMAGE", + "links": [ + 422 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "DETECTOR", + "type": "DETECTOR", + "links": [ + 417 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "SAM_MODEL", + "type": "SAM_MODEL", + "links": null, + "shape": 3, + "slot_index": 3 + }, + { + "name": "SEGS", + "type": "SEGS", + "links": [ + 418 + ], + "shape": 3, + "slot_index": 4 + }, + { + "name": "CROP_REGIONS", + "type": "TUPLE", + "links": null, + "shape": 3, + "slot_index": 5 + }, + { + "name": "IMAGE_MAX", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "IMAGE_MAX_PERCENT", + "type": "INT", + "links": null, + "shape": 3, + "slot_index": 7 + }, + { + "name": "SEGMENT_SETTINGS", + "type": "TUPLE", + "links": [ + 419 + ], + "shape": 3, + "slot_index": 8 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": [ + 415 + ], + "shape": 3, + "slot_index": 9 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": [ + 416 + ], + "shape": 3, + "slot_index": 10 + } + ], + "properties": { + "Node name for S&R": "PrimereImageSegments" + }, + "widgets_values": [ + true, + 0, + 0, + "segm/hair_yolov8n-seg_60.pt", + "sam_vit_b_01ec64.pth", + "AUTO", + "person", + "vest_dress", + "eye", + 0.5, + 9, + 1.2000000000000002, + 10, + "BaseModel_1024", + 768, + "", + "" + ] + }, + { + "id": 59, + "type": "PreviewImage", + "pos": [ + 2134, + 654 + ], + "size": [ + 230, + 304 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 401, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 142, + "type": "PreviewImage", + "pos": [ + 1880, + 1670 + ], + "size": { + "0": 232, + "1": 315 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 422, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 138, + "type": "PrimereAnyDetailer", + "pos": [ + 1917, + 1078 + ], + "size": [ + 426, + 530 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 411 + }, + { + "name": "model", + "type": "MODEL", + "link": 412 + }, + { + "name": "clip", + "type": "CLIP", + "link": 413 + }, + { + "name": "vae", + "type": "VAE", + "link": 414 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 415 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 416 + }, + { + "name": "segment_settings", + "type": "TUPLE", + "link": 419 + }, + { + "name": "segs", + "type": "SEGS", + "link": 418 + }, + { + "name": "detector", + "type": "DETECTOR", + "link": 417 + }, + { + "name": "model_concept", + "type": "STRING", + "link": null, + "widget": { + "name": "model_concept" + } + }, + { + "name": "concept_sampler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_sampler_name" + } + }, + { + "name": "concept_scheduler_name", + "type": "COMBO", + "link": null, + "widget": { + "name": "concept_scheduler_name" + } + }, + { + "name": "concept_steps", + "type": "INT", + "link": null, + "widget": { + "name": "concept_steps" + } + }, + { + "name": "concept_cfg", + "type": "FLOAT", + "link": null, + "widget": { + "name": "concept_cfg" + } + }, + { + "name": "seed", + "type": "INT", + "link": 420, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 421 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CROPPED_REFINED", + "type": "IMAGE", + "links": [ + 423 + ], + "shape": 6, + "slot_index": 1 + }, + { + "name": "WIDTH", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PrimereAnyDetailer" + }, + "widgets_values": [ + 301945573879400, + "randomize", + "euler", + "normal", + 25, + 8, + 0.73, + 10, + true, + false, + 1, + "Normal", + "euler", + "normal", + 4, + 1 + ] + }, + { + "id": 140, + "type": "PreviewImage", + "pos": [ + 2401, + 1036 + ], + "size": { + "0": 852, + "1": 936 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 421, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 141, + "type": "PreviewImage", + "pos": [ + 2150, + 1670 + ], + "size": { + "0": 230, + "1": 304 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 423, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 133, + "type": "PrimereRefinerPrompt", + "pos": [ + 753, + 448 + ], + "size": [ + 579, + 485 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 388 + }, + { + "name": "seed", + "type": "INT", + "link": 383, + "widget": { + "name": "seed" + } + }, + { + "name": "positive_original", + "type": "STRING", + "link": null, + "widget": { + "name": "positive_original" + } + }, + { + "name": "negative_original", + "type": "STRING", + "link": null, + "widget": { + "name": "negative_original" + } + } + ], + "outputs": [ + { + "name": "PROMPT+", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT-", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "COND+", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "COND-", + "type": "CONDITIONING", + "links": null, + "shape": 3 + }, + { + "name": "PROMPT_DATA", + "type": "TUPLE", + "links": [ + 391 + ], + "shape": 3, + "slot_index": 4 + } + ], + "properties": { + "Node name for S&R": "PrimereRefinerPrompt" + }, + "widgets_values": [ + "vest dress, (dark-{red and white|red|white|black|green|blue|yellow|blue and white|yellow and red|red and yellow}:1.3), (elegant red flower patterned silky party top vest-dress:1.3), photoreal detailed image", + "deformed face, deformed hands, deformed fingers, blurred, face, person, woman, body, necklace", + 1, + 1.2, + 1, + 1, + 727811173948866, + "randomize", + "mean", + "comfy++", + "", + "" + ] + } + ], + "links": [ + [ + 383, + 48, + 0, + 133, + 1, + "INT" + ], + [ + 384, + 45, + 0, + 134, + 0, + "CHECKPOINT_NAME" + ], + [ + 387, + 134, + 0, + 136, + 1, + "MODEL" + ], + [ + 388, + 134, + 1, + 133, + 0, + "CLIP" + ], + [ + 389, + 134, + 2, + 136, + 3, + "VAE" + ], + [ + 390, + 45, + 1, + 135, + 2, + "STRING" + ], + [ + 391, + 133, + 4, + 135, + 1, + "TUPLE" + ], + [ + 392, + 1, + 0, + 135, + 0, + "IMAGE" + ], + [ + 393, + 135, + 0, + 136, + 0, + "IMAGE" + ], + [ + 394, + 134, + 1, + 136, + 2, + "CLIP" + ], + [ + 397, + 135, + 9, + 136, + 4, + "CONDITIONING" + ], + [ + 398, + 135, + 10, + 136, + 5, + "CONDITIONING" + ], + [ + 399, + 136, + 0, + 58, + 0, + "IMAGE" + ], + [ + 400, + 135, + 1, + 129, + 0, + "IMAGE" + ], + [ + 401, + 136, + 1, + 59, + 0, + "IMAGE" + ], + [ + 402, + 135, + 2, + 136, + 8, + "DETECTOR" + ], + [ + 403, + 135, + 4, + 136, + 7, + "SEGS" + ], + [ + 404, + 135, + 8, + 136, + 6, + "TUPLE" + ], + [ + 405, + 48, + 0, + 136, + 14, + "INT" + ], + [ + 406, + 134, + 1, + 139, + 0, + "CLIP" + ], + [ + 407, + 48, + 0, + 139, + 1, + "INT" + ], + [ + 408, + 139, + 4, + 137, + 1, + "TUPLE" + ], + [ + 409, + 136, + 0, + 137, + 0, + "IMAGE" + ], + [ + 410, + 45, + 1, + 137, + 2, + "STRING" + ], + [ + 411, + 137, + 0, + 138, + 0, + "IMAGE" + ], + [ + 412, + 134, + 0, + 138, + 1, + "MODEL" + ], + [ + 413, + 134, + 1, + 138, + 2, + "CLIP" + ], + [ + 414, + 134, + 2, + 138, + 3, + "VAE" + ], + [ + 415, + 137, + 9, + 138, + 4, + "CONDITIONING" + ], + [ + 416, + 137, + 10, + 138, + 5, + "CONDITIONING" + ], + [ + 417, + 137, + 2, + 138, + 8, + "DETECTOR" + ], + [ + 418, + 137, + 4, + 138, + 7, + "SEGS" + ], + [ + 419, + 137, + 8, + 138, + 6, + "TUPLE" + ], + [ + 420, + 48, + 0, + 138, + 14, + "INT" + ], + [ + 421, + 138, + 0, + 140, + 0, + "IMAGE" + ], + [ + 422, + 137, + 1, + 142, + 0, + "IMAGE" + ], + [ + 423, + 138, + 1, + 141, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/components/utility.py b/components/utility.py index 740baf8..c4958a1 100644 --- a/components/utility.py +++ b/components/utility.py @@ -361,7 +361,7 @@ def get_model_keywords(filename, modelhash, model_name): selected_ckpt = keywords[keywords['#model_hash'] == modelhash]['filename.ckpt'].values basename = Path(model_name).stem - cutoff_list = [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1] + cutoff_list = list(np.around(np.arange(0.1, 1.05, 0.05).tolist(), 2))[::-1] # [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1] is_found = [] model_name_kw = None @@ -383,7 +383,7 @@ def get_model_keywords(filename, modelhash, model_name): return None def get_closest_element(value, list): - cutoff_list = [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1] + cutoff_list = list(np.around(np.arange(0.1, 1.05, 0.05).tolist(), 2))[::-1] # [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1] is_found = None for trycut in cutoff_list: