- Updated the PromptGenerator class to handle prompt input updates and communicate with the frontend. - Enhanced the UI behavior of the PromptGenOptions and PromptGenerator nodes to ensure proper widget visibility and state management.
1 line
21 KiB
JSON
1 line
21 KiB
JSON
{"id":"9ae6082b-c7f4-433c-9971-7a8f65a3ea65","revision":0,"last_node_id":84,"last_link_id":99,"nodes":[{"id":68,"type":"EmptySD3LatentImage","pos":[-130,290],"size":[260,110],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"width","name":"width","type":"INT","widget":{"name":"width"},"link":null},{"localized_name":"height","name":"height","type":"INT","widget":{"name":"height"},"link":null},{"localized_name":"batch_size","name":"batch_size","type":"INT","widget":{"name":"batch_size"},"link":null}],"outputs":[{"localized_name":"LATENT","name":"LATENT","type":"LATENT","slot_index":0,"links":[77]}],"properties":{"Node name for S&R":"EmptySD3LatentImage","cnr_id":"comfy-core","ver":"0.3.64","enableTabs":false,"tabWidth":65,"tabXOffset":10,"hasSecondTab":false,"secondTabText":"Send Back","secondTabOffset":80,"secondTabWidth":65},"widgets_values":[1024,1024,1],"widgets_values_named":{"width":1024,"height":1024,"batch_size":1}},{"id":67,"type":"CLIPTextEncode","pos":[820,-90],"size":[410,320],"flags":{"collapsed":true},"order":8,"mode":0,"inputs":[{"localized_name":"clip","name":"clip","type":"CLIP","link":78},{"localized_name":"text","name":"text","type":"STRING","widget":{"name":"text"},"link":90}],"outputs":[{"localized_name":"CONDITIONING","name":"CONDITIONING","type":"CONDITIONING","links":[75]}],"title":"CLIP Text Encode","properties":{"Node name for S&R":"CLIPTextEncode","cnr_id":"comfy-core","ver":"0.3.73","enableTabs":false,"tabWidth":65,"tabXOffset":10,"hasSecondTab":false,"secondTabText":"Send Back","secondTabOffset":80,"secondTabWidth":65},"widgets_values":["A fashion photography work full of surreal romanticism, using a low-angle upward shooting composition, with a clear light blue sky as the background, and the visual focus concentrated on the fantasy blue vegetation and the model walking through it.\n\nThe vegetation in the picture is processed into varying shades of blue, from light ice blue to deep cobalt blue. The textures of the leaves and branches are delicate and realistic. The warm brown tree trunks form a sharp contrast with the cool blue leaves, resembling a dreamy forest from another world. An African-American model wearing a yellow and white vertical striped long dress walks slowly on the sand. The warm tones of the dress echo with the surrounding cool blue vegetation. The noon sun casts clear shadows on the sand, enhancing the sense of space and reality in the picture.\n\nThe entire scene, with its clean and transparent colors and fantasy settings, not only exudes the vastness of the natural wilderness but also presents a quiet and poetic high-fashion sense due to the surreal vegetation."],"widgets_values_named":{"text":"A fashion photography work full of surreal romanticism, using a low-angle upward shooting composition, with a clear light blue sky as the background, and the visual focus concentrated on the fantasy blue vegetation and the model walking through it.\n\nThe vegetation in the picture is processed into varying shades of blue, from light ice blue to deep cobalt blue. The textures of the leaves and branches are delicate and realistic. The warm brown tree trunks form a sharp contrast with the cool blue leaves, resembling a dreamy forest from another world. An African-American model wearing a yellow and white vertical striped long dress walks slowly on the sand. The warm tones of the dress echo with the surrounding cool blue vegetation. The noon sun casts clear shadows on the sand, enhancing the sense of space and reality in the picture.\n\nThe entire scene, with its clean and transparent colors and fantasy settings, not only exudes the vastness of the natural wilderness but also presents a quiet and poetic high-fashion sense due to the surreal vegetation."},"color":"#232","bgcolor":"#353"},{"id":71,"type":"CLIPTextEncode","pos":[820,-50],"size":[390,130],"flags":{"collapsed":true},"order":5,"mode":0,"inputs":[{"localized_name":"clip","name":"clip","type":"CLIP","link":82},{"localized_name":"text","name":"text","type":"STRING","widget":{"name":"text"},"link":null}],"outputs":[{"localized_name":"CONDITIONING","name":"CONDITIONING","type":"CONDITIONING","links":[83]}],"title":"CLIP Text Encode","properties":{"Node name for S&R":"CLIPTextEncode","cnr_id":"comfy-core","ver":"0.3.73","enableTabs":false,"tabWidth":65,"tabXOffset":10,"hasSecondTab":false,"secondTabText":"Send Back","secondTabOffset":80,"secondTabWidth":65},"widgets_values":[""],"widgets_values_named":{"text":""},"color":"#323","bgcolor":"#535"},{"id":66,"type":"UNETLoader","pos":[-140,-140],"size":[270,90],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"unet_name","name":"unet_name","type":"COMBO","widget":{"name":"unet_name"},"link":null},{"localized_name":"weight_dtype","name":"weight_dtype","type":"COMBO","widget":{"name":"weight_dtype"},"link":null}],"outputs":[{"localized_name":"MODEL","name":"MODEL","type":"MODEL","links":[97]}],"properties":{"Node name for S&R":"UNETLoader","cnr_id":"comfy-core","ver":"0.3.73","models":[{"name":"z_image_bf16.safetensors","url":"https://huggingface.co/Comfy-Org/z_image/resolve/main/split_files/diffusion_models/z_image_bf16.safetensors","directory":"diffusion_models"}],"enableTabs":false,"tabWidth":65,"tabXOffset":10,"hasSecondTab":false,"secondTabText":"Send Back","secondTabOffset":80,"secondTabWidth":65},"widgets_values":["Krea2\\krea2_turbo_int8_convrot.safetensors","default"],"widgets_values_named":{"unet_name":"Krea2\\krea2_turbo_int8_convrot.safetensors","weight_dtype":"default"}},{"id":62,"type":"CLIPLoader","pos":[-140,-10],"size":[270,110],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"clip_name","name":"clip_name","type":"COMBO","widget":{"name":"clip_name"},"link":null},{"localized_name":"type","name":"type","type":"COMBO","widget":{"name":"type"},"link":null},{"localized_name":"device","name":"device","shape":7,"type":"COMBO","widget":{"name":"device"},"link":null}],"outputs":[{"localized_name":"CLIP","name":"CLIP","type":"CLIP","links":[78,82]}],"properties":{"Node name for S&R":"CLIPLoader","cnr_id":"comfy-core","ver":"0.3.73","models":[{"name":"qwen_3_4b.safetensors","url":"https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors","directory":"text_encoders"}],"enableTabs":false,"tabWidth":65,"tabXOffset":10,"hasSecondTab":false,"secondTabText":"Send Back","secondTabOffset":80,"secondTabWidth":65},"widgets_values":["Krea2\\qwen3vl_4b_int8_convrot.safetensors","krea2","default"],"widgets_values_named":{"clip_name":"Krea2\\qwen3vl_4b_int8_convrot.safetensors","type":"krea2","device":"default"}},{"id":63,"type":"VAELoader","pos":[-140,140],"size":[270,60],"flags":{},"order":3,"mode":0,"inputs":[{"localized_name":"vae_name","name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"link":null}],"outputs":[{"localized_name":"VAE","name":"VAE","type":"VAE","links":[73]}],"properties":{"Node name for S&R":"VAELoader","cnr_id":"comfy-core","ver":"0.3.73","models":[{"name":"ae.safetensors","url":"https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors","directory":"vae"}],"enableTabs":false,"tabWidth":65,"tabXOffset":10,"hasSecondTab":false,"secondTabText":"Send Back","secondTabOffset":80,"secondTabWidth":65},"widgets_values":["Krea2\\qwen_image_vae.safetensors"],"widgets_values_named":{"vae_name":"Krea2\\qwen_image_vae.safetensors"}},{"id":82,"type":"LoadImagePlus","pos":[160,290],"size":[400,560],"flags":{},"order":4,"mode":0,"inputs":[{"localized_name":"source_folder","name":"source_folder","type":"COMBO","widget":{"name":"source_folder"},"link":null},{"localized_name":"image","name":"image","type":"COMBO","widget":{"name":"image"},"link":null},{"localized_name":"frame_position","name":"frame_position","type":"FLOAT","widget":{"name":"frame_position"},"link":null},{"localized_name":"mask_data","name":"mask_data","shape":7,"type":"STRING","widget":{"name":"mask_data"},"link":null}],"outputs":[{"localized_name":"image","name":"image","type":"IMAGE","links":[98]},{"localized_name":"mask","name":"mask","type":"MASK","links":null}],"properties":{"Node name for S&R":"LoadImagePlus","_loadedImageFilename":"example.png","_loadedFramePosition":0,"_browsePath":"D:\\ComfyUI\\input","_browseSelectedAbsPath":"D:\\ComfyUI\\input\\example.png"},"widgets_values":["input","example.png",null,null,null,0,null,""],"widgets_values_named":{"source_folder":"input","image":"example.png","frame_position":0,"mask_data":null,"fb_mask_editor":""}},{"id":65,"type":"VAEDecode","pos":[1210,-220],"size":[210,50],"flags":{"collapsed":true},"order":10,"mode":0,"inputs":[{"localized_name":"samples","name":"samples","type":"LATENT","link":72},{"localized_name":"vae","name":"vae","type":"VAE","link":73}],"outputs":[{"localized_name":"IMAGE","name":"IMAGE","type":"IMAGE","slot_index":0,"links":[95]}],"properties":{"Node name for S&R":"VAEDecode","cnr_id":"comfy-core","ver":"0.3.64","enableTabs":false,"tabWidth":65,"tabXOffset":10,"hasSecondTab":false,"secondTabText":"Send Back","secondTabOffset":80,"secondTabWidth":65}},{"id":69,"type":"KSampler","pos":[1030,-180],"size":[310,566],"flags":{},"order":9,"mode":0,"inputs":[{"localized_name":"model","name":"model","type":"MODEL","link":97},{"localized_name":"positive","name":"positive","type":"CONDITIONING","link":75},{"localized_name":"negative","name":"negative","type":"CONDITIONING","link":83},{"localized_name":"latent_image","name":"latent_image","type":"LATENT","link":77},{"localized_name":"seed","name":"seed","type":"INT","widget":{"name":"seed"},"link":null},{"localized_name":"steps","name":"steps","type":"INT","widget":{"name":"steps"},"link":null},{"localized_name":"cfg","name":"cfg","type":"FLOAT","widget":{"name":"cfg"},"link":null},{"localized_name":"sampler_name","name":"sampler_name","type":"COMBO","widget":{"name":"sampler_name"},"link":null},{"localized_name":"scheduler","name":"scheduler","type":"COMBO","widget":{"name":"scheduler"},"link":null},{"localized_name":"denoise","name":"denoise","type":"FLOAT","widget":{"name":"denoise"},"link":null}],"outputs":[{"localized_name":"LATENT","name":"LATENT","type":"LATENT","slot_index":0,"links":[72]}],"properties":{"Node name for S&R":"KSampler","cnr_id":"comfy-core","ver":"0.3.64","enableTabs":false,"tabWidth":65,"tabXOffset":10,"hasSecondTab":false,"secondTabText":"Send Back","secondTabOffset":80,"secondTabWidth":65},"widgets_values":[235431101617143,"randomize",9,1,"euler","simple",1],"widgets_values_named":{"seed":235431101617143,"control_after_generate":"randomize","steps":9,"cfg":1,"sampler_name":"euler","scheduler":"simple","denoise":1}},{"id":83,"type":"SaveImagePlus","pos":[1360,-180],"size":[860,840],"flags":{},"order":11,"mode":0,"inputs":[{"localized_name":"images","name":"images","type":"IMAGE","link":95},{"localized_name":"Compare","name":"Compare","shape":7,"type":"IMAGE","link":null},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null},{"localized_name":"save","name":"save","type":"BOOLEAN","widget":{"name":"save"},"link":null}],"outputs":[{"localized_name":"filename","name":"filename","type":"STRING","links":null}],"properties":{"Node name for S&R":"SaveImagePlus","_saveCompareSavedItems":"[{\"filename\":\"img_12_50_21_00001.png\",\"subfolder\":\"Pics/26-08-21\",\"type\":\"output\"}]","_saveCompareCompareItems":"[]","_saveComparePaired":false,"_saveCompareUnpaired":false,"_saveCompareGrid":false,"_saveCompareSavedIndex":0,"_saveCompareCompareIndex":0},"widgets_values":["Pics/%date:yy-MM-dd%/img_%date:HH_mm_ss%",true],"widgets_values_named":{"filename_prefix":"Pics/%date:yy-MM-dd%/img_%date:HH_mm_ss%","save":true}},{"id":84,"type":"PromptGenerator","pos":[160,-140],"size":[400,390],"flags":{},"order":6,"mode":0,"inputs":[{"localized_name":"image","name":"image","shape":7,"type":"IMAGE","link":98},{"localized_name":"options","name":"options","shape":7,"type":"OPTIONS","link":null},{"localized_name":"clip","name":"clip","shape":7,"type":"CLIP","link":null},{"localized_name":"prompt_input","name":"prompt_input","shape":7,"type":"STRING","link":null},{"localized_name":"seed","name":"seed","type":"INT","widget":{"name":"seed"},"link":null},{"localized_name":"system_prompt","name":"system_prompt","shape":7,"type":"COMBO","widget":{"name":"system_prompt"},"link":null},{"localized_name":"prompt","name":"prompt","shape":7,"type":"STRING","widget":{"name":"prompt"},"link":null},{"localized_name":"format_as_json","name":"format_as_json","shape":7,"type":"BOOLEAN","widget":{"name":"format_as_json"},"link":null},{"localized_name":"enable_thinking","name":"enable_thinking","shape":7,"type":"BOOLEAN","widget":{"name":"enable_thinking"},"link":null},{"localized_name":"stop_server_after","name":"stop_server_after","shape":7,"type":"BOOLEAN","widget":{"name":"stop_server_after"},"link":null},{"localized_name":"clear_vram_on_run","name":"clear_vram_on_run","shape":7,"type":"BOOLEAN","widget":{"name":"clear_vram_on_run"},"link":null},{"localized_name":"model","name":"model","shape":7,"type":"COMBO","widget":{"name":"model"},"link":null}],"outputs":[{"localized_name":"output","name":"output","type":"STRING","links":[99]},{"localized_name":"thoughts","name":"thoughts","type":"STRING","links":null}],"properties":{"Node name for S&R":"PromptGenerator"},"widgets_values":[797172753207047,"randomize","Other / Analyze Image with Prompt","Generate this image but in the style of the Pixar.",true,false,true,true,"(use default)"],"widgets_values_named":{"seed":797172753207047,"control_after_generate":"randomize","system_prompt":"Other / Analyze Image with Prompt","prompt":"Generate this image but in the style of the Pixar.","format_as_json":true,"enable_thinking":false,"stop_server_after":true,"clear_vram_on_run":true,"model":"(use default)"}},{"id":76,"type":"PromptManagerAdvanced","pos":[570,-140],"size":[440,990],"flags":{"collapsed":false},"order":7,"mode":0,"inputs":[{"localized_name":"prompt","name":"prompt","shape":7,"type":"STRING","link":99},{"localized_name":"lora_stack_a","name":"lora_stack_a","shape":7,"type":"LORA_STACK,MULTI_LORA_STACK","link":null},{"localized_name":"lora_stack_b","name":"lora_stack_b","shape":7,"type":"LORA_STACK,MULTI_LORA_STACK","link":null},{"localized_name":"trigger_words","name":"trigger_words","shape":7,"type":"STRING","link":null},{"localized_name":"thumbnail_image","name":"thumbnail_image","shape":7,"type":"IMAGE","link":null},{"localized_name":"use_prompt_input","name":"use_prompt_input","type":"BOOLEAN","widget":{"name":"use_prompt_input"},"link":null},{"localized_name":"use_lora_input","name":"use_lora_input","type":"COMBO","widget":{"name":"use_lora_input"},"link":null},{"localized_name":"text","name":"text","type":"STRING","widget":{"name":"text"},"link":null},{"localized_name":"swap_lora_outputs","name":"swap_lora_outputs","type":"BOOLEAN","widget":{"name":"swap_lora_outputs"},"link":null}],"outputs":[{"localized_name":"prompt","name":"prompt","type":"STRING","links":[90]},{"localized_name":"lora_stack_a","name":"lora_stack_a","type":"LORA_STACK","links":null},{"localized_name":"lora_stack_b","name":"lora_stack_b","type":"LORA_STACK","links":null},{"localized_name":"recipe_data","name":"recipe_data","type":"RECIPE_DATA","links":null},{"localized_name":"multi_lora_stack","name":"multi_lora_stack","type":"MULTI_LORA_STACK","links":null}],"properties":{"Node name for S&R":"PromptManagerAdvanced","cnr_id":"prompt-manager","ver":"55b6f2f94e3c74e48d69ac8be459624a91d3cd45"},"widgets_values":["Style","",true,"Prompt LoRAs Only","{\n \"scene\": \"A stylized, three-dimensional rendering of a yellow, butterfly-like creature with large, expressive eyes and a pink dress, standing on a vibrant green hill against a clear blue sky. The image captures a whimsical, animated atmosphere with a focus on the character's joyful pose.\",\n \"subjects\": [\n {\n \"description\": \"A yellow, butterfly-like creature with large, expressive blue eyes and a pink dress. Its wings are spread wide, and its body is rounded and soft.\",\n \"position\": \"Center of the image, standing on the green hill.\",\n \"action\": \"Standing with arms outstretched, looking forward with a joyful expression.\"\n }\n ],\n \"style\": \"Three-dimensional, animated style reminiscent of Pixar, with a focus on expressive character design and vibrant colors.\",\n \"color_palette\": [\n \"Yellow\",\n \"Light yellow\",\n \"Blue\",\n \"Pink\",\n \"Light pink\",\n \"Green\",\n \"Light green\",\n \"White\"\n ],\n \"lighting\": \"Soft, diffused lighting that highlights the character's features and creates subtle shadows, giving the image a sense of depth and realism.\",\n \"mood\": \"Whimsical, joyful, and playful, with a sense of adventure and discovery.\",\n \"background\": \"A clear blue sky with fluffy white clouds and a vibrant green hill. The background is simple and uncluttered, allowing the character to be the focal point.\",\n \"composition\": \"The character is positioned centrally, with the green hill and blue sky providing a balanced backdrop. The composition is symmetrical, with the character's wings spread evenly.\",\n \"camera\": \"A slightly low angle, emphasizing the character's height and presence.\",\n \"motion\": \"The character's pose suggests a sense of movement and dynamism, as if it is about to take flight or is in the middle of a joyful dance.\",\n \"temporal_flow\": \"The image captures a single, frozen moment in time, but the character's pose and expression suggest a sense of ongoing action and energy.\",\n \"soundscape\": \"A soft, playful background music with a sense of whimsy and adventure.\",\n \"dialogue\": \"The character might be exclaiming, 'Look at me!' or 'Let's go on an adventure!'\"\n}","","","","","","","","[]","[]","[]","[]","[]","[]","[]","[]","","[]"],"widgets_values_named":{"category":"Style","name":"","use_prompt_input":true,"use_lora_input":"Prompt LoRAs Only","text":"{\n \"scene\": \"A stylized, three-dimensional rendering of a yellow, butterfly-like creature with large, expressive eyes and a pink dress, standing on a vibrant green hill against a clear blue sky. The image captures a whimsical, animated atmosphere with a focus on the character's joyful pose.\",\n \"subjects\": [\n {\n \"description\": \"A yellow, butterfly-like creature with large, expressive blue eyes and a pink dress. Its wings are spread wide, and its body is rounded and soft.\",\n \"position\": \"Center of the image, standing on the green hill.\",\n \"action\": \"Standing with arms outstretched, looking forward with a joyful expression.\"\n }\n ],\n \"style\": \"Three-dimensional, animated style reminiscent of Pixar, with a focus on expressive character design and vibrant colors.\",\n \"color_palette\": [\n \"Yellow\",\n \"Light yellow\",\n \"Blue\",\n \"Pink\",\n \"Light pink\",\n \"Green\",\n \"Light green\",\n \"White\"\n ],\n \"lighting\": \"Soft, diffused lighting that highlights the character's features and creates subtle shadows, giving the image a sense of depth and realism.\",\n \"mood\": \"Whimsical, joyful, and playful, with a sense of adventure and discovery.\",\n \"background\": \"A clear blue sky with fluffy white clouds and a vibrant green hill. The background is simple and uncluttered, allowing the character to be the focal point.\",\n \"composition\": \"The character is positioned centrally, with the green hill and blue sky providing a balanced backdrop. The composition is symmetrical, with the character's wings spread evenly.\",\n \"camera\": \"A slightly low angle, emphasizing the character's height and presence.\",\n \"motion\": \"The character's pose suggests a sense of movement and dynamism, as if it is about to take flight or is in the middle of a joyful dance.\",\n \"temporal_flow\": \"The image captures a single, frozen moment in time, but the character's pose and expression suggest a sense of ongoing action and energy.\",\n \"soundscape\": \"A soft, playful background music with a sense of whimsy and adventure.\",\n \"dialogue\": \"The character might be exclaiming, 'Look at me!' or 'Let's go on an adventure!'\"\n}","swap_lora_outputs":"","prompt_selector":"","buttons":"","loras_a_display":"","loras_b_display":"","loras_c_display":"","loras_d_display":"","loras_a_toggle":"[]","loras_b_toggle":"[]","loras_c_toggle":"[]","loras_d_toggle":"[]","current_loras_a":"[]","current_loras_b":"[]","current_loras_c":"[]","current_loras_d":"[]","trigger_words_display":"","trigger_words_toggle":"[]"}}],"links":[[72,69,0,65,0,"LATENT"],[73,63,0,65,1,"VAE"],[75,67,0,69,1,"CONDITIONING"],[77,68,0,69,3,"LATENT"],[78,62,0,67,0,"CLIP"],[82,62,0,71,0,"CLIP"],[83,71,0,69,2,"CONDITIONING"],[90,76,0,67,1,"STRING"],[91,80,5,77,0,"IMAGE"],[95,65,0,83,0,"IMAGE"],[97,66,0,69,0,"MODEL"],[98,82,0,84,0,"IMAGE"],[99,84,0,76,0,"STRING"]],"groups":[{"id":2,"title":"Step2 - Image size","bounding":[-150,210,290,200],"color":"#3f789e","flags":{}},{"id":4,"title":"Step1 - Load models","bounding":[-150,-210,290,413.6],"color":"#3f789e","flags":{}},{"id":5,"title":"Image Based Generation","bounding":[150,-210,870,1080],"color":"#3f789e","flags":{}}],"config":{},"extra":{"ds":{"scale":0.8743245390972664,"offset":[1052.5055214723925,451.2179050215861]},"frontendVersion":"1.37.11","workflowRendererVersion":"LG","VHS_latentpreview":false,"VHS_latentpreviewrate":0,"VHS_MetadataImage":true,"VHS_KeepIntermediate":true},"version":0.4} |