mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
- Updated the logic in ExifUtils to first identify KSampler nodes and store references to positive and negative prompt nodes. - Added a helper function to follow these references and extract text content from CLIP Text Encode nodes. - Implemented a fallback mechanism to extract prompts using traditional methods if references are not available. - Improved code readability with additional comments and structured handling of node data.
1 line
4.9 KiB
JSON
1 line
4.9 KiB
JSON
{"5": {"inputs": {"filename": "%time_%basemodelname_%seed", "path": "IL/%date", "extension": "jpeg", "steps": 20, "cfg": 8.0, "modelname": "", "sampler_name": "euler_ancestral", "scheduler": "karras", "positive": ["37", 0], "negative": "bad quality, worst quality, worst detail, sketch ,signature, watermark, patreon logo, nsfw", "seed_value": ["41", 3], "width": ["39", 1], "height": ["39", 2], "lossless_webp": true, "quality_jpeg_or_webp": 100, "optimize_png": false, "counter": 0, "denoise": 1.0, "clip_skip": 2, "time_format": "%Y-%m-%d-%H%M%S", "save_workflow_as_json": false, "embed_workflow_in_png": false, "images": ["38", 0]}, "class_type": "Image Saver", "_meta": {"title": "Image Saver"}}, "28": {"inputs": {"ckpt_name": "il\\waiNSFWIllustrious_v110.safetensors"}, "class_type": "CheckpointLoaderSimple", "_meta": {"title": "Load Checkpoint"}}, "29": {"inputs": {"stop_at_clip_layer": -2, "clip": ["28", 1]}, "class_type": "CLIPSetLastLayer", "_meta": {"title": "CLIP Set Last Layer"}}, "30": {"inputs": {"text": "worst quality, normal quality, anatomical nonsense, bad anatomy,interlocked fingers, extra fingers,watermark,simple background, loli,", "clip": ["52", 1]}, "class_type": "CLIPTextEncode", "_meta": {"title": "CLIP Text Encode (Prompt)"}}, "32": {"inputs": {"seed": ["41", 3], "steps": 20, "cfg": 8.0, "sampler_name": "euler_ancestral", "scheduler": "karras", "denoise": 1.0, "model": ["52", 0], "positive": ["43", 0], "negative": ["30", 0], "latent_image": ["39", 0]}, "class_type": "KSampler", "_meta": {"title": "KSampler"}}, "33": {"inputs": {"text": "in the style of ck-rw, masterpiece, best quality, good quality, very aesthetic, absurdres, newest, 8K, depth of field, focused subject,dynamic angle, from above, almost side view, wabi sabi, 1girl, holographic, holofoil glitter, faint, glowing, ethereal, neon hair, glowing hair, long hair, looking at viewer, relaxing, sci-fi", "anything": ["37", 0]}, "class_type": "easy showAnything", "_meta": {"title": "trigger applied positive"}}, "34": {"inputs": {"string": "masterpiece, best quality, good quality, very aesthetic, absurdres, newest, 8K, depth of field, focused subject,dynamic angle, from above, almost side view, wabi sabi, 1girl, holographic, holofoil glitter, faint, glowing, ethereal, neon hair, glowing hair, long hair, looking at viewer, relaxing, sci-fi", "strip_newlines": true}, "class_type": "StringConstantMultiline", "_meta": {"title": "positive"}}, "37": {"inputs": {"string1": ["51", 0], "string2": ["44", 0], "delimiter": ", "}, "class_type": "JoinStrings", "_meta": {"title": "Join Strings"}}, "38": {"inputs": {"samples": ["32", 0], "vae": ["28", 2]}, "class_type": "VAEDecode", "_meta": {"title": "VAE Decode"}}, "39": {"inputs": {"resolution": "832x1216 (0.68)", "batch_size": 1, "width_override": 0, "height_override": 0}, "class_type": "SDXLEmptyLatentSizePicker+", "_meta": {"title": "\ud83d\udd27 SDXL Empty Latent Size Picker"}}, "41": {"inputs": {"seed": 739661789497760}, "class_type": "Seed", "_meta": {"title": "Seed"}}, "42": {"inputs": {"images": ["38", 0]}, "class_type": "PreviewImage", "_meta": {"title": "Preview Image"}}, "43": {"inputs": {"text": ["33", 0], "clip": ["52", 1]}, "class_type": "CLIPTextEncode", "_meta": {"title": "CLIP Text Encode (Prompt)"}}, "44": {"inputs": {"file_path": "", "dictionary_name": "[filename]", "label": "TextBatch", "mode": "automatic", "index": 0, "multiline_text": ["34", 0]}, "class_type": "Text Load Line From File", "_meta": {"title": "Text Load Line From File"}, "is_changed": [NaN]}, "51": {"inputs": {"group_mode": false, "toggle_trigger_words": [{"text": "in the style of ck-rw", "active": true}, {"text": "__dummy_item__", "active": false, "_isDummy": true}, {"text": "__dummy_item__", "active": false, "_isDummy": true}], "orinalMessage": "in the style of ck-rw", "trigger_words": ["52", 2]}, "class_type": "TriggerWord Toggle (LoraManager)", "_meta": {"title": "TriggerWord Toggle (LoraManager)"}}, "52": {"inputs": {"text": "<lora:ck-shadow-circuit-IL-000012:0.78> <lora:MoriiMee_Gothic_Niji_Style_Illustrious_r1:0.45> <lora:ck-nc-cyberpunk-IL-000011:0.4> <lora:ck-neon-retrowave-IL-000012:0.8>", "loras": [{"name": "ck-shadow-circuit-IL-000012", "strength": 0.78, "active": false}, {"name": "MoriiMee_Gothic_Niji_Style_Illustrious_r1", "strength": 0.45, "active": false}, {"name": "ck-nc-cyberpunk-IL-000011", "strength": 0.4, "active": false}, {"name": "ck-neon-retrowave-IL-000012", "strength": 0.8, "active": true}, {"name": "__dummy_item1__", "strength": 0, "active": false, "_isDummy": true}, {"name": "__dummy_item2__", "strength": 0, "active": false, "_isDummy": true}], "model": ["28", 0], "clip": ["29", 0]}, "class_type": "Lora Loader (LoraManager)", "_meta": {"title": "Lora Loader (LoraManager)"}}, "53": {"inputs": {"image": "2025-03-12-094411__1085931612515899.jpeg", "upload": "image"}, "class_type": "LoadImage", "_meta": {"title": "Load Image"}, "is_changed": ["1b62c290a107b22e8356d50e27ace831ed6f11cc55c686ac837193c786c03a6f"]}} |