Skip to content

Commit 6ccd6eb

Browse files
committed
1.14
1 parent c5601e4 commit 6ccd6eb

File tree

5 files changed

+104
-263
lines changed

5 files changed

+104
-263
lines changed

README.md

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,34 @@ ___
2929
[**Example**](#Example)
3030

3131
___
32-
# Todo
32+
# Overview
33+
34+
- A full toolkit of smart ComfyUI nodes covering loading/downloading, merging, masks, layouts, and API-based generation for SD15, SDXL, Flux, and more.
35+
- Built-in conveniences: auto model-type detection (CFG/sampler/scheduler), translation + dynamic prompt support across text fields, ControlNet/Apply Style presets, and curated model/style libraries (`model_lib*.json`, `lora_lib.json`, `styles.csv`).
36+
- Download helpers for checkpoints, LoRA, ControlNet, upscalers, IPAdapter/InstantID, and image sources (Pinterest/URL/Instagram) with aria2c acceleration when available.
37+
- Utilities for metadata inspection/editing, streamlined wiring (Pipe/Switch/Any nodes), mask tools, and API nodes for Gemini, OpenAI, Hugging Face, and Deepseek.
38+
- Workflow examples live in the `examples` folder; preview images are in `preview` to quickly show what each node set does.
3339

40+
# Todo
3441
- [x] Workflow Example
3542
- [x] Guide
3643
- [x] Install
3744
___
3845

46+
# Quick start
47+
48+
- Clone into `custom_nodes`, then install Python deps from the ComfyUI root: `pip install -r custom_nodes/SDVN_Comfy_node/requirements.txt`
49+
- macOS/Windows: install `aria2c` manually for download nodes.
50+
- (Optional) Rename `API_key.json.example` to `API_key.json` and fill in keys; copy `my_styles.csv.example` to `my_styles.csv` to customize style presets.
51+
- Start ComfyUI — nodes appear under SDVN categories; recommended companion nodes are listed below.
52+
___
53+
3954
# Install
4055

4156
Install with simple commands:
4257
- `cd <ComfyUI folder path>/custom_nodes`
4358
- `git clone https://github.com/StableDiffusionVN/SDVN_Comfy_node`
59+
- From your ComfyUI root, install dependencies: `pip install -r custom_nodes/SDVN_Comfy_node/requirements.txt`
4460
- *For Windows or macOS machines, users are required to manually install `aria2c` in order to use nodes that automatically download models.*
4561

4662
Also you should install the following nodes to be able to use all functions:
@@ -102,6 +118,7 @@ This is a powerful node that combines 5 different loading modes (Input Folder, C
102118
- Support Random ability with Dynamic Prompt (Request installed node [Dynamicprompts](https://github.com/adieyal/comfyui-dynamicprompts))
103119
- Support Translate function
104120
- Support Style Card.
121+
- Includes helper text encoders for advanced models: **Qwen Edit Text Encoder / Plus** and **Kontext Reference** (pass reference images/masks into conditioning/latent).
105122

106123
**🗂️ Prompt Styles**
107124

@@ -116,6 +133,7 @@ Provide full option to use ControlNet in a single node (Request installed node [
116133
- Supports automatic downloading of most popular ControlNet models for SD15, SDXL, and Flux.
117134
- Supports direct usage with ControlNet Inpaint Alimama Flux.
118135
- Supports exporting parameters for integration with the AutoGenerate node.
136+
- Extras: **Diffsynth Controlnet Apply** and **Diffsynth Union Lora Apply** for users who work with Diffusynth workflows.
119137

120138
**🌈 Apply Style Model**
121139

@@ -213,6 +231,14 @@ A node that intelligently arranges image layouts with various flexible modes, he
213231
**🧅 Overlay Two Images | 🎭 Mask → Transparent Color | 🧩 Overlay Mask Color on Image**
214232

215233
- Blend images and visualize masks with custom colors.
234+
235+
**🖼️ Save Image Compare**
236+
237+
- Save before/after pairs side-by-side for quick QA within a workflow.
238+
239+
**🖼️ Image Gallery**
240+
241+
- Browse, paginate, and download/collect images (local or remote/pinterest/URL) into a gallery with temp caching.
216242
___
217243

218244
### Download
@@ -221,6 +247,7 @@ ___
221247
- Supports direct download from **civitai** and **huggingface** with model address link and model download link
222248
- Additionally, some nodes provide a list of popular models to make downloading them more convenient and faster.
223249
- Includes download nodes for IPAdapter, InstantID, DualCLIP, QuadrupleCLIP and more.
250+
- Extra download helpers: **AnyDownload List**, **ModelPatch/UNET/CLIP/Style/CLIP Vision downloads**, upscale model download, and VAE download.
224251

225252
![Download Nodes](/preview/download_node.png)
226253

@@ -251,6 +278,7 @@ Support 3 types of syntax to adjust for each block
251278
**🧬 Model Merge**
252279

253280
- This node supports merging 2 or 3 checkpoints, extracting LoRA from 2 checkpoints — similar to the merge function in Automatic1111.
281+
- **Model Export** saves merged results to disk with optional metadata edits.
254282

255283
[*See more workflow examples*](#Example)
256284

@@ -346,8 +374,18 @@ Example: A workflow to filter images with a width ≥ 1000px.
346374
- Nodes that support creating automated options and dynamically changing variables based on input.
347375

348376
![](preview/dic_convert.jpeg)
377+
378+
**🎲 Random Prompt | 📋 Menu Option Extra | 🎚️ Sliders (x4)**
379+
380+
- Quick prompt randomizer plus helper widgets (extra menu option, slider100, slider1, custom int/float slider) to speed up UI prototyping.
349381
___
350382

383+
### Dev
384+
385+
- **Run Python Code**: inline execution of custom Python functions inside a workflow (supports dict/list unpacking).
386+
- **Kontext Reference / Qwen Edit Text Encoder (+ Plus)**: advanced conditioning/text encoders for reference-driven or Qwen-edit models.
387+
- **Save Image Compare + Image Gallery** also double as utility nodes for debugging and dataset management.
388+
351389
### API
352390

353391
Support the use of AI models through API
@@ -368,12 +406,10 @@ Support the use of AI models through API
368406
![](preview/chatbot2.jpeg)
369407
![](preview/chatbot3.jpeg)
370408

371-
**🎨 DALL-E 2 | 🎨 DALL-E 3 | 🎨 GPT Image**
409+
**🎨 DALL-E 3 | 🎨 GPT Image**
372410

373411
- Support translate and Dynamic prompt
374412

375-
![](preview/dalle-2.jpeg)
376-
![](preview/dalle-2_mask.jpeg)
377413
![](preview/dalle-3.jpeg)
378414
![](preview/gptimage.jpeg)
379415
![](preview/gptimage_input.jpeg)
@@ -389,13 +425,12 @@ Support the use of AI models through API
389425
![](preview/gemini_multi.jpeg)
390426
![](preview/imagen.jpeg)
391427

392-
**✨ IC-Light v2 | ✨ Joy Caption**
428+
**🎨 Gemini 3 Pro Image**
393429

394-
A node that uses the Hugging Face API to directly interact with corresponding Spaces.
395-
- IC-Light v2: https://huggingface.co/spaces/lllyasviel/iclight-v2
396-
- Joy Caption: https://huggingface.co/spaces/fancyfeast/joy-caption-alpha-two
430+
- Uses Gemini 3 Pro Image Preview to return both an image and accompanying text
431+
- Accepts up to 14 reference images; supports aspect ratio and resolution presets
432+
- Translate + Dynamic prompt support, pulls API from `API_key.json` if not provided
397433

398-
![](preview/iclight-v2.jpeg)
399434
___
400435

401436
# Info check
@@ -468,6 +503,10 @@ Nodes that support both basic and advanced mask processing and inpainting.
468503

469504
- This node separates distinct masked areas into individual masks, working exceptionally well with the inpaint crop node set.
470505

506+
**📏 Get Mask Size**
507+
508+
- Returns mask width/height (and latent) to drive dimension-aware workflows.
509+
471510
**⚡️ Crop Inpaint | 🔄 Loop Inpaint Stitch**
472511

473512
- These 2 nodes are built based on the (https://github.com/lquesada/ComfyUI-Inpaint-CropAndStitch) node set, and you need to install that set first in order to use them.
@@ -497,4 +536,4 @@ ___
497536
- [fluxai.vn](https://colab.research.google.com/github/StableDiffusionVN/SDVN-WebUI/blob/main/SDVN_ComfyUI_Flux_v3.ipynb)
498537

499538
**Course**
500-
- [hungdiffusion.com](https://hungdiffusion.com/)
539+
- [hungdiffusion.com](https://hungdiffusion.com/)

README_vi.md

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,35 @@ ___
2727
[**Example**](#Example)
2828

2929
___
30+
# Tổng quan
31+
32+
- Bộ toolkit node thông minh cho ComfyUI, bao phủ tải/tải về, merge, mask, layout và sinh ảnh qua API cho SD15, SDXL, Flux...
33+
- Tích hợp sẵn tiện ích: tự nhận diện loại model (CFG/sampler/scheduler), hỗ trợ dịch + dynamic prompt trên ô văn bản, preset ControlNet/Apply Style, và thư viện model/style có sẵn (`model_lib*.json`, `lora_lib.json`, `styles.csv`).
34+
- Hỗ trợ tải checkpoint, LoRA, ControlNet, upscale, IPAdapter/InstantID và nguồn ảnh (Pinterest/URL/Instagram) với gia tốc aria2c khi có.
35+
- Cung cấp tiện ích đọc/chỉnh metadata, sắp xếp dây nối gọn (Pipe/Switch/Any), công cụ mask, và node API cho Gemini, OpenAI, Hugging Face, Deepseek.
36+
- Thư mục `examples` chứa workflow mẫu; thư mục `preview` giúp xem nhanh giao diện/tác dụng mỗi nhóm node.
37+
3038
# Todo
3139

3240
- [x] Workflow Example
3341
- [x] Guide
3442
- [x] Install
3543
___
3644

45+
# Bắt đầu nhanh
46+
47+
- Clone vào `custom_nodes`, sau đó cài phụ thuộc Python từ thư mục gốc ComfyUI: `pip install -r custom_nodes/SDVN_Comfy_node/requirements.txt`
48+
- macOS/Windows: tự cài `aria2c` để dùng các node tải model.
49+
- (Tùy chọn) Đổi `API_key.json.example` thành `API_key.json` và điền key; sao chép `my_styles.csv.example` thành `my_styles.csv` để tùy chỉnh style.
50+
- Khởi động ComfyUI — các node sẽ xuất hiện dưới nhóm SDVN; danh sách node nên cài thêm nằm ngay dưới đây.
51+
___
52+
3753
# Install
3854

3955
Cài đặt với các lệnh đơn giản:
4056
- `cd <đường_dẫn_đến_thư_mục_ComfyUI>/custom_nodes`
4157
- `git clone https://github.com/StableDiffusionVN/SDVN_Comfy_node`
58+
- Từ thư mục gốc ComfyUI, cài phụ thuộc: `pip install -r custom_nodes/SDVN_Comfy_node/requirements.txt`
4259
- *Đối với máy Windows hoặc macOS, người dùng cần tự cài đặt `aria2c` để sử dụng các node tự động tải model.*
4360

4461
Bạn cũng nên cài đặt các node sau để có thể sử dụng đầy đủ các chức năng:
@@ -99,6 +116,7 @@ Tự động tìm kiếm và tải ảnh từ Pinterest. Ảnh sẽ được t
99116
- Hỗ trợ khả năng Random với Dynamic Prompt (Yêu cầu cài đặt node [Dynamicprompts](https://github.com/adieyal/comfyui-dynamicprompts))
100117
- Hỗ trợ chức năng dịch
101118
- Hỗ trợ Style Card.
119+
- Bổ sung encoder nâng cao cho model đặc thù: **Qwen Edit Text Encoder / Plus****Kontext Reference** (đưa ảnh/mask tham chiếu vào conditioning/latent).
102120

103121
**🗂️ Prompt Styles**
104122

@@ -113,6 +131,7 @@ Node tổng hợp đầy đủ các tùy chọn để sử dụng ControlNet tro
113131
- Hỗ trợ tự động tải các model ControlNet phổ biến cho SD15, SDXL và Flux.
114132
- Hỗ trợ sử dụng trực tiếp với ControlNet Inpaint Alimama Flux.
115133
- Hỗ trợ xuất tham số để tích hợp với node AutoGenerate.
134+
- Bản mở rộng: **Diffsynth Controlnet Apply****Diffsynth Union Lora Apply** cho người dùng workflow Diffusynth.
116135

117136
**🌈 Apply Style Model**
118137

@@ -209,6 +228,14 @@ Node sắp xếp layout ảnh thông minh với nhiều chế độ linh hoạt,
209228
**🧅 Overlay Two Images | 🎭 Mask → Transparent Color | 🧩 Overlay Mask Color on Image**
210229

211230
- Chồng ảnh và hiển thị mask với màu tùy chọn.
231+
232+
**🖼️ Save Image Compare**
233+
234+
- Lưu cặp ảnh trước/sau đặt cạnh nhau để so sánh nhanh trong workflow.
235+
236+
**🖼️ Image Gallery**
237+
238+
- Duyệt, phân trang và tải/thu thập ảnh (local hoặc URL/Pinterest) vào thư viện tạm.
212239
___
213240

214241
### Download
@@ -217,6 +244,7 @@ ___
217244
- Hỗ trợ tải trực tiếp từ **civitai****huggingface** bằng địa chỉ model hoặc link tải model
218245
- Ngoài ra, một số node cung cấp danh sách các model phổ biến để tải nhanh và tiện lợi hơn.
219246
- Bổ sung các node tải IPAdapter, InstantID, DualCLIP, QuadrupleCLIP và nhiều loại model khác.
247+
- Các tiện ích tải thêm: **AnyDownload List**, tải ModelPatch/UNET/CLIP/Style/CLIP Vision, tải model upscale và VAE.
220248
![Download Nodes](/preview/download_node.png)
221249

222250
___
@@ -246,6 +274,7 @@ Hỗ trợ 3 kiểu cú pháp để điều chỉnh từng block
246274
**🧬 Model Merge**
247275

248276
- Node này hỗ trợ trộn 2 hoặc 3 checkpoint, tách LoRA từ 2 checkpoint — tương tự chức năng merge của Automatic1111.
277+
- **Model Export**: lưu kết quả merge ra file và có thể chỉnh metadata.
249278

250279
[*Xem thêm ví dụ workflow*](#Example)
251280

@@ -341,8 +370,18 @@ Ví dụ: Workflow lọc ảnh có chiều rộng ≥ 1000px.
341370
- Node hỗ trợ tạo tùy chọn tự động và thay đổi biến động theo đầu vào.
342371

343372
![](preview/dic_convert.jpeg)
373+
374+
**🎲 Random Prompt | 📋 Menu Option Extra | 🎚️ Sliders (x4)**
375+
376+
- Trộn prompt ngẫu nhiên và các widget phụ (menu option extra, slider100, slider1, int/float slider custom) giúp dựng UI nhanh hơn.
344377
___
345378

379+
### Dev
380+
381+
- **Run Python Code**: chạy hàm Python tự viết trực tiếp trong workflow (hỗ trợ unpack dict/list).
382+
- **Kontext Reference / Qwen Edit Text Encoder (+ Plus)**: encoder conditioning/văn bản nâng cao cho các model tham chiếu hoặc Qwen edit.
383+
- **Save Image Compare + Image Gallery** cũng hữu ích cho debug và quản lý bộ ảnh.
384+
346385
### API
347386

348387
Hỗ trợ sử dụng các model AI qua API
@@ -363,12 +402,10 @@ Hỗ trợ sử dụng các model AI qua API
363402
![](preview/chatbot2.jpeg)
364403
![](preview/chatbot3.jpeg)
365404

366-
**🎨 DALL-E 2 | 🎨 DALL-E 3 | 🎨 GPT Image**
405+
**🎨 DALL-E 3 | 🎨 GPT Image**
367406

368407
- Hỗ trợ dịch và Dynamic prompt
369408

370-
![](preview/dalle-2.jpeg)
371-
![](preview/dalle-2_mask.jpeg)
372409
![](preview/dalle-3.jpeg)
373410
![](preview/gptimage.jpeg)
374411
![](preview/gptimage_input.jpeg)
@@ -384,13 +421,12 @@ Hỗ trợ sử dụng các model AI qua API
384421
![](preview/gemini_multi.jpeg)
385422
![](preview/imagen.jpeg)
386423

387-
**✨ IC-Light v2 | ✨ Joy Caption**
424+
**🎨 Gemini 3 Pro Image**
388425

389-
Node sử dụng API Hugging Face để tương tác trực tiếp với các Spaces tương ứng.
390-
- IC-Light v2: https://huggingface.co/spaces/lllyasviel/iclight-v2
391-
- Joy Caption: https://huggingface.co/spaces/fancyfeast/joy-caption-alpha-two
426+
- Sử dụng Gemini 3 Pro Image Preview, trả về cả ảnh và phần văn bản kèm theo
427+
- Hỗ trợ tối đa 14 ảnh tham chiếu; có sẵn preset tỷ lệ khung hình và độ phân giải
428+
- Hỗ trợ dịch + Dynamic prompt, tự lấy API trong `API_key.json` nếu để trống
392429

393-
![](preview/iclight-v2.jpeg)
394430
___
395431

396432
# Info check
@@ -463,6 +499,10 @@ Bộ node hỗ trợ xử lý mask cơ bản và nâng cao, cũng như inpaintin
463499

464500
- Node này tách các vùng mask riêng biệt thành các mask riêng, hoạt động rất tốt với bộ node inpaint crop.
465501

502+
**📏 Get Mask Size**
503+
504+
- Trả về chiều rộng/chiều cao (và latent) của mask để xây dựng workflow phụ thuộc kích thước.
505+
466506
**⚡️ Crop Inpaint | 🔄 Loop Inpaint Stitch**
467507

468508
- Hai node này được xây dựng dựa trên bộ node (https://github.com/lquesada/ComfyUI-Inpaint-CropAndStitch), bạn cần cài đặt bộ node này trước khi sử dụng.
@@ -492,4 +532,4 @@ ___
492532
- [fluxai.vn](https://colab.research.google.com/github/StableDiffusionVN/SDVN-WebUI/blob/main/SDVN_ComfyUI_Flux_v3.ipynb)
493533

494534
**Course**
495-
- [hungdiffusion.com](https://hungdiffusion.com/)
535+
- [hungdiffusion.com](https://hungdiffusion.com/)

0 commit comments

Comments
 (0)