Files
FranckyB-ComfyUI-Prompt-Man…/example_workflows/workflow_builder_simple.json
T
THE_BEAST\me cc35c8e4e6 Refactor workflow and prompt extraction nodes for Recipe compatibility
- Updated node types in workflow_builder_simple.json to replace WorkflowGenerator with RecipeExtractor and RecipeBuilder.
- Modified prompt_extractor.py to include RecipeExtractor and RecipeRenderer in prompt handling logic.
- Enhanced workflow_extraction_utils.py to support Recipe nodes alongside Workflow nodes for embedded data extraction.
- Ensured backward compatibility with legacy WorkflowGenerator while transitioning to Recipe-based workflows.
2026-04-21 09:33:09 -04:00

1 line
16 KiB
JSON

{"id":"961aa600-cd2b-4e3c-8303-2122ff4499fe","revision":0,"last_node_id":62,"last_link_id":107,"nodes":[{"id":31,"type":"WorkflowRenderer","pos":[3060,-860],"size":[320,645.3333333333334],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"workflow_data","name":"workflow_data","type":"WORKFLOW_DATA","link":32},{"localized_name":"source_image","name":"source_image","shape":7,"type":"IMAGE","link":null},{"localized_name":"clear_cache_after_render","name":"clear_cache_after_render","type":"BOOLEAN","widget":{"name":"clear_cache_after_render"},"link":null}],"outputs":[{"localized_name":"workflow_data","name":"workflow_data","type":"WORKFLOW_DATA","links":[]},{"localized_name":"output_image","name":"output_image","type":"IMAGE","links":[102]},{"localized_name":"output_latent","name":"output_latent","type":"LATENT","links":null}],"properties":{"Node name for S&R":"WorkflowRenderer"},"widgets_values":[false]},{"id":38,"type":"SaveImage","pos":[3410,-860],"size":[480,970],"flags":{},"order":3,"mode":0,"inputs":[{"localized_name":"images","name":"images","type":"IMAGE","link":102},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null}],"outputs":[],"properties":{"Node name for S&R":"SaveImage"},"widgets_values":["ComfyUI"]},{"id":29,"type":"RecipeExtractor","pos":[2230,-860],"size":[270,572.9411764705883],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"localized_name":"workflow_data","name":"workflow_data","type":"WORKFLOW_DATA","links":[107]},{"localized_name":"image","name":"image","type":"IMAGE","links":null}],"properties":{"Node name for S&R":"RecipeExtractor","pe_extracted_data":"{\"positive_prompt\":\"real photos, cosplay, Cosplay 服裝,big breasts:1.8,乳沟,巨大丰满的乳房,30岁女性,D罩杯,手拿麦克风,\",\"negative_prompt\":\"blurry ugly bad\",\"model_a\":\"zImageTurboQuantized_fp8ScaledE4m3fnKJ.safetensors\",\"model_b\":\"\",\"model_a_found\":false,\"model_b_found\":true,\"loras_a\":[{\"name\":\"Zhan Yihung V9_epoch_10\",\"path\":\"ZI\\\\Zhan Yihung V9_epoch_10.safetensors\",\"model_strength\":1,\"clip_strength\":1,\"active\":true}],\"loras_b\":[{\"name\":\"Zhan Yihung V9_epoch_10\",\"path\":\"ZI\\\\Zhan Yihung V9_epoch_10.safetensors\",\"model_strength\":1,\"clip_strength\":1,\"active\":true}],\"vae\":{\"name\":\"ae.safetensors\",\"source\":\"separate\"},\"vae_found\":true,\"clip\":{\"names\":[\"qwen_3_4b.safetensors\"],\"type\":\"lumina2\",\"source\":\"separate\"},\"sampler\":{\"steps_a\":9,\"steps_b\":null,\"cfg\":2,\"seed_a\":796155041047764,\"seed_b\":null,\"sampler_name\":\"euler\",\"scheduler\":\"simple\"},\"resolution\":{\"width\":960,\"height\":1664,\"batch_size\":1,\"length\":null},\"is_video\":false,\"model_family\":\"zimage\",\"model_family_label\":\"Z-Image\",\"lora_availability\":{\"Zhan Yihung V9_epoch_10\":false}}"},"widgets_values":["input","(none)",null,0]},{"id":28,"type":"RecipeBuilder","pos":[2540,-860],"size":[478,1195],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"workflow_data","name":"workflow_data","shape":7,"type":"WORKFLOW_DATA","link":107},{"localized_name":"pos_prompt","name":"pos_prompt","shape":7,"type":"STRING","link":null},{"localized_name":"neg_prompt","name":"neg_prompt","shape":7,"type":"STRING","link":null},{"localized_name":"seed_a","name":"seed_a","shape":7,"type":"INT","link":null},{"localized_name":"seed_b","name":"seed_b","shape":7,"type":"INT","link":null},{"localized_name":"lora_stack_a","name":"lora_stack_a","shape":7,"type":"LORA_STACK","link":null},{"localized_name":"lora_stack_b","name":"lora_stack_b","shape":7,"type":"LORA_STACK","link":null}],"outputs":[{"localized_name":"workflow_data","name":"workflow_data","type":"WORKFLOW_DATA","links":[32]}],"properties":{"Node name for S&R":"RecipeBuilder","we_ui_state":"{\"_family\":\"zimage\",\"model_a\":\"ZIT\\\\z_image_turbo_bf16.safetensors\",\"model_b\":\"ZIB\\\\z_image_bf16.safetensors\",\"steps_a\":9,\"cfg\":1,\"seed_a\":796155041047841,\"sampler_name\":\"euler\",\"scheduler\":\"normal\",\"width\":720,\"height\":1280,\"batch_size\":1,\"_section_locks\":{\"resolution\":true},\"_ratio\":\"9:16\",\"_res_locked\":true,\"positive_prompt\":\"{\\n \\\"scene\\\": \\\"A 20-year-old woman is dressed in a cosplay outfit, holding a microphone in her hand, with a focused expression on her face.\\\",\\n \\\"subjects\\\": [\\n {\\n \\\"description\\\": \\\"A 20-year-old woman wearing a cosplay outfit and wig. She is holding a microphone in her hand and has a focused expression on her face. The outfit is designed to showcase the woman's figure,. It is colorful and reveailing.\\\",\\n \\\"position\\\": \\\"The woman is standing in the center of the image, facing the camera with a focused expression on her face.\\\",\\n \\\"action\\\": \\\"The woman is holding a microphone in her hand, which is positioned in front of her body.\\\"\\n }\\n ],\\n \\\"style\\\": \\\"Real photos, high realism, detailed textures, natural lighting, no stylization, no artistic processing, no filters, no post-processing effects, no retouching, no AI-generated elements.\\\",\\n \\\"color_palette\\\": \\\"The color palette is natural and realistic, without any filters or post-processing effects. The colors are limited to the colors of the cosplay outfit, the microphone, and the background, and the woman's skin color.\\\",\\n \\\"lighting\\\": \\\"Natural lighting, with no artificial lighting effects. The lighting is soft and even, without any shadows or highlights. The lighting is coming from the front of the image, illuminating the entire scene evenly.\\\",\\n \\\"mood\\\": \\\"The woman's expression is focused and serious, creating a tense and intense atmosphere. The lighting and colors are natural and realistic, adding to the sense of realism and authenticity of the image.\\\",\\n \\\"background\\\": \\\"The background is blurred, making it impossible to identify any specific details. The focus is solely on the woman and her actions.\\\",\\n \\\"composition\\\": \\\"The woman is positioned in the center of the image, with the microphone in front of her body. The composition is simple and straightforward, with no unnecessary elements or distractions.\\\",\\n \\\"camera\\\": \\\"The camera is positioned at eye level, creating a sense of intimacy and personalization with the woman. The camera angle is natural and realistic, without any filters or post-processing effects.\\\"\\n}\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"loras_a\":[],\"loras_b\":[],\"_lora_availability\":{}}","we_extracted_cache":"{\"positive_prompt\":\"{\\n \\\"scene\\\": \\\"A 20-year-old woman is dressed in a cosplay outfit, holding a microphone in her hand, with a focused expression on her face.\\\",\\n \\\"subjects\\\": [\\n {\\n \\\"description\\\": \\\"A 20-year-old woman wearing a cosplay outfit and wig. She is holding a microphone in her hand and has a focused expression on her face. The outfit is designed to showcase the woman's figure,. It is colorful and reveailing.\\\",\\n \\\"position\\\": \\\"The woman is standing in the center of the image, facing the camera with a focused expression on her face.\\\",\\n \\\"action\\\": \\\"The woman is holding a microphone in her hand, which is positioned in front of her body.\\\"\\n }\\n ],\\n \\\"style\\\": \\\"Real photos, high realism, detailed textures, natural lighting, no stylization, no artistic processing, no filters, no post-processing effects, no retouching, no AI-generated elements.\\\",\\n \\\"color_palette\\\": \\\"The color palette is natural and realistic, without any filters or post-processing effects. The colors are limited to the colors of the cosplay outfit, the microphone, and the background, and the woman's skin color.\\\",\\n \\\"lighting\\\": \\\"Natural lighting, with no artificial lighting effects. The lighting is soft and even, without any shadows or highlights. The lighting is coming from the front of the image, illuminating the entire scene evenly.\\\",\\n \\\"mood\\\": \\\"The woman's expression is focused and serious, creating a tense and intense atmosphere. The lighting and colors are natural and realistic, adding to the sense of realism and authenticity of the image.\\\",\\n \\\"background\\\": \\\"The background is blurred, making it impossible to identify any specific details. The focus is solely on the woman and her actions.\\\",\\n \\\"composition\\\": \\\"The woman is positioned in the center of the image, with the microphone in front of her body. The composition is simple and straightforward, with no unnecessary elements or distractions.\\\",\\n \\\"camera\\\": \\\"The camera is positioned at eye level, creating a sense of intimacy and personalization with the woman. The camera angle is natural and realistic, without any filters or post-processing effects.\\\"\\n}\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"model_a\":\"ZIT\\\\z_image_turbo_bf16.safetensors\",\"model_b\":\"ZIB\\\\z_image_bf16.safetensors\",\"model_family\":\"zimage\",\"model_family_label\":\"Z-Image\",\"vae\":{\"name\":\"\",\"source\":\"unknown\"},\"clip\":{\"names\":[],\"type\":\"\",\"source\":\"unknown\"},\"sampler\":{\"steps_a\":9,\"steps_b\":null,\"cfg\":1,\"seed_a\":796155041047811,\"sampler_name\":\"euler\",\"scheduler\":\"normal\"},\"resolution\":{\"width\":720,\"height\":1280,\"batch_size\":1,\"length\":null},\"loras_a\":[],\"loras_b\":[],\"lora_availability\":{},\"is_video\":false,\"model_a_found\":true,\"model_b_found\":true,\"workflow_loras_a\":[],\"workflow_loras_b\":[],\"input_loras_a\":[],\"input_loras_b\":[],\"vae_found\":true}","we_workflow_loras":"{\"a\":[],\"b\":[]}","we_input_loras":"{\"a\":[],\"b\":[]}","we_workflow_prompts":"{\"positive\":\"real photos, cosplay, Cosplay 服裝,big breasts:1.8,乳沟,巨大丰满的乳房,30岁女性,D罩杯,手拿麦克风,\",\"negative\":\"blurry ugly bad\"}","we_override_data":"{\"_family\":\"zimage\",\"model_a\":\"ZIT\\\\z_image_turbo_bf16.safetensors\",\"model_b\":\"ZIB\\\\z_image_bf16.safetensors\",\"steps_a\":9,\"cfg\":1,\"seed_a\":796155041047841,\"sampler_name\":\"euler\",\"scheduler\":\"normal\",\"width\":720,\"height\":1280,\"batch_size\":1,\"_section_locks\":{\"resolution\":true},\"_ratio\":\"9:16\",\"_res_locked\":true,\"positive_prompt\":\"{\\n \\\"scene\\\": \\\"A 20-year-old woman is dressed in a cosplay outfit, holding a microphone in her hand, with a focused expression on her face.\\\",\\n \\\"subjects\\\": [\\n {\\n \\\"description\\\": \\\"A 20-year-old woman wearing a cosplay outfit and wig. She is holding a microphone in her hand and has a focused expression on her face. The outfit is designed to showcase the woman's figure,. It is colorful and reveailing.\\\",\\n \\\"position\\\": \\\"The woman is standing in the center of the image, facing the camera with a focused expression on her face.\\\",\\n \\\"action\\\": \\\"The woman is holding a microphone in her hand, which is positioned in front of her body.\\\"\\n }\\n ],\\n \\\"style\\\": \\\"Real photos, high realism, detailed textures, natural lighting, no stylization, no artistic processing, no filters, no post-processing effects, no retouching, no AI-generated elements.\\\",\\n \\\"color_palette\\\": \\\"The color palette is natural and realistic, without any filters or post-processing effects. The colors are limited to the colors of the cosplay outfit, the microphone, and the background, and the woman's skin color.\\\",\\n \\\"lighting\\\": \\\"Natural lighting, with no artificial lighting effects. The lighting is soft and even, without any shadows or highlights. The lighting is coming from the front of the image, illuminating the entire scene evenly.\\\",\\n \\\"mood\\\": \\\"The woman's expression is focused and serious, creating a tense and intense atmosphere. The lighting and colors are natural and realistic, adding to the sense of realism and authenticity of the image.\\\",\\n \\\"background\\\": \\\"The background is blurred, making it impossible to identify any specific details. The focus is solely on the woman and her actions.\\\",\\n \\\"composition\\\": \\\"The woman is positioned in the center of the image, with the microphone in front of her body. The composition is simple and straightforward, with no unnecessary elements or distractions.\\\",\\n \\\"camera\\\": \\\"The camera is positioned at eye level, creating a sense of intimacy and personalization with the woman. The camera angle is natural and realistic, without any filters or post-processing effects.\\\"\\n}\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"loras_a\":[],\"loras_b\":[],\"_lora_availability\":{}}","we_lora_state":"{}"},"widgets_values":["{\"_family\":\"zimage\",\"model_a\":\"ZIT\\\\z_image_turbo_bf16.safetensors\",\"model_b\":\"ZIB\\\\z_image_bf16.safetensors\",\"steps_a\":9,\"cfg\":1,\"seed_a\":796155041047841,\"sampler_name\":\"euler\",\"scheduler\":\"normal\",\"width\":720,\"height\":1280,\"batch_size\":1,\"_section_locks\":{\"resolution\":true},\"_ratio\":\"9:16\",\"_res_locked\":true,\"positive_prompt\":\"{\\n \\\"scene\\\": \\\"A 20-year-old woman is dressed in a cosplay outfit, holding a microphone in her hand, with a focused expression on her face.\\\",\\n \\\"subjects\\\": [\\n {\\n \\\"description\\\": \\\"A 20-year-old woman wearing a cosplay outfit and wig. She is holding a microphone in her hand and has a focused expression on her face. The outfit is designed to showcase the woman's figure,. It is colorful and reveailing.\\\",\\n \\\"position\\\": \\\"The woman is standing in the center of the image, facing the camera with a focused expression on her face.\\\",\\n \\\"action\\\": \\\"The woman is holding a microphone in her hand, which is positioned in front of her body.\\\"\\n }\\n ],\\n \\\"style\\\": \\\"Real photos, high realism, detailed textures, natural lighting, no stylization, no artistic processing, no filters, no post-processing effects, no retouching, no AI-generated elements.\\\",\\n \\\"color_palette\\\": \\\"The color palette is natural and realistic, without any filters or post-processing effects. The colors are limited to the colors of the cosplay outfit, the microphone, and the background, and the woman's skin color.\\\",\\n \\\"lighting\\\": \\\"Natural lighting, with no artificial lighting effects. The lighting is soft and even, without any shadows or highlights. The lighting is coming from the front of the image, illuminating the entire scene evenly.\\\",\\n \\\"mood\\\": \\\"The woman's expression is focused and serious, creating a tense and intense atmosphere. The lighting and colors are natural and realistic, adding to the sense of realism and authenticity of the image.\\\",\\n \\\"background\\\": \\\"The background is blurred, making it impossible to identify any specific details. The focus is solely on the woman and her actions.\\\",\\n \\\"composition\\\": \\\"The woman is positioned in the center of the image, with the microphone in front of her body. The composition is simple and straightforward, with no unnecessary elements or distractions.\\\",\\n \\\"camera\\\": \\\"The camera is positioned at eye level, creating a sense of intimacy and personalization with the woman. The camera angle is natural and realistic, without any filters or post-processing effects.\\\"\\n}\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"loras_a\":[],\"loras_b\":[],\"_lora_availability\":{}}","{}",""]}],"links":[[32,28,0,31,0,"WORKFLOW_DATA"],[102,31,1,38,0,"IMAGE"],[107,29,0,28,0,"WORKFLOW_DATA"]],"groups":[],"config":{},"extra":{"workflowRendererVersion":"LG","ds":{"scale":1.061076460950004,"offset":[-1414.8490254862334,1024.6763231750674]}},"version":0.4}