[PR #1203] [MERGED] feat: ComfyUI 0.2.0, Video&AutoDownloader Update #1768

Closed
opened 2026-02-16 10:23:55 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1203
Author: @yt-koike
Created: 7/2/2025
Status: Merged
Merged: 7/3/2025
Merged by: @crazywoola

Base: mainHead: main


📝 Commits (10+)

  • a6b8bba add list_models node
  • bd72fbe add img2img node
  • 104f9e0 rename stable_diffusion node to txt2img
  • 37be0ed add img2img.json
  • 1c364bf register txt2img, img2img and list_models node
  • e4b2381 bugfix
  • 94e9355 Merge branch 'langgenius:main' into main
  • 5b4bf25 add depth_anything and depth_pro
  • a4d43c5 Merge pull request #1 from yt-koike/depth
  • c691a84 Merge branch 'langgenius:main' into main

📊 Changes

45 files changed (+4630 additions, -1048 deletions)

View changed files

📝 tools/comfyui/README.md (+53 -26)
tools/comfyui/_assets/CivitAI.yml (+827 -0)
tools/comfyui/_assets/Txt2Img.yml (+599 -0)
tools/comfyui/_assets/Upscale.yml (+289 -0)
📝 tools/comfyui/_assets/nodes.png (+0 -0)
📝 tools/comfyui/manifest.yaml (+1 -1)
📝 tools/comfyui/provider/comfyui.yaml (+4 -6)
📝 tools/comfyui/requirements.txt (+1 -1)
📝 tools/comfyui/tools/comfyui_client.py (+72 -57)
tools/comfyui/tools/comfyui_workflow.py (+272 -0)
tools/comfyui/tools/depth_anything.py (+0 -59)
tools/comfyui/tools/depth_anything.yaml (+0 -80)
tools/comfyui/tools/depth_pro.py (+0 -55)
tools/comfyui/tools/depth_pro.yaml (+0 -60)
📝 tools/comfyui/tools/download_by_json.py (+8 -10)
📝 tools/comfyui/tools/download_by_url.py (+6 -8)
📝 tools/comfyui/tools/download_civitai.py (+19 -10)
📝 tools/comfyui/tools/download_civitai.yaml (+17 -0)
📝 tools/comfyui/tools/download_huggingface.py (+2 -8)
tools/comfyui/tools/face_swap.py (+0 -66)

...and 25 more files

📄 Description

Related Issues or Context

New feature:

  • Img2vid node now supports Wan2.1, LTXV and SVD.
  • New Txt2vid node generates a video from prompts. It also supports Wan2.1, LTXV, Mochi and Hunyuan.
  • Auto Download feature: All generative nodes from txt2img to img2vid now download and use ComfyUI's default models if models are not specified.
  • Support for generating MP4 video: As requested in here, txt2vid and img2vid can output .mp4 as well as .webp.
  • List models node used to be able to list models in some directories including checkpoints/ but now it can list those in all the directiory on ComfyUI.
  • More detailed error messages

Deletion:

  • Depth Anything, Depth Pro, Faceswap and Upscale nodes are deleted and integrated to Image Edit node.

Refactor:

  • Implement ComfyUiWorkflow() to manage and modify workflow json efficiently.

This PR will make it easier for beginners to generate videos as this plugins can automatically download default models.

I also published a prebuild docker image for this plugin and wrote about it on README.md. If you don't want it written on README.md, I would be pleased to delete the description since the docker image is a personally built image, not an official image.

Enjoy!

This PR contains Changes to Non-Plugin

  • Documentation

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.5.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: 1.5.0, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/1203 **Author:** [@yt-koike](https://github.com/yt-koike) **Created:** 7/2/2025 **Status:** ✅ Merged **Merged:** 7/3/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`a6b8bba`](https://github.com/langgenius/dify-official-plugins/commit/a6b8bbac16351d3c2c9dffc5957430e5ac27b8dd) add list_models node - [`bd72fbe`](https://github.com/langgenius/dify-official-plugins/commit/bd72fbe2bdb46d1ac944b28255cf444871524697) add img2img node - [`104f9e0`](https://github.com/langgenius/dify-official-plugins/commit/104f9e08b1d2885ba468cd1b8fc5dfae7ad2ffe3) rename stable_diffusion node to txt2img - [`37be0ed`](https://github.com/langgenius/dify-official-plugins/commit/37be0ed20dba7503a805e23a650d0e8f05fa2120) add img2img.json - [`1c364bf`](https://github.com/langgenius/dify-official-plugins/commit/1c364bfe2dc47c3379585acfa1cdd4d00d898283) register txt2img, img2img and list_models node - [`e4b2381`](https://github.com/langgenius/dify-official-plugins/commit/e4b238157f814bd4a2242bcbd87b6cc4c4e4ac27) bugfix - [`94e9355`](https://github.com/langgenius/dify-official-plugins/commit/94e93553c978bba2b765fad6526d285429c883c1) Merge branch 'langgenius:main' into main - [`5b4bf25`](https://github.com/langgenius/dify-official-plugins/commit/5b4bf2519c6754c52da6dc31463213ad087b2a59) add depth_anything and depth_pro - [`a4d43c5`](https://github.com/langgenius/dify-official-plugins/commit/a4d43c5c6104dec7ea417f21808b0d5f0f69e7bb) Merge pull request #1 from yt-koike/depth - [`c691a84`](https://github.com/langgenius/dify-official-plugins/commit/c691a8414f923c34974c8887aa4c45e3508470a5) Merge branch 'langgenius:main' into main ### 📊 Changes **45 files changed** (+4630 additions, -1048 deletions) <details> <summary>View changed files</summary> 📝 `tools/comfyui/README.md` (+53 -26) ➕ `tools/comfyui/_assets/CivitAI.yml` (+827 -0) ➕ `tools/comfyui/_assets/Txt2Img.yml` (+599 -0) ➕ `tools/comfyui/_assets/Upscale.yml` (+289 -0) 📝 `tools/comfyui/_assets/nodes.png` (+0 -0) 📝 `tools/comfyui/manifest.yaml` (+1 -1) 📝 `tools/comfyui/provider/comfyui.yaml` (+4 -6) 📝 `tools/comfyui/requirements.txt` (+1 -1) 📝 `tools/comfyui/tools/comfyui_client.py` (+72 -57) ➕ `tools/comfyui/tools/comfyui_workflow.py` (+272 -0) ➖ `tools/comfyui/tools/depth_anything.py` (+0 -59) ➖ `tools/comfyui/tools/depth_anything.yaml` (+0 -80) ➖ `tools/comfyui/tools/depth_pro.py` (+0 -55) ➖ `tools/comfyui/tools/depth_pro.yaml` (+0 -60) 📝 `tools/comfyui/tools/download_by_json.py` (+8 -10) 📝 `tools/comfyui/tools/download_by_url.py` (+6 -8) 📝 `tools/comfyui/tools/download_civitai.py` (+19 -10) 📝 `tools/comfyui/tools/download_civitai.yaml` (+17 -0) 📝 `tools/comfyui/tools/download_huggingface.py` (+2 -8) ➖ `tools/comfyui/tools/face_swap.py` (+0 -66) _...and 25 more files_ </details> ### 📄 Description ## Related Issues or Context <!-- ⚠️ NOTE: This repository is for Dify Official Plugins only. For community contributions, please submit to https://github.com/langgenius/dify-plugins instead. - Link Related Issues if Applicable: #issue_number - Or Provide Context about Why this Change is Needed --> New feature: - Img2vid node now supports [Wan2.1](https://github.com/Wan-Video/Wan2.1), [LTXV](https://ltxv.video/) and SVD. - New Txt2vid node generates a video from prompts. It also supports Wan2.1, LTXV, Mochi and Hunyuan. - Auto Download feature: All generative nodes from txt2img to img2vid now download and use ComfyUI's default models if models are not specified. - Support for generating MP4 video: As requested in [here](https://github.com/langgenius/dify-official-plugins/issues/954#issuecomment-2912344567), txt2vid and img2vid can output .mp4 as well as .webp. - List models node used to be able to list models in some directories including checkpoints/ but now it can list those in all the directiory on ComfyUI. - More detailed error messages Deletion: - Depth Anything, Depth Pro, Faceswap and Upscale nodes are deleted and integrated to Image Edit node. Refactor: - Implement ComfyUiWorkflow() to manage and modify workflow json efficiently. This PR will make it easier for beginners to generate videos as this plugins can automatically download default models. I also published a [prebuild docker image](https://hub.docker.com/r/l125/comfyui-for-dify) for this plugin and wrote about it on [README.md](https://github.com/langgenius/dify-official-plugins/pull/1203/files#diff-ff78164adc2e91478c87e17d241cd0c35593cb1a16e2aac3975013afe367289e). If you don't want it written on README.md, I would be pleased to delete the description since the docker image is a personally built image, not an official image. Enjoy! ## This PR contains Changes to *Non-Plugin* <!-- Put an `x` in all the boxes that apply by replacing [ ] with [x] For example: - [x] Documentation --> - [x] Documentation ## This PR contains Changes to *Non-LLM Models Plugin* - [x] I have Run Comprehensive Tests Relevant to My Changes <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) <!-- ⚠️ NOTE: Version Format: MAJOR.MINOR.PATCH - MAJOR (0.x.x): Reserved for Significant architectural changes or incompatible API modifications - MINOR (x.0.x): For New feature additions while maintaining backward compatibility - PATCH (x.x.0): For Backward-compatible bug fixes and minor improvements - Note: Each Version Component (MAJOR, MINOR, PATCH) Can Be 2 Digits, e.g., 10.11.22 --> ## Dify Plugin SDK Version - [x] I have Ensured `dify_plugin>=0.3.0,<0.5.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) <!-- ⚠️ NOTE: At Least One Environment Must Be Tested. --> ### Local Deployment Environment - [x] Dify Version is: 1.5.0, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt - No Breaking Changes in Dify That May Affect the Testing Result --> ### SaaS Environment - [ ] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:23:55 -05:00
yindo closed this issue 2026-02-16 10:23:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1768