ComfyUI plugins 0.09 #288

Closed
opened 2026-02-16 10:18:48 -05:00 by yindo · 6 comments
Owner

Originally created by @huangxiang518 on GitHub (May 15, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.4.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

ComfyUI 0.0.9 plugins :

If the ComfyUI workflow generates multiple images at one time, for example, 3 images, the first one is correct, the second one has an address but no content, and the address of the third image cannot be seen in the response [nor does it have content]

✔️ Expected Behavior

If generates 3 images,then Return 3 images[urls & contents]

Actual Behavior

If generates 3 images,only 1 image is correct.

Originally created by @huangxiang518 on GitHub (May 15, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.4.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ComfyUI 0.0.9 plugins : If the ComfyUI workflow generates multiple images at one time, for example, 3 images, the first one is correct, the second one has an address but no content, and the address of the third image cannot be seen in the response [nor does it have content] ### ✔️ Expected Behavior If generates 3 images,then Return 3 images[urls & contents] ### ❌ Actual Behavior If generates 3 images,only 1 image is correct.
yindo closed this issue 2026-02-16 10:18:48 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (May 15, 2025):

The issue you're experiencing with the ComfyUI plugins in Dify version 1.4.0, where only the first image is generated correctly while the second and third images have issues with their URLs and contents, might be related to how Dify handles image generation and management in a self-hosted Docker environment.

One potential cause could be the default behavior of ComfyUI using the same seed value for image generation, which can result in identical outputs if not configured properly. Ensure that your workflow explicitly specifies different seed values for each image generation to avoid this issue [1].

Additionally, there might be a known issue with image resolution settings being ignored, which could affect the output [2]. Checking these configurations might help resolve the problem.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 15, 2025): <!-- Answer --> The issue you're experiencing with the ComfyUI plugins in Dify version 1.4.0, where only the first image is generated correctly while the second and third images have issues with their URLs and contents, might be related to how Dify handles image generation and management in a self-hosted Docker environment. One potential cause could be the default behavior of ComfyUI using the same seed value for image generation, which can result in identical outputs if not configured properly. Ensure that your workflow explicitly specifies different seed values for each image generation to avoid this issue <sup>[[1]](https://github.com/langgenius/dify/issues/12288)</sup>. Additionally, there might be a known issue with image resolution settings being ignored, which could affect the output <sup>[[2]](https://github.com/langgenius/dify/issues/15637)</sup>. Checking these configurations might help resolve the problem. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/2c21d476-01dc-48b5-bd94-5836c6305f0f?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/2c21d476-01dc-48b5-bd94-5836c6305f0f?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/2c21d476-01dc-48b5-bd94-5836c6305f0f?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/2c21d476-01dc-48b5-bd94-5836c6305f0f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2c21d476-01dc-48b5-bd94-5836c6305f0f?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/2c21d476-01dc-48b5-bd94-5836c6305f0f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2c21d476-01dc-48b5-bd94-5836c6305f0f?feedback_type=other)</sup>
Author
Owner

@huangxiang518 commented on GitHub (May 15, 2025):

I have checked that the workflow is correct and can generate three pictures correctly [there are three contents in the comfyui background]; but when the comfyui plugin returns to dify, there will be the following situations:
1 sometimes 3 pictures are returned [half of the third picture is displayed];
2 sometimes 2 pictures are returned [the first picture is correct, the second picture does not exist [only url]or is half, and the third picture url is not returned

@huangxiang518 commented on GitHub (May 15, 2025): I have checked that the workflow is correct and can generate three pictures correctly [there are three contents in the comfyui background]; but when the comfyui plugin returns to dify, there will be the following situations: 1 sometimes 3 pictures are returned [half of the third picture is displayed]; 2 sometimes 2 pictures are returned [the first picture is correct, the second picture does not exist [only url]or is half, and the third picture url is not returned
Author
Owner

@yt-koike commented on GitHub (May 26, 2025):

@huangxiang518 Could you please share the DSL file here? I can replicate the situation with it.

@yt-koike commented on GitHub (May 26, 2025): @huangxiang518 Could you please share the [DSL file](https://docs.dify.ai/en/guides/application-orchestrate/creating-an-application#creating-from-a-dsl-file) here? I can replicate the situation with it.
Author
Owner

@huangxiang518 commented on GitHub (May 27, 2025):

comfyui_sd1.5_common_img&text2img_3pics_api_V1.json
This is my Comfyui workflow,I think the problem is that I need to save 3 pictures in my workflow.
Dify workflow is normal. Use the workflow mode of the Comfyui tool, pass in the json file, set the positive prompt,set the image node to 30, and the seed node to 20

@huangxiang518 commented on GitHub (May 27, 2025): [comfyui_sd1.5_common_img&text2img_3pics_api_V1.json](https://github.com/user-attachments/files/20454655/comfyui_sd1.5_common_img.text2img_3pics_api_V1.json) This is my Comfyui workflow,I think the problem is that I need to save 3 pictures in my workflow. Dify workflow is normal. Use the workflow mode of the Comfyui tool, pass in the json file, set the positive prompt,set the image node to 30, and the seed node to 20
Author
Owner

@yt-koike commented on GitHub (May 28, 2025):

Thank you for sharing the Json file! I'll try to generate three or more images with this and figure out the problem.

@yt-koike commented on GitHub (May 28, 2025): Thank you for sharing the Json file! I'll try to generate three or more images with this and figure out the problem.
Author
Owner

@yt-koike commented on GitHub (May 28, 2025):

@huangxiang518 Now I see what you were talking about. I thought you were trying to generate some images with batch sizes or iterations but I understand that you were trying so with multiple output nodes like shown below.
Image

I think I can fix this problem on next update. Again, thank you for sharing the bug notice and related data!

@yt-koike commented on GitHub (May 28, 2025): @huangxiang518 Now I see what you were talking about. I thought you were trying to generate some images with batch sizes or iterations but I understand that you were trying so with **multiple output nodes** like shown below. ![Image](https://github.com/user-attachments/assets/3b31bf72-eb32-4d8a-aa58-fa86b0cc7014) I think I can fix this problem on next update. Again, thank you for sharing the bug notice and related data!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#288