Compare commits

..

38 Commits
3.28 ... 3.31

Author SHA1 Message Date
Dr.Lt.Data
e05f329602 bump version to 3.31 2025-03-14 00:59:11 +09:00
Dr.Lt.Data
eed0e8ebea update DB 2025-03-14 00:58:55 +09:00
SirWillance
731eb4fcbe Please verify my changes (#1643)
* Update custom-node-list.json

* Update custom-node-list.json

* Update custom-node-list.json

* Update custom-node-list.json

I felt the need to change the Title and the Description

---------

Co-authored-by: Dr.Lt.Data <128333288+ltdrdata@users.noreply.github.com>
2025-03-14 00:53:36 +09:00
Dr.Lt.Data
44a63e4b6d update DB 2025-03-14 00:52:06 +09:00
CenFun
7651e5e48b UI improvement (#1625) 2025-03-14 00:51:37 +09:00
Dr.Lt.Data
2449636d32 update DB 2025-03-14 00:45:47 +09:00
Dr.Lt.Data
f9990ca8eb fixed: make_pip_cmd - add '-s' option 2025-03-13 22:48:13 +09:00
Dr.Lt.Data
c3eed981c0 fixed: robust validation when model downloading #2 2025-03-12 21:24:31 +09:00
Dr.Lt.Data
bbb54d4a08 fixed: robust validation when model downloading 2025-03-12 21:10:02 +09:00
Dr.Lt.Data
4566c585db fixed: a condition code wasn’t saved after editing... lol 2025-03-12 21:00:05 +09:00
Dr.Lt.Data
a946338a18 fixed: invalid channel exception when startup 2025-03-12 17:28:17 +09:00
Dr.Lt.Data
0a60a44478 fixed: several security bugs
refactor: remove serveal unused code
2025-03-12 11:32:16 +09:00
Dr.Lt.Data
cef0ad6707 update DB 2025-03-12 07:21:38 +09:00
Robin Huang
7176f0837a Add linux form factor. (#1648) 2025-03-12 07:20:06 +09:00
Yuan-Man
6b1f2b2d9d Add ComfyUI-StyleStudio node (#1639) 2025-03-12 07:15:58 +09:00
Laureηt
38a1a9b320 add comfyui-finegrain to custom-node-list.json (#1587) 2025-03-12 07:04:18 +09:00
Dr.Lt.Data
402e2c384f fixed: Issue where install.py would not run when installed in cnr. 2025-03-11 12:34:07 +09:00
Dr.Lt.Data
9d5faa096c update DB 2025-03-09 21:06:59 +09:00
Dr.Lt.Data
97d0dc20f1 update DB 2025-03-09 18:26:29 +09:00
Jerome Bacquet
8d99ff07b6 Update custom-node-list.json (#1630)
Add XenoFlow Plugin in the custom-node-list
2025-03-09 18:24:22 +09:00
Dr.Lt.Data
04fa540a8c fixed: crash on desktop version when displaying to print version information 2025-03-08 10:15:23 +09:00
Dr.Lt.Data
eb41867e04 update DB 2025-03-06 22:02:23 +09:00
雷诺探长
eee5d7d9e8 Update custom-node-list.json (#1601) 2025-03-06 21:51:04 +09:00
Dr.Lt.Data
e983f9ed35 bump version 3.30.2 2025-03-06 21:48:37 +09:00
Alexander Piskun
8b16ef641b small fix for running as py-module on windows (#1615) 2025-03-06 21:48:08 +09:00
Dr.Lt.Data
e87d616b7a fixed: normalize pip name
package name in requirements is 'comfyui-frontend-package'
but, package name from `pip freeze` is 'comfyui_frontend_package'
but, package name from `uv pip freeze` is 'comfyui-frontend-package'

https://github.com/ltdrdata/ComfyUI-Manager/pull/1615#issue-2898212382
2025-03-06 21:41:56 +09:00
Dr.Lt.Data
2220f325fc update DB 2025-03-06 21:30:28 +09:00
S4MUEL
b53ed47ccb Add ComfyUI-Image-Position-Blend (#1617)
* Add ComfyUI-Image-Position-Blend to custom node list

This adds my custom node for image position blending to the ComfyUI Manager list.

* Update custom-node-list.json

---------

Co-authored-by: Dr.Lt.Data <128333288+ltdrdata@users.noreply.github.com>
2025-03-06 21:08:13 +09:00
Alexander Piskun
39df2743fe get_installed_packages: return python packages names in lowercase (#1614) 2025-03-06 21:04:33 +09:00
Dr.Lt.Data
3f729aaf03 update DB 2025-03-06 20:53:26 +09:00
Dr.Lt.Data
b7324621e4 update DB 2025-03-06 07:38:05 +09:00
Dr.Lt.Data
e8c782c8e1 feat: pip_auto_fix.list for custom PIPFixer
fixed: always reinstall comfyui-frontend-package

https://github.com/ltdrdata/ComfyUI-Manager/discussions/980#discussioncomment-12400709
2025-03-05 22:27:24 +09:00
Dr.Lt.Data
9136505565 bump version to v3.29 2025-03-05 21:19:23 +09:00
Dr.Lt.Data
f406d728cc fixed: use pyproject.toml if desktop version
- desktop version doesn't contains .git

modified: don't cache the sub fetched data of cnr
2025-03-05 21:18:56 +09:00
Yoland Yan
d649ca47c6 Add comfy version to query (#1608)
* Add comfy version to query

* Add form factor detection for ComfyUI node query
2025-03-05 21:18:45 +09:00
Dr.Lt.Data
e8111527b4 update DB 2025-03-05 21:00:30 +09:00
Alexander Piskun
2af66d7efc support of py-module in prestartup script (#1610) 2025-03-05 17:44:42 +09:00
Alexander Piskun
27706f37f6 Fixed typo in "update" cli command (#1609) 2025-03-05 17:00:19 +09:00
25 changed files with 8703 additions and 5021 deletions

View File

@@ -150,6 +150,7 @@ In `ComfyUI-Manager` V3.0 and later, configuration files and dynamically generat
* Configurable channel lists: `<USER_DIRECTORY>/default/ComfyUI-Manager/channels.ini`
* Configurable pip overrides: `<USER_DIRECTORY>/default/ComfyUI-Manager/pip_overrides.json`
* Configurable pip blacklist: `<USER_DIRECTORY>/default/ComfyUI-Manager/pip_blacklist.list`
* Configurable pip auto fix: `<USER_DIRECTORY>/default/ComfyUI-Manager/pip_auto_fix.list`
* Saved snapshot files: `<USER_DIRECTORY>/default/ComfyUI-Manager/snapshots`
* Startup script files: `<USER_DIRECTORY>/default/ComfyUI-Manager/startup-scripts`
* Component files: `<USER_DIRECTORY>/default/ComfyUI-Manager/components`
@@ -306,6 +307,10 @@ The following settings are applied based on the section marked as `is_default`.
* Prevent the installation of specific pip packages
* List the package names one per line in the `pip_blacklist.list` file.
* Automatically Restoring pip Installation
* If you list pip spec requirements in `pip_auto_fix.list`, similar to `requirements.txt`, it will automatically restore the specified versions when starting ComfyUI or when versions get mismatched during various custom node installations.
* `--index-url` can be used.
* Use `aria2` as downloader
* [howto](docs/en/use_aria2.md)

View File

@@ -647,7 +647,7 @@ def install(
cmd_ctx.set_channel_mode(channel, mode)
cmd_ctx.set_no_deps(no_deps)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, core.manager_files_path)
for_each_nodes(nodes, act=install_node)
pip_fixer.fix_broken()
@@ -685,7 +685,7 @@ def reinstall(
cmd_ctx.set_channel_mode(channel, mode)
cmd_ctx.set_no_deps(no_deps)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, core.manager_files_path)
for_each_nodes(nodes, act=reinstall_node)
pip_fixer.fix_broken()
@@ -711,7 +711,7 @@ def uninstall(
for_each_nodes(nodes, act=uninstall_node)
@app.command(help="Disable custom nodes")
@app.command(help="Update custom nodes")
def update(
nodes: List[str] = typer.Argument(
...,
@@ -739,7 +739,7 @@ def update(
if 'all' in nodes:
asyncio.run(auto_save_snapshot())
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, core.manager_files_path)
for x in nodes:
if x.lower() in ['comfyui', 'comfy', 'all']:
@@ -840,7 +840,7 @@ def fix(
if 'all' in nodes:
asyncio.run(auto_save_snapshot())
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, core.manager_files_path)
for_each_nodes(nodes, fix_node, allow_all=True)
pip_fixer.fix_broken()
@@ -1119,7 +1119,7 @@ def restore_snapshot(
print(f"[bold red]ERROR: `{snapshot_path}` is not exists.[/bold red]")
exit(1)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, core.manager_files_path)
try:
asyncio.run(core.restore_snapshot(snapshot_path, extras))
except Exception:
@@ -1151,7 +1151,7 @@ def restore_dependencies(
total = len(node_paths)
i = 1
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, core.manager_files_path)
for x in node_paths:
print("----------------------------------------------------------------------------------------------------")
print(f"Restoring [{i}/{total}]: {x}")
@@ -1170,7 +1170,7 @@ def post_install(
):
path = os.path.expanduser(path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, core.manager_files_path)
unified_manager.execute_install_script('', path, instant_execution=True)
pip_fixer.fix_broken()
@@ -1214,8 +1214,7 @@ def install_deps(
print(f"[bold red]Invalid json file: {deps}[/bold red]")
exit(1)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, core.manager_files_path)
for k in json_obj['custom_nodes'].keys():
state = core.simple_check_custom_node(k)
if state == 'installed':

View File

@@ -4106,6 +4106,17 @@
"install_type": "git-clone",
"description": "Capture Webcamera and URL media streams as ComfyUI images."
},
{
"author": "amorano",
"title": "Jovi_Colorizer",
"id": "jovijovi_colorizer_capture",
"reference": "https://github.com/Amorano/Jovi_Colorizer",
"files": [
"https://github.com/Amorano/Jovi_Colorizer"
],
"install_type": "git-clone",
"description": "Colorize ComfyUI nodes with defaults per node, node category or via regex filtering."
},
{
"author": "Umikaze-job",
"title": "select_folder_path_easy",
@@ -5115,7 +5126,7 @@
"https://github.com/glibsonoran/Plush-for-ComfyUI"
],
"install_type": "git-clone",
"description": "A suite of nodes that includes: - Prompt enhancers/generators that employ remote AI services and local front-ends like: ChatGPT, Anthropic Claude, Groq, LM Studio, Oobabooga, etc. - An Image Generator that uses Dall_e 3. - An image metadata extractor that extracts seed, prompt, cfg, size, denoise, etc from existing AI generated images and photo metadata (from exif data) from jpeg photographs. A tagger that appends text (tags) to the beginning, end and/or middle of a text block. Image and text multiplexer utili"
"description": "A suite of nodes that includes: - Prompt enhancers/generators that employ remote AI services and local front-ends like: ChatGPT, Anthropic Claude, Groq, Gemini, LM Studio, Oobabooga, OpenRouter etc. - An Image Generator that uses Dall_e 3. - An image metadata extractor that extracts seed, prompt, cfg, size, denoise, etc from existing AI generated images and photo metadata (from exif data) from jpeg photographs. A tagger that appends text (tags) to the beginning, end and/or middle of a text block. Image and text multiplexer utilility. A text block remover that removes text between two named tags."
},
{
"author": "vienteck",
@@ -7386,7 +7397,7 @@
"https://github.com/kadirnar/ComfyUI-YOLO"
],
"install_type": "git-clone",
"description": "Ultralytics-Powered Object Recognition for ComfyUI"
"description": "Nodes:Load Ultralytics Model, Ultralytics Inference, Ultralytics Visualization, Convert to Dictionary, BBox to XYWH"
},
{
"author": "digitaljohn",
@@ -8031,16 +8042,6 @@
"install_type": "git-clone",
"description": "ComfyUI nodes to edit videos using Genmo Mochi"
},
{
"author": "logtd",
"title": "ComfyUI-LTXTricks",
"reference": "https://github.com/logtd/ComfyUI-LTXTricks",
"files": [
"https://github.com/logtd/ComfyUI-LTXTricks"
],
"install_type": "git-clone",
"description": "A set of nodes that provide additional controls for the LTX Video model"
},
{
"author": "Big-Idea-Technology",
"title": "ComfyUI-Book-Tools Nodes for ComfyUI",
@@ -8764,7 +8765,7 @@
"description": "You can use memeplex and DALL-E thru ComfyUI. You need API keys."
},
{
"author": "if-ai",
"author": "impactframes",
"title": "ComfyUI-IF_AI_tools",
"id": "if-ai-tools",
"reference": "https://github.com/if-ai/ComfyUI-IF_AI_tools",
@@ -8775,7 +8776,7 @@
"description": "Various AI tools to use in Comfy UI. Starting with VL and prompt making tools using Ollma as backend will evolve as I find time."
},
{
"author": "if-ai",
"author": "impactframes",
"title": "ComfyUI-IF_AI_WishperSpeechNode",
"id": "if-ai-whisper-speech",
"reference": "https://github.com/if-ai/ComfyUI-IF_AI_WishperSpeechNode",
@@ -8786,7 +8787,7 @@
"description": "This repository hosts a Text-to-Speech (TTS) application that leverages Whisper Speech for voice synthesis, allowing users to train a voice model on-the-fly. It is built on ComfyUI and supports rapid training and inference processes."
},
{
"author": "if-ai",
"author": "impactframes",
"title": "ComfyUI-IF_AI_HFDownloaderNode",
"id": "if-ai-hfdownloader",
"reference": "https://github.com/if-ai/ComfyUI-IF_AI_HFDownloaderNode",
@@ -8797,24 +8798,34 @@
"description": "Talking avatars Heads for the IF_AI tools integrates dreamtalk in ComfyUI"
},
{
"author": "if-ai",
"author": "impactframes",
"title": "ComfyUI-IF_MemoAvatar",
"reference": "https://github.com/if-ai/ComfyUI-IF_MemoAvatar",
"files": [
"https://github.com/if-ai/ComfyUI-IF_MemoAvatar"
],
"install_type": "git-clone",
"description": "ComfyUI MemoAvatar is a talking head avatar generator using Memory-Guided Diffusion for Expressive Talking Video Generation"
"description": "Talking avatars MemoAvatar Memory-Guided Diffusion for Expressive Talking Video Generation"
},
{
"author": "if-ai",
"author": "impactframes",
"title": "ComfyUI-IF_Trellis",
"reference": "https://github.com/if-ai/ComfyUI-IF_Trellis",
"files": [
"https://github.com/if-ai/ComfyUI-IF_Trellis"
],
"install_type": "git-clone",
"description": "ComfyUI TRELLIS is a large 3D asset generation in various formats, such as Radiance Fields, 3D Gaussians, and meshes. The cornerstone of TRELLIS is a unified Structured LATent (SLAT) representation that allows decoding to different output formats and Rectified Flow Transformers tailored for SLAT as the powerful backbones."
"description": "ComfyUI IF Trellis creates a 3d mesh from a single view or multi angle pictures"
},
{
"author": "impactframes",
"title": "IF_DatasetMkr",
"reference": "https://github.com/if-ai/ComfyUI-IF_DatasetMkr",
"files": [
"https://github.com/if-ai/ComfyUI-IF_DatasetMkr"
],
"install_type": "git-clone",
"description": "Create Video datasets straight from YT or a video file path"
},
{
"author": "dmMaze",
@@ -9311,6 +9322,16 @@
"install_type": "git-clone",
"description": "A ComfyUI node that utilizes Moviepy to convert and send your images or videos to a webhook endpoint directly from ComfyUI."
},
{
"author": "KytraScript",
"title": "ComfyUI_MatAnyone_Kytra",
"reference": "https://github.com/KytraScript/ComfyUI_MatAnyone_Kytra",
"files": [
"https://github.com/KytraScript/ComfyUI_MatAnyone_Kytra"
],
"install_type": "git-clone",
"description": "This is a ComfyUI node for [a/MatAnyone](https://github.com/pq-yang/MatAnyone), a state-of-the-art video matting model that can remove backgrounds from videos using just a single mask for the first frame for enhanced/guided video matting."
},
{
"author": "1mckw",
"title": "Comfyui-Gelbooru",
@@ -10276,7 +10297,7 @@
"https://github.com/smthemex/ComfyUI_EchoMimic"
],
"install_type": "git-clone",
"description": "You can using [a/EchoMimic](https://github.com/BadToBest/EchoMimic/tree/main) in comfyui,whitch Lifelike Audio-Driven Portrait Animations through Editable Landmark Conditioning "
"description": "You can using EchoMimic in comfyui,please using pip install install miss module"
},
{
"author": "smthemex",
@@ -10473,7 +10494,7 @@
"https://github.com/smthemex/ComfyUI_Sapiens"
],
"install_type": "git-clone",
"description": "You can call Using Sapiens to get seg,normal,pose,depth,mask maps. Sapiens From: [a/facebookresearch/sapiens](https://github.com/facebookresearch/sapiens)"
"description": "You can call Using Sapiens to get segnormalposedepthmask."
},
{
"author": "smthemex",
@@ -10625,6 +10646,16 @@
"install_type": "git-clone",
"description": "PhotoDoodle: Learning Artistic Image Editing from Few-Shot Pairwise Datayou can use it in comfyUI"
},
{
"author": "smthemex",
"title": "ComfyUI_KV_Edit",
"reference": "https://github.com/smthemex/ComfyUI_KV_Edit",
"files": [
"https://github.com/smthemex/ComfyUI_KV_Edit"
],
"install_type": "git-clone",
"description": "KV-Edit: Training-Free Image Editing for Precise Background Preservation,you can use it in comfyUI"
},
{
"author": "choey",
"title": "Comfy-Topaz",
@@ -11427,7 +11458,7 @@
"id": "Comfyui-LoopLoader",
"reference": "https://github.com/alessandrozonta/Comfyui-LoopLoader",
"files": [
"hhttps://github.com/alessandrozonta/Comfyui-LoopLoader"
"https://github.com/alessandrozonta/Comfyui-LoopLoader"
],
"install_type": "git-clone",
"description": "A ComfyUI custom node for loading images sequentially from a directory. Loops back to the first image when reaching the end"
@@ -13711,7 +13742,7 @@
"description": "Remove content inside 'think' tag from reasoning llm"
},
{
"author": "amorano",
"author": "cozy_comm",
"title": "Cozy Communication",
"id": "cozy_comm",
"reference": "https://github.com/cozy-comfyui/cozy_comm",
@@ -14183,6 +14214,16 @@
"install_type": "git-clone",
"description": "The ComfyUI-Visionatrix nodes are designed for convenient ComfyUI to [a/Visionatrix](https://github.com/Visionatrix/Visionatrix) workflow support migration, in particular to extract prompt input params (input, textarea, checkbox, select, range, file) to be used in simplified Visionatrix UI."
},
{
"author": "Visionatrix",
"title": "ComfyUI-RemoteVAE",
"reference": "https://github.com/Visionatrix/ComfyUI-RemoteVAE",
"files": [
"https://github.com/Visionatrix/ComfyUI-RemoteVAE"
],
"install_type": "git-clone",
"description": "ComfyUI Nodes for Remote VAE Decoding."
},
{
"author": "liangt",
"title": "comfyui-loadimagewithsubfolder",
@@ -14464,7 +14505,17 @@
"https://github.com/GeekyGhost/ComfyUI-GeekyRemB"
],
"install_type": "git-clone",
"description": "GeekyRemB is a powerful and versatile image processing node for ComfyUI, designed to remove backgrounds from images with advanced customization options. This node leverages the rembg library and offers a wide range of features for fine-tuning the background removal process and enhancing the resulting images."
"description": "GeekyRemB is a powerful suite of image processing nodes for ComfyUI, offering advanced background removal, animation, lighting effects, and keyframe-based positioning. Built on the rembg library with additional capabilities for chroma keying, mask refinement, realistic lighting, shadow generation, and dynamic animations."
},
{
"author": "GeekyGhost",
"title": "ComfyUI-Geeky-Kokoro-TTS",
"reference": "https://github.com/GeekyGhost/ComfyUI-Geeky-Kokoro-TTS",
"files": [
"https://github.com/GeekyGhost/ComfyUI-Geeky-Kokoro-TTS"
],
"install_type": "git-clone",
"description": "A powerful and feature-rich custom node collection for ComfyUI that integrates the Kokoro TTS (Text-to-Speech) system with advanced voice modification capabilities. This package allows you to generate natural-sounding speech and apply various voice effects within ComfyUI workflows."
},
{
"author": "Dobidop",
@@ -14608,6 +14659,36 @@
"install_type": "git-clone",
"description": "The attention mask in the T5 part of flux and SD3 utilizes the text-side attention mask to make the model focus more on text embeddings during image generation, thereby enhancing semantic alignment with the text."
},
{
"author": "leeguandong",
"title": "ComfyUI_Cogview4",
"reference": "https://github.com/leeguandong/ComfyUI_Cogview4",
"files": [
"https://github.com/leeguandong/ComfyUI_Cogview4"
],
"install_type": "git-clone",
"description": "The latest DIT architecture-based image generation model from Zhipu that supports Chinese text generation."
},
{
"author": "leeguandong",
"title": "ComfyUI_1Prompt1Story",
"reference": "https://github.com/leeguandong/ComfyUI_1Prompt1Story",
"files": [
"https://github.com/leeguandong/ComfyUI_1Prompt1Story"
],
"install_type": "git-clone",
"description": "ComfyUI nodes to use [a/1Prompt1Story](https://github.com/byliutao/1Prompt1Story)"
},
{
"author": "leeguandong",
"title": "ComfyUI_ChatGen",
"reference": "https://github.com/leeguandong/ComfyUI_ChatGen",
"files": [
"https://github.com/leeguandong/ComfyUI_ChatGen"
],
"install_type": "git-clone",
"description": "ComfyUI nodes to use [a/ChatGen](https://github.com/chengyou-jia/ChatGen)"
},
{
"author": "lenskikh",
"title": "Propmt Worker",
@@ -15054,6 +15135,26 @@
"install_type": "git-clone",
"description": "The Flux Prompt Saver is set of simple nodes for saving images generated with Flux with A1111-style metadata."
},
{
"author": "markuryy",
"title": "Super Loader",
"reference": "https://github.com/markuryy/ComfyUI-SuperLoader",
"files": [
"https://github.com/markuryy/ComfyUI-SuperLoader"
],
"install_type": "git-clone",
"description": "Metadata for loaded models"
},
{
"author": "markuryy",
"title": "Video XY Plot",
"reference": "https://github.com/markuryy/ComfyUI-Simple-Video-XY-Plot",
"files": [
"https://github.com/markuryy/ComfyUI-Simple-Video-XY-Plot"
],
"install_type": "git-clone",
"description": "A collection of custom nodes for ComfyUI"
},
{
"author": "eesahe",
"title": "ComfyUI-eesahesNodes",
@@ -15292,13 +15393,13 @@
},
{
"author": "niknah",
"title": "ComfyUI-F5-TTS",
"title": "ComfyUI F5-TTS",
"reference": "https://github.com/niknah/ComfyUI-F5-TTS",
"files": [
"https://github.com/niknah/ComfyUI-F5-TTS"
],
"install_type": "git-clone",
"description": "ComfyUI node for to make text to speech audio using F5-TTS [a/https://github.com/SWivid/F5-TTS](https://github.com/SWivid/F5-TTS)"
"description": "Text to speech with F5-TTS"
},
{
"author": "niknah",
@@ -15979,6 +16080,17 @@
"install_type": "git-clone",
"description": "Detect human parts using the DeepLabV3+ ResNet50 model from Keras-io. You can extract hair, arms, legs, and other parts with ease and with small memory usage."
},
{
"author": "Metal3d",
"title": "M3D photo effects",
"id": "ComfyUI_M3D_photo_effects",
"reference": "https://github.com/metal3d/ComfyUI_M3D_photo_effects",
"files": [
"https://github.com/metal3d/ComfyUI_M3D_photo_effects"
],
"install_type": "git-clone",
"description": "A set of photo effects for ComfyUI, for the moment, only Bleach Bypass effect is provided, but more to come!"
},
{
"author": "Fuwuffy",
"title": "ComfyUI-VisualArea-Nodes",
@@ -15992,7 +16104,7 @@
},
{
"author": "Cyber-BCat",
"title": "ComfyUI_Auto_Caption",
"title": "Cyber-BlackCat",
"reference": "https://github.com/Cyber-BCat/ComfyUI_Auto_Caption",
"files": [
"https://github.com/Cyber-BCat/ComfyUI_Auto_Caption"
@@ -16667,16 +16779,6 @@
"install_type": "git-clone",
"description": "Nodes to interact with the mrv2 player"
},
{
"author": "JichaoLiang",
"title": "Immortal_comfyUI",
"reference": "https://github.com/JichaoLiang/Immortal_comfyUI",
"files": [
"https://github.com/JichaoLiang/Immortal_comfyUI"
],
"install_type": "git-clone",
"description": "NODES:ImNewNode, ImAppendNode, MergeNode, SetProperties, SaveToDirectory, batchNodes, redirectToNode, SetEvent, ..."
},
{
"author": "SSsnap",
"title": "Snap Processing for Comfyui",
@@ -16697,6 +16799,16 @@
"install_type": "git-clone",
"description": "Through this node, you can more easily test the impact of different blocks in flux_lora on the final result."
},
{
"author": "SSsnap",
"title": "ComfyUI-Ad_scheduler",
"reference": "https://github.com/SS-snap/ComfyUI-Ad_scheduler",
"files": [
"https://github.com/SS-snap/ComfyUI-Ad_scheduler"
],
"install_type": "git-clone",
"description": "This node is used to enhance image details. We can add a latent space image and introduce any amount of noise. Then, we can start denoising at any timestep. This allows us to add more details to the image while maintaining overall consistency as much as possible."
},
{
"author": "RiceRound",
"title": "ComfyUI Compression and Encryption Node",
@@ -16813,16 +16925,6 @@
"install_type": "git-clone",
"description": "This is a node to convert workflows to cyuai api available nodes."
},
{
"author": "l1yongch1",
"title": "ComfyUI_PhiCaption",
"reference": "https://github.com/l1yongch1/ComfyUI_PhiCaption",
"files": [
"https://github.com/l1yongch1/ComfyUI_PhiCaption"
],
"install_type": "git-clone",
"description": "In addition to achieving conventional single-image, single-round reverse engineering, it can also achieve single-image multi-round and multi-image single-round reverse engineering. Moreover, the Phi model has a better understanding of prompts."
},
{
"author": "tkreuziger",
"title": "ComfyUI and Claude",
@@ -17056,7 +17158,7 @@
"https://github.com/kk8bit/KayTool"
],
"install_type": "git-clone",
"description": "This is a versatile and ever-expanding toolkit for ComfyUI, offering powerful node functionalities such as “Custom Save Image,” “Professional Color Adjustment,” and “Prompt Enhancer.” Its features include precise image saving with support for ICC color profiles (sRGB/Adobe RGB), metadata embedding, advanced image adjustments (exposure, contrast, color temperature, hue, saturation), professional filter previews, dynamic prompt editing, and high-quality Baidu AI translation."
"description": "KayTool nodes is designed to enhance the efficiency of building ComfyUI workflows. It includes a variety of practical nodes: support for efficient models like BiRefNet and RemBG for background removal and mask post-processing, wireless data transfer (Set & Get ), AI translation (Tencent and Baidu), dynamic mathematical operations, image processing (size extraction, color adjustment, background removal, mask blurring and expansion), flexible text handling, precision sliders, advanced image saving with metadata support, and more."
},
{
"author": "sousakujikken",
@@ -17401,6 +17503,16 @@
"install_type": "git-clone",
"description": "Just like when your pizza is ready and the oven goes 'Ding! 🍕', this plugin lets your ComfyUI notify you when your AI creations are done baking!\nA ComfyUI custom node that sends you a friendly 'ding-dong' notification when your workflows are fully cooked and ready to serve. No more staring at the screen waiting - let the AI kitchen tell you when dinner's ready! 👨‍🍳"
},
{
"author": "lgldlk",
"title": "ComfyUI-PSD-Replace",
"reference": "https://github.com/lgldlk/ComfyUI-PSD-Replace",
"files": [
"https://github.com/lgldlk/ComfyUI-PSD-Replace"
],
"install_type": "git-clone",
"description": "One click replacement of smart objects or layers in PSD"
},
{
"author": "raspie10032",
"title": "ComfyUI NAI Prompt Converter",
@@ -18338,13 +18450,13 @@
{
"author": "lightricks",
"title": "ComfyUI-LTXVideo",
"id": "ltxv",
"id": "comfyui-ltxvideo",
"reference": "https://github.com/Lightricks/ComfyUI-LTXVideo",
"files": [
"https://github.com/Lightricks/ComfyUI-LTXVideo"
],
"install_type": "git-clone",
"description": "ComfyUI nodes for LTXVideo model."
"description": "Custom nodes for LTX-Video support in ComfyUI"
},
{
"author": "Kai Duehrkop",
@@ -18501,6 +18613,16 @@
"install_type": "git-clone",
"description": "ComfyUI nodes for PhotoDoodle model."
},
{
"author": "Yuan-ManX",
"title": "ComfyUI-StyleStudio",
"reference": "https://github.com/Yuan-ManX/ComfyUI-StyleStudio",
"files": [
"https://github.com/Yuan-ManX/ComfyUI-StyleStudio"
],
"install_type": "git-clone",
"description": "ComfyUI nodes for StyleStudio model."
},
{
"author": "Starnodes2024",
"title": "ComfyUI_StarNodes",
@@ -19127,7 +19249,7 @@
},
{
"author": "kazeyori",
"title": "Quick Image Sequence Process",
"title": "ComfyUI-QuickImageSequenceProcess",
"reference": "https://github.com/kazeyori/ComfyUI-QuickImageSequenceProcess",
"files": [
"https://github.com/kazeyori/ComfyUI-QuickImageSequenceProcess"
@@ -19167,6 +19289,16 @@
"install_type": "git-clone",
"description": "A collection of specialized image processing nodes for ComfyUI, focused on dataset preparation and pixel art manipulation."
},
{
"author": "marcoc2",
"title": "ComfyUI-Cog",
"reference": "https://github.com/marcoc2/ComfyUI_CogView4-6B_diffusers",
"files": [
"https://github.com/marcoc2/ComfyUI_CogView4-6B_diffusers"
],
"install_type": "git-clone",
"description": "This is a custom node aiming to run CogView4 on diffusers while there is no official implementation on ComfyUI.\nNOTE: You will need a updated version of diffusers and I don't know if updating it my break other stuff, so I advise you to make in a new instance of ComfyUI"
},
{
"author": "BIMer-99",
"title": "ComfyUI_FishSpeech_EX",
@@ -19658,6 +19790,16 @@
"install_type": "git-clone",
"description": "ComfyUI_NTCosyVoice is a plugin of ComfyUI for Cosysvoice2"
},
{
"author": "muxueChen",
"title": "ComfyUI-NTQwen25-VL",
"reference": "https://github.com/muxueChen/ComfyUI-NTQwen25-VL",
"files": [
"https://github.com/muxueChen/ComfyUI-NTQwen25-VL"
],
"install_type": "git-clone",
"description": "Qwen25-VL is a plugin for ComfyU"
},
{
"author": "inventorado",
"title": "ComfyUI Neural Network Toolkit NNT ",
@@ -19719,6 +19861,16 @@
"install_type": "git-clone",
"description": "A Text To Speech node using Step-Audio-TTS in ComfyUI. Can speak, rap, sing, or clone voice."
},
{
"author": "billwuhao",
"title": "ComfyUI_KokoroTTS_MW",
"reference": "https://github.com/billwuhao/ComfyUI_KokoroTTS_MW",
"files": [
"https://github.com/billwuhao/ComfyUI_KokoroTTS_MW"
],
"install_type": "git-clone",
"description": "A Text To Speech node using Kokoro TTS in ComfyUI. Supports 8 languages and 150 voices"
},
{
"author": "pandaer119",
"title": "ComfyUI_pandai",
@@ -20482,16 +20634,6 @@
"install_type": "git-clone",
"description": "This node enables integration between ComfyUI and external services by adding callback capabilities to the image saving process. When an image is saved, the node automatically call your webhook with your specified URL with custom data."
},
{
"author": "GoingAI1998",
"title": "ComfyUI Web Canvas Node",
"reference": "https://github.com/GoingAI1998/Comfyui_imgcanvas",
"files": [
"https://github.com/GoingAI1998/Comfyui_imgcanvas"
],
"install_type": "git-clone",
"description": "ComfyUI_imgcanvas At present, I have not used the useful comfyui custom node about layer mixing, and I have written a comfyui runtime automatic pop-up window for layer editing node"
},
{
"author": "fblissjr",
"title": "ComfyUI-EmbeddingPipelineAnalytics",
@@ -21194,7 +21336,7 @@
"https://github.com/MieMieeeee/ComfyUI-CaptionThis"
],
"install_type": "git-clone",
"description": "Describe a single image or all images in a directory using models such as Janus Pro, Florence2 (coming soon), or JoyCaption (coming soon), with a particular focus on building datasets for training LoRA."
"description": "Describe a single image or all images in a directory using models such as Janus Pro, Florence2, or JoyCaption (testing), with a particular focus on building datasets for training LoRA."
},
{
"author": "lum3on",
@@ -21227,6 +21369,16 @@
"install_type": "git-clone",
"description": "Data analysis custom modules for ComfyUI - Use Pandas & Matplotlib from within ComfyUI"
},
{
"author": "HowToSD",
"title": "ComfyUI-Pt-Wrapper",
"reference": "https://github.com/HowToSD/ComfyUI-Pt-Wrapper",
"files": [
"https://github.com/HowToSD/ComfyUI-Pt-Wrapper"
],
"install_type": "git-clone",
"description": "PyTorch extension for ComfyUI featuring extensive PyTorch wrapper nodes for seamless tensor operations and PyTorch model training."
},
{
"author": "dasilva333",
"title": "ComfyUI_ContrastingColor",
@@ -21575,14 +21727,14 @@
},
{
"author": "SirWillance",
"title": "Force of Will Suite Light",
"title": "FoW - Light",
"id": "fow-suite-light",
"reference": "https://github.com/SirWillance/FoW_Suite_LIGHT",
"files": [
"https://github.com/SirWillance/FoW_Suite_LIGHT"
],
"install_type": "git-clone",
"description": "Beginner-friendly nodes for prompt refinement in ComfyUI, including custom nodes for weighting, splitting, combining, catalogues, and the PromptRefiner for a simple prompt interface. For more info, join me on https://www.twitch.tv/sirwillance. Be one of the first 50 followers to get a FREE upgrade to the Standard Tier!"
"description": "A Beginner-friendly Node Suite for prompt refinement in ComfyUI, including custom nodes for weighting, splitting, combining, catalogues, and the PromptRefiner for a simple prompt interface. For more info, join me on https://www.twitch.tv/sirwillance. Be one of the first 50 followers to get a FREE upgrade to the Standard Tier!"
},
{
"author": "KAVVATARE",
@@ -21644,6 +21796,16 @@
"install_type": "git-clone",
"description": "Adaptation of Fooocus Prompt Expansion for ComfyUI\nForked from [a/ComfyUI-Prompt-Expansion](https://github.com/meap158/ComfyUI-Prompt-Expansion) with some updates and changes based on original Fooocus, to be more specific [a/expansion.py](https://github.com/lllyasviel/Fooocus/blob/main/extras/expansion.py) and [a/LykosAI - GPT-Prompt-Expansion-Fooocus-v2](https://huggingface.co/LykosAI/GPT-Prompt-Expansion-Fooocus-v2)"
},
{
"author": "panic-titan",
"title": "ComfyUI-Gallery",
"reference": "https://github.com/PanicTitan/ComfyUI-Gallery",
"files": [
"https://github.com/PanicTitan/ComfyUI-Gallery"
],
"install_type": "git-clone",
"description": "Real-time Output Gallery for ComfyUI with image metadata inspection."
},
{
"author": "maximclouser",
"title": "ComfyUI-InferenceTimeScaling",
@@ -21777,16 +21939,6 @@
"install_type": "git-clone",
"description": "A collection of useful nodes for ComfyUI that provide various workflow enhancements."
},
{
"author": "Samulebotin",
"title": "ComfyUI-FreeVC_wrapper",
"reference": "https://github.com/Samulebotin/ComfyUI-FreeVC_wrapper",
"files": [
"https://github.com/Samulebotin/ComfyUI-FreeVC_wrapper"
],
"install_type": "git-clone",
"description": "A voice conversion extension node for ComfyUI based on FreeVC, enabling high-quality voice conversion capabilities within the ComfyUI framework."
},
{
"author": "justin-vt",
"title": "ComfyUI-brushstrokes",
@@ -21797,6 +21949,327 @@
"install_type": "git-clone",
"description": "A ComfyUI node that applies painterly/brush-stroke effects to images, using either ImageMagick (Wand) or G'MIC (gmic-py) under the hood."
},
{
"author": "pxl-pshr",
"title": "GlitchNodes",
"reference": "https://github.com/pxl-pshr/GlitchNodes",
"files": [
"https://github.com/pxl-pshr/GlitchNodes"
],
"install_type": "git-clone",
"description": "GlitchNodes is a collection of image processing nodes designed for ComfyUI that specializes in creating glitch art and retro effects."
},
{
"author": "S4MUEL-404",
"title": "Image Position Blend",
"id": "ComfyUI-Image-Position-Blend",
"version": "1.1",
"reference": "https://github.com/S4MUEL-404/ComfyUI-Image-Position-Blend",
"files": [
"https://github.com/S4MUEL-404/ComfyUI-Image-Position-Blend"
],
"install_type": "git-clone",
"description": "A custom node for conveniently adjusting the overlay position of two images."
},
{
"author": "S4MUEL-404",
"title": "ComfyUI-Text-On-Image",
"id": "ComfyUI-Text-On-Image",
"reference": "https://github.com/S4MUEL-404/ComfyUI-Text-On-Image",
"files": [
"https://github.com/S4MUEL-404/ComfyUI-Text-On-Image"
],
"install_type": "git-clone",
"description": "A custom node for ComfyUI that allows users to add text overlays to images with customizable size, font, position, and shadow."
},
{
"author": "S4MUEL-404",
"title": "ComfyUI-Prompts-Selector",
"reference": "https://github.com/S4MUEL-404/ComfyUI-Prompts-Selector",
"files": [
"https://github.com/S4MUEL-404/ComfyUI-Prompts-Selector"
],
"install_type": "git-clone",
"description": "Quickly select preset prompts and merge them"
},
{
"author": "S4MUEL-404",
"title": "ComfyUI-S4Tool-Image-Overlay",
"reference": "https://github.com/S4MUEL-404/ComfyUI-S4Tool-Image-Overlay",
"files": [
"https://github.com/S4MUEL-404/ComfyUI-S4Tool-Image-Overlay"
],
"install_type": "git-clone",
"description": "Quickly set up image overlay effects"
},
{
"author": "ZYK-AI",
"title": "ComfyUI-YK Line loading",
"id": "ComfyUI-YK_Line loading",
"reference": "https://github.com/sittere/ComfyUI-YK_Line-loading",
"files": [
"https://github.com/sittere/ComfyUI-YK_Line-loading"
],
"install_type": "git-clone",
"description": "Plugin that implements world automatic typesetting and outputs only one paragraph of text"
},
{
"author": "Jerome Bacquet",
"title": "ComfyUI XenoFlow",
"id": "XenoFlow",
"reference": "https://github.com/jerome7562/ComfyUI-XenoFlow",
"files": [
"https://github.com/jerome7562/ComfyUI-XenoFlow"
],
"install_type": "git-clone",
"description": "Implementation of Instance nodes, Replicate nodes, and standard Save UI to improve the workflow into ComfyUI."
},
{
"author": "chenpipi0807",
"title": "PIP Artistic Words for ComfyUI",
"reference": "https://github.com/chenpipi0807/PIP_ArtisticWords",
"files": [
"https://github.com/chenpipi0807/PIP_ArtisticWords"
],
"install_type": "git-clone",
"description": "A powerful ComfyUI extension node that allows you to add various exquisite artistic text effects to your images, supporting a wide range of text styles and effects."
},
{
"author": "ifmylove2011",
"title": "comfyui-missing-tool",
"reference": "https://github.com/ifmylove2011/comfyui-missing-tool",
"files": [
"https://github.com/ifmylove2011/comfyui-missing-tool"
],
"install_type": "git-clone",
"description": "NODES: TrimBG, TrimBG Advanced, Image Queue Loader, Load Image Alpha.\nA few tools for ComfyUI, perhaps it's exactly what you need."
},
{
"author": "illuminatianon",
"title": "CSV Wildcard Node for ComfyUI",
"reference": "https://github.com/illuminatianon/comfyui-csvwildcards",
"files": [
"https://github.com/illuminatianon/comfyui-csvwildcards"
],
"install_type": "git-clone",
"description": "A ComfyUI custom node that provides dynamic text substitution using wildcards and CSV files. Perfect for creating varied prompts with consistent relationships between terms."
},
{
"author": "finegrain",
"title": "comfyui-finegrain",
"reference": "https://github.com/finegrain-ai/comfyui-finegrain",
"files": [
"https://github.com/finegrain-ai/comfyui-finegrain"
],
"install_type": "git-clone",
"description": "ComfyUI custom nodes to interact with the Finegrain API."
},
{
"author": "Diohim",
"title": "ComfyUI Unusual Tools",
"reference": "https://github.com/Diohim/ComfyUI-Unusual-Tools",
"files": [
"https://github.com/Diohim/ComfyUI-Unusual-Tools"
],
"install_type": "git-clone",
"description": "A collection of unusual but useful image processing nodes for ComfyUI."
},
{
"author": "penposs",
"title": "ComfyUI Gemini Pro Node",
"reference": "https://github.com/penposs/ComfyUI_Gemini_Pro",
"files": [
"https://github.com/penposs/ComfyUI_Gemini_Pro"
],
"install_type": "git-clone",
"description": "This is a Google Gemini Pro API integration node for ComfyUI, supporting text, image, video, and audio inputs."
},
{
"author": "cardenluo",
"title": "ComfyUI-Apt_Preset",
"reference": "https://github.com/cardenluo/ComfyUI-Apt_Preset",
"files": [
"https://github.com/cardenluo/ComfyUI-Apt_Preset"
],
"install_type": "git-clone",
"description": "ComfyUI-Apt_Preset is a node package designed to simplify workflows"
},
{
"author": "Holasyb918",
"title": "Ghost2_Comfyui",
"reference": "https://github.com/Holasyb918/Ghost2_Comfyui",
"files": [
"https://github.com/Holasyb918/Ghost2_Comfyui"
],
"install_type": "git-clone",
"description": "ComfyUI adaptation of [a/GHOST 2.0](https://github.com/ai-forever/ghost-2.0)."
},
{
"author": "mit-han-lab",
"title": "ComfyUI-nunchaku",
"reference": "https://github.com/mit-han-lab/ComfyUI-nunchaku",
"files": [
"https://github.com/mit-han-lab/ComfyUI-nunchaku"
],
"install_type": "git-clone",
"description": "Nunchaku ComfyUI Node. Nunchaku is the inference that supports SVDQuant. SVDQuant is a new post-training training quantization paradigm for diffusion models, which quantize both the weights and activations of FLUX.1 to 4 bits, achieving 3.5× memory and 8.7× latency reduction on a 16GB laptop 4090 GPU. See more details: https://github.com/mit-han-lab/nunchaku"
},
{
"author": "billwuhao",
"title": "ComfyUI_DiffRhythm",
"reference": "https://github.com/billwuhao/ComfyUI_DiffRhythm",
"files": [
"https://github.com/billwuhao/ComfyUI_DiffRhythm"
],
"install_type": "git-clone",
"description": "Blazingly Fast and Embarrassingly Simple End-to-End Full-Length Song Generation. A node for ComfyUI."
},
{
"author": "Nikosis",
"title": "ComfyUI-Nikosis-Nodes",
"reference": "https://github.com/Nikosis/ComfyUI-Nikosis-Nodes",
"files": [
"https://github.com/Nikosis/ComfyUI-Nikosis-Nodes"
],
"install_type": "git-clone",
"description": "Nodes: Aspect Ratio, Prompt Multiple Styles Selector, Text Concatenate"
},
{
"author": "vadimcro",
"title": "VKriez Edge Preprocessors for ComfyUI",
"reference": "https://github.com/vadimcro/VKRiez-Edge",
"files": [
"https://github.com/vadimcro/VKRiez-Edge"
],
"install_type": "git-clone",
"description": "A collection of advanced edge detection nodes for ComfyUI that generate high-quality edge maps for ControlNet guidance. Currently based on CPU computation, so might be a tid-bit on a slow side. If anyone is willing to refactor the code to GPU computation - Kudos!"
},
{
"author": "Duanyll",
"title": "Duanyll Nodepack",
"reference": "https://github.com/Duanyll/duanyll_nodepack",
"files": [
"https://github.com/Duanyll/duanyll_nodepack"
],
"install_type": "git-clone",
"description": "A collection of custom nodes for ComfyUI"
},
{
"author": "irreveloper",
"title": "ComfyUI-DSD",
"reference": "https://github.com/irreveloper/ComfyUI-DSD",
"files": [
"https://github.com/irreveloper/ComfyUI-DSD"
],
"install_type": "git-clone",
"description": "An Unofficial ComfyUI custom node package that integrates [a/Diffusion Self-Distillation (DSD)](https://github.com/primecai/diffusion-self-distillation) for zero-shot customized image generation.\nDSD is a model for subject-preserving image generation that allows you to create images of a specific subject in novel contexts without per-instance tuning."
},
{
"author": "HannibalP",
"title": "comfyui-HannibalPack",
"reference": "https://github.com/HannibalP/comfyui-HannibalPack",
"files": [
"https://github.com/HannibalP/comfyui-HannibalPack"
],
"install_type": "git-clone",
"description": "This node improves the merging of LoRA for movements and physical resemblance when adding multiple LoRA to a model."
},
{
"author": "xingBaGan",
"title": "ComfyUI-connect-ui",
"reference": "https://github.com/xingBaGan/ComfyUI-connect-ui",
"files": [
"https://github.com/xingBaGan/ComfyUI-connect-ui"
],
"install_type": "git-clone",
"description": "Real-time image transfer between client and server Base64 image encoding/decoding support Supports PNG image format Includes a floating preview window for received images Preview window has minimize/maximize functionality"
},
{
"author": "iDAPPA",
"title": "AMD GPU Monitor for ComfyUI",
"reference": "https://github.com/iDAPPA/ComfyUI-AMDGPUMonitor",
"files": [
"https://github.com/iDAPPA/ComfyUI-AMDGPUMonitor"
],
"install_type": "git-clone",
"description": "A simple, lightweight AMD GPU monitoring tool for ComfyUI that displays real-time information about your AMD GPU directly in the UI."
},
{
"author": "roundyyy",
"title": "Mesh Simplifier for ComfyUI",
"reference": "https://github.com/roundyyy/ComfyUI-mesh-simplifier",
"files": [
"https://github.com/roundyyy/ComfyUI-mesh-simplifier"
],
"install_type": "git-clone",
"description": "A custom node for ComfyUI that implements mesh simplification with texture preservation using PyMeshLab. This node allows you to reduce the complexity of 3D meshes while preserving visual quality, and is compatible with ComfyUI-3D-Pack's mesh format."
},
{
"author": "notagen-mw",
"title": "ComfyUI_NotaGen",
"reference": "https://github.com/billwuhao/ComfyUI_NotaGen",
"files": [
"https://github.com/billwuhao/ComfyUI_NotaGen"
],
"install_type": "git-clone",
"description": "Symbolic Music Generation, NotaGen node for ComfyUI."
},
{
"author": "orssorbit",
"title": "ComfyUI-wanBlockswap",
"reference": "https://github.com/orssorbit/ComfyUI-wanBlockswap",
"files": [
"https://github.com/orssorbit/ComfyUI-wanBlockswap"
],
"install_type": "git-clone",
"description": "This is a simple Wan block swap node for ComfyUI native nodes, works by swapping upto 40 blocks to the CPU to reduce VRAM."
},
{
"author": "joreyaesh",
"title": "ComfyUI Scroll Over Textarea",
"reference": "https://github.com/joreyaesh/comfyui_scroll_over_textarea",
"files": [
"https://github.com/joreyaesh/comfyui_scroll_over_textarea"
],
"install_type": "git-clone",
"description": "A ComfyUI extension to allow textarea elements to be scrolled over. Useful when using a trackpad in order to prevent accidental forward/back navigation (two fingers horizontally on a Mac) when scrolling around the UI."
},
{
"author": "ali-vilab",
"title": "ComfyUI-ACE_Plus",
"id": "ace_plus",
"reference": "https://github.com/ali-vilab/ACE_plus",
"files": [
"https://github.com/ali-vilab/ACE_plus"
],
"install_type": "git-clone",
"description": "Custom nodes for various visual generation and editing tasks using ACE_Plus FFT Model."
},

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,12 +1,15 @@
import requests
from dataclasses import dataclass
from typing import List
import manager_util
import toml
import os
import asyncio
import json
import os
import platform
import time
from dataclasses import dataclass
from typing import List
import manager_core
import manager_util
import requests
import toml
base_url = "https://api.comfy.org"
@@ -32,9 +35,43 @@ async def _get_cnr_data(cache_mode=True, dont_wait=True):
page = 1
full_nodes = {}
# Determine form factor based on environment and platform
is_desktop = bool(os.environ.get('__COMFYUI_DESKTOP_VERSION__'))
system = platform.system().lower()
is_windows = system == 'windows'
is_mac = system == 'darwin'
is_linux = system == 'linux'
# Get ComfyUI version tag
if is_desktop:
# extract version from pyproject.toml instead of git tag
comfyui_ver = manager_core.get_current_comfyui_ver() or 'unknown'
else:
comfyui_ver = manager_core.get_comfyui_tag() or 'unknown'
if is_desktop:
if is_windows:
form_factor = 'desktop-win'
elif is_mac:
form_factor = 'desktop-mac'
else:
form_factor = 'other'
else:
if is_windows:
form_factor = 'git-windows'
elif is_mac:
form_factor = 'git-mac'
elif is_linux:
form_factor = 'git-linux'
else:
form_factor = 'other'
while remained:
sub_uri = f'{base_url}/nodes?page={page}&limit=30'
sub_json_obj = await asyncio.wait_for(manager_util.get_data_with_cache(sub_uri, cache_mode=False, silent=True), timeout=30)
# Add comfyui_version and form_factor to the API request
sub_uri = f'{base_url}/nodes?page={page}&limit=30&comfyui_version={comfyui_ver}&form_factor={form_factor}'
sub_json_obj = await asyncio.wait_for(manager_util.get_data_with_cache(sub_uri, cache_mode=False, silent=True, dont_cache=True), timeout=30)
remained = page < sub_json_obj['totalPages']
for x in sub_json_obj['nodes']:

View File

@@ -23,6 +23,7 @@ import yaml
import zipfile
import traceback
from concurrent.futures import ThreadPoolExecutor, as_completed
import toml
orig_print = print
@@ -42,7 +43,7 @@ import manager_downloader
from node_package import InstalledNodePackage
version_code = [3, 28]
version_code = [3, 31]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
@@ -52,6 +53,11 @@ DEFAULT_CHANNEL = "https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/ma
default_custom_nodes_path = None
class InvalidChannel(Exception):
def __init__(self, channel):
self.channel = channel
super().__init__(channel)
def get_default_custom_nodes_path():
global default_custom_nodes_path
if default_custom_nodes_path is None:
@@ -74,13 +80,31 @@ def get_custom_nodes_paths():
def get_comfyui_tag():
repo = git.Repo(comfy_path)
try:
repo = git.Repo(comfy_path)
return repo.git.describe('--tags')
except:
return None
def get_current_comfyui_ver():
"""
Extract version from pyproject.toml
"""
toml_path = os.path.join(comfy_path, 'pyproject.toml')
if not os.path.exists(toml_path):
return None
else:
try:
with open(toml_path, "r", encoding="utf-8") as f:
data = toml.load(f)
project = data.get('project', {})
return project.get('version')
except:
return None
def get_script_env():
new_env = os.environ.copy()
git_exe = get_config().get('git_exe')
@@ -154,7 +178,7 @@ def check_invalid_nodes():
# read env vars
comfy_path = os.environ.get('COMFYUI_PATH')
comfy_path: str = os.environ.get('COMFYUI_PATH')
comfy_base_path = os.environ.get('COMFYUI_FOLDERS_BASE_PATH')
if comfy_path is None:
@@ -232,6 +256,7 @@ comfy_ui_revision = "Unknown"
comfy_ui_commit_datetime = datetime(1900, 1, 1, 0, 0, 0)
channel_dict = None
valid_channels = set()
channel_list = None
@@ -336,7 +361,7 @@ def normalize_channel(channel):
if channel_url:
return channel_url
raise Exception(f"Invalid channel name '{channel}'")
raise InvalidChannel(channel)
class ManagedResult:
@@ -751,6 +776,11 @@ class UnifiedManager:
print(f"[bold red]ERROR: Invalid mode is specified `--mode {mode}`[/bold red]", file=sys.stderr)
return {}
# validate channel - only the channel set by the user is allowed.
if channel_url not in valid_channels:
logging.error(f'[ComfyUI-Manager] An invalid channel was used: {channel_url}')
raise InvalidChannel(channel_url)
json_obj = await get_data_by_mode(mode, 'custom-node-list.json', channel_url=channel_url)
for x in json_obj['custom_nodes']:
try:
@@ -822,14 +852,14 @@ class UnifiedManager:
install_script_path = os.path.join(repo_path, "install.py")
requirements_path = os.path.join(repo_path, "requirements.txt")
res = True
if lazy_mode:
install_cmd = ["#LAZY-INSTALL-SCRIPT", sys.executable]
return try_install_script(url, repo_path, install_cmd)
else:
if os.path.exists(requirements_path) and not no_deps:
print("Install: pip packages")
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
res = True
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, manager_files_path)
lines = manager_util.robust_readlines(requirements_path)
for line in lines:
package_name = remap_pip_package(line.strip())
@@ -840,15 +870,14 @@ class UnifiedManager:
res = res and try_install_script(url, repo_path, install_cmd, instant_execution=instant_execution)
pip_fixer.fix_broken()
return res
if os.path.exists(install_script_path) and install_script_path not in self.processed_install:
self.processed_install.add(install_script_path)
print("Install: install script")
install_cmd = [sys.executable, "install.py"]
return try_install_script(url, repo_path, install_cmd, instant_execution=instant_execution)
return res and try_install_script(url, repo_path, install_cmd, instant_execution=instant_execution)
return True
return res
def reserve_cnr_switch(self, target, zip_url, from_path, to_path, no_deps):
script_path = os.path.join(manager_startup_script_path, "install-scripts.txt")
@@ -1396,7 +1425,11 @@ class UnifiedManager:
version_spec = self.resolve_unspecified_version(node_id)
if version_spec == 'unknown' or version_spec == 'nightly':
custom_nodes = await self.get_custom_nodes(channel, mode)
try:
custom_nodes = await self.get_custom_nodes(channel, mode)
except InvalidChannel as e:
return ManagedResult('fail').fail(f'Invalid channel is used: {e.channel}')
the_node = custom_nodes.get(node_id)
if the_node is not None:
if version_spec == 'unknown':
@@ -1454,28 +1487,6 @@ class UnifiedManager:
return res
async def migrate_unmanaged_nodes(self):
"""
fix path for nightly and unknown nodes of unmanaged nodes
"""
await self.reload('cache')
await self.get_custom_nodes('default', 'cache')
print("Migration: STAGE 1")
moves = []
# migrate nightly inactive
for x, v in self.nightly_inactive_nodes.items():
if v.endswith('@nightly'):
continue
new_path = os.path.join(get_default_custom_nodes_path(), '.disabled', f"{x}@nightly")
moves.append((v, new_path))
self.reserve_migration(moves)
print("DONE (Migration reserved)")
unified_manager = UnifiedManager()
@@ -1545,8 +1556,14 @@ def get_installed_node_packs():
return res
def refresh_channel_dict():
if channel_dict is None:
get_channel_dict()
def get_channel_dict():
global channel_dict
global valid_channels
if channel_dict is None:
channel_dict = {}
@@ -1560,6 +1577,7 @@ def get_channel_dict():
channel_info = x.split("::")
if len(channel_info) == 2:
channel_dict[channel_info[0]] = channel_info[1]
valid_channels.add(channel_info[1])
return channel_dict
@@ -1883,7 +1901,7 @@ def execute_install_script(url, repo_path, lazy_mode=False, instant_execution=Fa
else:
if os.path.exists(requirements_path) and not no_deps:
print("Install: pip packages")
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, manager_files_path)
with open(requirements_path, "r") as requirements_file:
for line in requirements_file:
#handle comments

View File

@@ -273,14 +273,23 @@ import zipfile
import urllib.request
def get_model_dir(data, show_log=False):
def get_model_dir(data, show_log=False) -> str | None:
if 'download_model_base' in folder_paths.folder_names_and_paths:
models_base = folder_paths.folder_names_and_paths['download_model_base'][0][0]
else:
models_base = folder_paths.models_dir
# NOTE: Validate to prevent path traversal.
if any(char in data['filename'] for char in {'/', '\\', ':'}):
return None
def resolve_custom_node(save_path):
save_path = save_path[13:] # remove 'custom_nodes/'
# NOTE: Validate to prevent path traversal.
if save_path.startswith(os.path.sep) or ':' in save_path:
return None
repo_name = save_path.replace('\\','/').split('/')[0] # get custom node repo name
# NOTE: The creation of files within the custom node path should be removed in the future.
@@ -399,7 +408,6 @@ async def task_worker():
try:
node_spec = core.unified_manager.resolve_node_spec(node_spec_str)
if node_spec is None:
logging.error(f"Cannot resolve install target: '{node_spec_str}'")
return f"Cannot resolve install target: '{node_spec_str}'"
@@ -929,6 +937,7 @@ def check_model_installed(json_obj):
@routes.get("/externalmodel/getlist")
async def fetch_externalmodel_list(request):
# The model list is only allowed in the default channel, yet.
json_obj = await core.get_data_by_mode(request.rel_url.query["mode"], 'model-list.json')
check_model_installed(json_obj)
@@ -1197,9 +1206,8 @@ async def install_custom_node(request):
git_url = None
if json_data['version'] != 'unknown':
selected_version = json_data.get('selected_version')
selected_version = json_data.get('selected_version')
if json_data['version'] != 'unknown' and selected_version != 'unknown':
if skip_post_install:
if cnr_id in core.unified_manager.nightly_inactive_nodes or cnr_id in core.unified_manager.cnr_inactive_nodes:
core.unified_manager.unified_enable(cnr_id)
@@ -1216,6 +1224,9 @@ async def install_custom_node(request):
if git_url is None:
logging.error(f"[ComfyUI-Manager] Following node pack doesn't provide `nightly` version: ${git_url}")
return web.Response(status=404, text=f"Following node pack doesn't provide `nightly` version: ${git_url}")
elif json_data['version'] != 'unknown' and selected_version == 'unknown':
logging.error(f"[ComfyUI-Manager] Invalid installation request: {json_data}")
return web.Response(status=400, text="Invalid installation request")
else:
# unknown
unknown_name = os.path.basename(json_data['files'][0])
@@ -1407,17 +1418,14 @@ async def disable_node(request):
return web.Response(status=200)
@routes.get("/manager/migrate_unmanaged_nodes")
async def migrate_unmanaged_nodes(request):
logging.info("[ComfyUI-Manager] Migrating unmanaged nodes...")
await core.unified_manager.migrate_unmanaged_nodes()
logging.info("Done.")
return web.Response(status=200)
async def check_whitelist_for_model(item):
json_obj = await core.get_data_by_mode('cache', 'model-list.json')
@routes.get("/manager/need_to_migrate")
async def need_to_migrate(request):
return web.Response(text=str(core.need_to_migrate), status=200)
for x in json_obj.get('models', []):
if x['save_path'] == item['save_path'] and x['base'] == item['base'] and x['filename'] == item['filename']:
return True
return False
@routes.post("/manager/queue/install_model")
@@ -1428,6 +1436,11 @@ async def install_model(request):
logging.error(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
return web.Response(status=403, text="A security error has occurred. Please check the terminal logs")
# validate request
if not await check_whitelist_for_model(json_data):
logging.error(f"[ComfyUI-Manager] Invalid model install request is detected: {json_data}")
return web.Response(status=400, text="Invalid model install request is detected")
if not json_data['filename'].endswith('.safetensors') and not is_allowed_security_level('high'):
models_json = await core.get_data_by_mode('cache', 'model-list.json', 'default')
@@ -1545,26 +1558,27 @@ async def get_notice(request):
if match:
markdown_content = match.group(1)
version_tag = core.get_comfyui_tag()
if version_tag is None:
version_tag = os.environ.get('__COMFYUI_DESKTOP_VERSION__')
if version_tag is not None:
markdown_content += f"<HR>ComfyUI: {version_tag} [Desktop]"
else:
markdown_content += f"<HR>ComfyUI: {core.comfy_ui_revision}[{comfy_ui_hash[:6]}]({core.comfy_ui_commit_datetime.date()})"
version_tag = os.environ.get('__COMFYUI_DESKTOP_VERSION__')
if version_tag is not None:
markdown_content += f"<HR>ComfyUI: {version_tag} [Desktop]"
else:
markdown_content += (f"<HR>ComfyUI: {version_tag}<BR>"
f"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;({core.comfy_ui_commit_datetime.date()})")
version_tag = core.get_comfyui_tag()
if version_tag is None:
markdown_content += f"<HR>ComfyUI: {core.comfy_ui_revision}[{comfy_ui_hash[:6]}]({core.comfy_ui_commit_datetime.date()})"
else:
markdown_content += (f"<HR>ComfyUI: {version_tag}<BR>"
f"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;({core.comfy_ui_commit_datetime.date()})")
# markdown_content += f"<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;()"
markdown_content += f"<BR>Manager: {core.version_str}"
markdown_content = add_target_blank(markdown_content)
try:
if core.comfy_ui_commit_datetime == datetime(1900, 1, 1, 0, 0, 0):
markdown_content = '<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI isn\'t git repo.</P>' + markdown_content
elif core.comfy_ui_required_commit_datetime.date() > core.comfy_ui_commit_datetime.date():
markdown_content = '<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI is too OUTDATED!!!</P>' + markdown_content
if '__COMFYUI_DESKTOP_VERSION__' not in os.environ:
if core.comfy_ui_commit_datetime == datetime(1900, 1, 1, 0, 0, 0):
markdown_content = '<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI isn\'t git repo.</P>' + markdown_content
elif core.comfy_ui_required_commit_datetime.date() > core.comfy_ui_commit_datetime.date():
markdown_content = '<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI is too OUTDATED!!!</P>' + markdown_content
except:
pass
@@ -1599,11 +1613,11 @@ def restart(self):
if '--windows-standalone-build' in sys_argv:
sys_argv.remove('--windows-standalone-build')
if sys.platform.startswith('win32'):
cmds = ['"' + sys.executable + '"', '"' + sys_argv[0] + '"'] + sys_argv[1:]
elif sys_argv[0].endswith("__main__.py"): # this is a python module
if sys_argv[0].endswith("__main__.py"): # this is a python module
module_name = os.path.basename(os.path.dirname(sys_argv[0]))
cmds = [sys.executable, '-m', module_name] + sys_argv[1:]
elif sys.platform.startswith('win32'):
cmds = ['"' + sys.executable + '"', '"' + sys_argv[0] + '"'] + sys_argv[1:]
else:
cmds = [sys.executable] + sys_argv
@@ -1694,6 +1708,7 @@ cm_global.register_api('cm.try-install-custom-node', confirm_try_install)
async def default_cache_update():
core.refresh_channel_dict()
channel_url = core.get_config()['channel_url']
async def get_cache(filename):
try:

View File

@@ -2,6 +2,7 @@
description:
`manager_util` is the lightest module shared across the prestartup_script, main code, and cm-cli of ComfyUI-Manager.
"""
import traceback
import aiohttp
import json
@@ -13,6 +14,7 @@ import sys
import re
import logging
import platform
import shlex
cache_lock = threading.Lock()
@@ -34,9 +36,9 @@ def add_python_path_to_env():
def make_pip_cmd(cmd):
if use_uv:
return [sys.executable, '-m', 'uv', 'pip'] + cmd
return [sys.executable, '-s', '-m', 'uv', 'pip'] + cmd
else:
return [sys.executable, '-m', 'pip'] + cmd
return [sys.executable, '-s', '-m', 'pip'] + cmd
# DON'T USE StrictVersion - cannot handle pre_release version
@@ -180,7 +182,7 @@ def save_to_cache(uri, json_obj, silent=False):
logging.info(f"[ComfyUI-Manager] default cache updated: {uri}")
async def get_data_with_cache(uri, silent=False, cache_mode=True, dont_wait=False):
async def get_data_with_cache(uri, silent=False, cache_mode=True, dont_wait=False, dont_cache=False):
cache_uri = get_cache_path(uri)
if cache_mode and dont_wait:
@@ -199,11 +201,12 @@ async def get_data_with_cache(uri, silent=False, cache_mode=True, dont_wait=Fals
json_obj = await get_data(cache_uri, silent=silent)
else:
json_obj = await get_data(uri, silent=silent)
with cache_lock:
with open(cache_uri, "w", encoding='utf-8') as file:
json.dump(json_obj, file, indent=4, sort_keys=True)
if not silent:
logging.info(f"[ComfyUI-Manager] default cache updated: {uri}")
if not dont_cache:
with cache_lock:
with open(cache_uri, "w", encoding='utf-8') as file:
json.dump(json_obj, file, indent=4, sort_keys=True)
if not silent:
logging.info(f"[ComfyUI-Manager] default cache updated: {uri}")
return json_obj
@@ -243,7 +246,8 @@ def get_installed_packages(renew=False):
if y[0] == 'Package' or y[0].startswith('-'):
continue
pip_map[y[0]] = y[1]
normalized_name = y[0].lower().replace('-', '_')
pip_map[normalized_name] = y[1]
except subprocess.CalledProcessError:
logging.error("[ComfyUI-Manager] Failed to retrieve the information of installed pip packages.")
return set()
@@ -256,6 +260,46 @@ def clear_pip_cache():
pip_map = None
def parse_requirement_line(line):
tokens = shlex.split(line)
if not tokens:
return None
package_spec = tokens[0]
pattern = re.compile(
r'^(?P<package>[A-Za-z0-9_.+-]+)'
r'(?P<operator>==|>=|<=|!=|~=|>|<)?'
r'(?P<version>[A-Za-z0-9_.+-]*)$'
)
m = pattern.match(package_spec)
if not m:
return None
package = m.group('package')
operator = m.group('operator') or None
version = m.group('version') or None
index_url = None
if '--index-url' in tokens:
idx = tokens.index('--index-url')
if idx + 1 < len(tokens):
index_url = tokens[idx + 1]
res = {'package': package}
if operator is not None:
res['operator'] = operator
if version is not None:
res['version'] = StrictVersion(version)
if index_url is not None:
res['index_url'] = index_url
return res
torch_torchvision_torchaudio_version_map = {
'2.6.0': ('0.21.0', '2.6.0'),
'2.5.1': ('0.20.0', '2.5.0'),
@@ -275,10 +319,12 @@ torch_torchvision_torchaudio_version_map = {
}
class PIPFixer:
def __init__(self, prev_pip_versions, comfyui_path):
def __init__(self, prev_pip_versions, comfyui_path, manager_files_path):
self.prev_pip_versions = { **prev_pip_versions }
self.comfyui_path = comfyui_path
self.manager_files_path = manager_files_path
def torch_rollback(self):
spec = self.prev_pip_versions['torch'].split('+')
@@ -373,14 +419,20 @@ class PIPFixer:
if StrictVersion(np) >= StrictVersion('2'):
cmd = make_pip_cmd(['install', "numpy<2"])
subprocess.check_output(cmd , universal_newlines=True)
logging.info("[ComfyUI-Manager] 'numpy' dependency were fixed")
except Exception as e:
logging.error("[ComfyUI-Manager] Failed to restore numpy")
logging.error(e)
# fix missing frontend
try:
front = new_pip_versions.get('comfyui_frontend_package')
if front is None:
# NOTE: package name in requirements is 'comfyui-frontend-package'
# but, package name from `pip freeze` is 'comfyui_frontend_package'
# but, package name from `uv pip freeze` is 'comfyui-frontend-package'
#
# get_installed_packages returns normalized name (i.e. comfyui_frontend_package)
if 'comfyui_frontend_package' not in new_pip_versions:
requirements_path = os.path.join(self.comfyui_path, 'requirements.txt')
with open(requirements_path, 'r') as file:
@@ -389,10 +441,59 @@ class PIPFixer:
front_line = next((line.strip() for line in lines if line.startswith('comfyui-frontend-package')), None)
cmd = make_pip_cmd(['install', front_line])
subprocess.check_output(cmd , universal_newlines=True)
logging.info("[ComfyUI-Manager] 'comfyui-frontend-package' dependency were fixed")
except Exception as e:
logging.error("[ComfyUI-Manager] Failed to restore comfyui_frontend_package")
logging.error("[ComfyUI-Manager] Failed to restore comfyui-frontend-package")
logging.error(e)
# restore based on custom list
pip_auto_fix_path = os.path.join(self.manager_files_path, "pip_auto_fix.list")
if os.path.exists(pip_auto_fix_path):
with open(pip_auto_fix_path, 'r', encoding="UTF-8", errors="ignore") as f:
fixed_list = []
for x in f.readlines():
try:
parsed = parse_requirement_line(x)
need_to_reinstall = True
normalized_name = parsed['package'].lower().replace('-', '_')
if normalized_name in new_pip_versions:
if 'version' in parsed and 'operator' in parsed:
cur = StrictVersion(new_pip_versions[parsed['package']])
dest = parsed['version']
op = parsed['operator']
if cur == dest:
if op in ['==', '>=', '<=']:
need_to_reinstall = False
elif cur < dest:
if op in ['<=', '<', '~=', '!=']:
need_to_reinstall = False
elif cur > dest:
if op in ['>=', '>', '~=', '!=']:
need_to_reinstall = False
if need_to_reinstall:
cmd_args = ['install']
if 'version' in parsed and 'operator' in parsed:
cmd_args.append(parsed['package']+parsed['operator']+parsed['version'].version_string)
if 'index_url' in parsed:
cmd_args.append('--index-url')
cmd_args.append(parsed['index_url'])
cmd = make_pip_cmd(cmd_args)
subprocess.check_output(cmd, universal_newlines=True)
fixed_list.append(parsed['package'])
except Exception as e:
traceback.print_exc()
logging.error(f"[ComfyUI-Manager] Failed to restore '{x}'")
logging.error(e)
if len(fixed_list) > 0:
logging.info(f"[ComfyUI-Manager] dependencies in pip_auto_fix.json were fixed: {fixed_list}")
def sanitize(data):
return data.replace("<", "&lt;").replace(">", "&gt;")

View File

@@ -1,6 +1,7 @@
import { app } from "../../scripts/app.js";
import { api } from "../../scripts/api.js";
import { $el, ComfyDialog } from "../../scripts/ui.js";
import { getBestPosition, getPositionStyle, getRect } from './popover-helper.js';
function internalCustomConfirm(message, confirmMessage, cancelMessage) {
@@ -404,12 +405,14 @@ export async function fetchData(route, options) {
}
}
// https://cenfun.github.io/open-icons/
export const icons = {
search: '<svg viewBox="0 0 24 24" width="100%" height="100%" pointer-events="none" xmlns="http://www.w3.org/2000/svg"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21 21-4.486-4.494M19 10.5a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0"/></svg>',
extensions: '<svg viewBox="64 64 896 896" width="100%" height="100%" pointer-events="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4S189.7 168 180.5 243.8s40 146.3 114.2 163.9 149.9-23.3 175.7-95.1c9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6M329.1 345.2a83.3 83.3 0 1 1 .01-166.61 83.3 83.3 0 0 1-.01 166.61M695.6 845a83.3 83.3 0 1 1 .01-166.61A83.3 83.3 0 0 1 695.6 845"/></svg>',
conflicts: '<svg viewBox="0 0 400 400" width="100%" height="100%" pointer-events="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m397.2 350.4.2-.2-180-320-.2.2C213.8 24.2 207.4 20 200 20s-13.8 4.2-17.2 10.4l-.2-.2-180 320 .2.2c-1.6 2.8-2.8 6-2.8 9.6 0 11 9 20 20 20h360c11 0 20-9 20-20 0-3.6-1.2-6.8-2.8-9.6M220 340h-40v-40h40zm0-60h-40V120h40z"/></svg>',
passed: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 426.667 426.667"><path fill="#6AC259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',
download: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10l10-10z"></path></svg>'
download: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10l10-10z"></path></svg>',
close: '<svg xmlns="http://www.w3.org/2000/svg" pointer-events="none" width="100%" height="100%" viewBox="0 0 16 16"><g fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="m7.116 8-4.558 4.558.884.884L8 8.884l4.558 4.558.884-.884L8.884 8l4.558-4.558-.884-.884L8 7.116 3.442 2.558l-.884.884L7.116 8z"/></g></svg>',
arrowRight: '<svg xmlns="http://www.w3.org/2000/svg" pointer-events="none" width="100%" height="100%" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="m2.542 2.154 7.254 7.26c.136.14.204.302.204.483a.73.73 0 0 1-.204.5l-7.575 7.398c-.383.317-.724.317-1.022 0-.299-.317-.299-.643 0-.98l7.08-6.918-6.754-6.763c-.237-.343-.215-.654.066-.935.281-.28.598-.295.951-.045Zm9 0 7.254 7.26c.136.14.204.302.204.483a.73.73 0 0 1-.204.5l-7.575 7.398c-.383.317-.724.317-1.022 0-.299-.317-.299-.643 0-.98l7.08-6.918-6.754-6.763c-.237-.343-.215-.654.066-.935.281-.28.598-.295.951-.045Z"/></svg>'
}
export function sanitizeHTML(str) {
@@ -503,3 +506,166 @@ export function restoreColumnWidth(gridId, columns) {
});
}
export function getTimeAgo(dateStr) {
const date = new Date(dateStr);
if (!date || !(date instanceof Date) || isNaN(date.getTime())) {
return "";
}
const units = [
{ max: 2760000, value: 60000, name: 'minute', past: 'a minute ago', future: 'in a minute' },
{ max: 72000000, value: 3600000, name: 'hour', past: 'an hour ago', future: 'in an hour' },
{ max: 518400000, value: 86400000, name: 'day', past: 'yesterday', future: 'tomorrow' },
{ max: 2419200000, value: 604800000, name: 'week', past: 'last week', future: 'in a week' },
{ max: 28512000000, value: 2592000000, name: 'month', past: 'last month', future: 'in a month' }
];
const diff = Date.now() - date.getTime();
// less than a minute
if (Math.abs(diff) < 60000)
return 'just now';
for (let i = 0; i < units.length; i++) {
if (Math.abs(diff) < units[i].max) {
return format(diff, units[i].value, units[i].name, units[i].past, units[i].future, diff < 0);
}
}
function format(diff, divisor, unit, past, future, isInTheFuture) {
const val = Math.round(Math.abs(diff) / divisor);
if (isInTheFuture)
return val <= 1 ? future : 'in ' + val + ' ' + unit + 's';
return val <= 1 ? past : val + ' ' + unit + 's ago';
}
return format(diff, 31536000000, 'year', 'last year', 'in a year', diff < 0);
};
export const loadCss = (cssFile) => {
const cssPath = import.meta.resolve(cssFile);
//console.log(cssPath);
const $link = document.createElement("link");
$link.setAttribute("rel", 'stylesheet');
$link.setAttribute("href", cssPath);
document.head.appendChild($link);
};
export const copyText = (text) => {
return new Promise((resolve) => {
let err;
try {
navigator.clipboard.writeText(text);
} catch (e) {
err = e;
}
if (err) {
resolve(false);
} else {
resolve(true);
}
});
};
function renderPopover($elem, target, options = {}) {
// async microtask
queueMicrotask(() => {
const containerRect = getRect(window);
const targetRect = getRect(target);
const elemRect = getRect($elem);
const positionInfo = getBestPosition(
containerRect,
targetRect,
elemRect,
options.positions
);
const style = getPositionStyle(positionInfo, {
bgColor: options.bgColor,
borderColor: options.borderColor,
borderRadius: options.borderRadius
});
$elem.style.top = positionInfo.top + "px";
$elem.style.left = positionInfo.left + "px";
$elem.style.background = style.background;
});
}
let $popover;
export function hidePopover() {
if ($popover) {
$popover.remove();
$popover = null;
}
}
export function showPopover(target, text, className, options) {
hidePopover();
$popover = document.createElement("div");
$popover.className = ['cn-popover', className].filter(it => it).join(" ");
document.body.appendChild($popover);
$popover.innerHTML = text;
$popover.style.display = "block";
renderPopover($popover, target, {
borderRadius: 10,
... options
});
}
let $tooltip;
export function hideTooltip(target) {
if ($tooltip) {
$tooltip.style.display = "none";
$tooltip.innerHTML = "";
$tooltip.style.top = "0px";
$tooltip.style.left = "0px";
}
}
export function showTooltip(target, text, className = 'cn-tooltip', styleMap = {}) {
if (!$tooltip) {
$tooltip = document.createElement("div");
$tooltip.className = className;
$tooltip.style.cssText = `
pointer-events: none;
position: fixed;
z-index: 10001;
padding: 20px;
color: #1e1e1e;
max-width: 350px;
filter: drop-shadow(1px 5px 5px rgb(0 0 0 / 30%));
${Object.keys(styleMap).map(k=>k+":"+styleMap[k]+";").join("")}
`;
document.body.appendChild($tooltip);
}
$tooltip.innerHTML = text;
$tooltip.style.display = "block";
renderPopover($tooltip, target, {
positions: ['top', 'bottom', 'right', 'center'],
bgColor: "#ffffff",
borderColor: "#cccccc",
borderRadius: 5
});
}
function initTooltip () {
const mouseenterHandler = (e) => {
const target = e.target;
const text = target.getAttribute('tooltip');
if (text) {
showTooltip(target, text);
}
};
const mouseleaveHandler = (e) => {
const target = e.target;
const text = target.getAttribute('tooltip');
if (text) {
hideTooltip(target);
}
};
document.body.removeEventListener('mouseenter', mouseenterHandler, true);
document.body.removeEventListener('mouseleave', mouseleaveHandler, true);
document.body.addEventListener('mouseenter', mouseenterHandler, true);
document.body.addEventListener('mouseleave', mouseleaveHandler, true);
}
initTooltip();

699
js/custom-nodes-manager.css Normal file
View File

@@ -0,0 +1,699 @@
.cn-manager {
--grid-font: -apple-system, BlinkMacSystemFont, "Segue UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
z-index: 1099;
width: 80%;
height: 80%;
display: flex;
flex-direction: column;
gap: 10px;
color: var(--fg-color);
font-family: arial, sans-serif;
text-underline-offset: 3px;
outline: none;
}
.cn-manager .cn-flex-auto {
flex: auto;
}
.cn-manager button {
font-size: 16px;
color: var(--input-text);
background-color: var(--comfy-input-bg);
border-radius: 8px;
border-color: var(--border-color);
border-style: solid;
margin: 0;
padding: 4px 8px;
min-width: 100px;
}
.cn-manager button:disabled,
.cn-manager input:disabled,
.cn-manager select:disabled {
color: gray;
}
.cn-manager button:disabled {
background-color: var(--comfy-input-bg);
}
.cn-manager .cn-manager-restart {
display: none;
background-color: #500000;
color: white;
}
.cn-manager .cn-manager-stop {
display: none;
background-color: #500000;
color: white;
}
.cn-manager .cn-manager-back {
align-items: center;
justify-content: center;
}
.arrow-icon {
height: 1em;
width: 1em;
margin-right: 5px;
transform: translateY(2px);
}
.cn-icon {
display: block;
width: 16px;
height: 16px;
}
.cn-icon svg {
display: block;
margin: 0;
pointer-events: none;
}
.cn-manager-header {
display: flex;
flex-wrap: wrap;
gap: 5px;
align-items: center;
padding: 0 5px;
}
.cn-manager-header label {
display: flex;
gap: 5px;
align-items: center;
}
.cn-manager-filter {
height: 28px;
line-height: 28px;
}
.cn-manager-keywords {
height: 28px;
line-height: 28px;
padding: 0 5px 0 26px;
background-size: 16px;
background-position: 5px center;
background-repeat: no-repeat;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20pointer-events%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22m21%2021-4.486-4.494M19%2010.5a8.5%208.5%200%201%201-17%200%208.5%208.5%200%200%201%2017%200%22%2F%3E%3C%2Fsvg%3E");
}
.cn-manager-status {
padding-left: 10px;
}
.cn-manager-grid {
flex: auto;
border: 1px solid var(--border-color);
overflow: hidden;
position: relative;
}
.cn-manager-selection {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.cn-manager-message {
position: relative;
}
.cn-manager-footer {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.cn-manager-grid .tg-turbogrid {
font-family: var(--grid-font);
font-size: 15px;
background: var(--bg-color);
}
.cn-manager-grid .tg-turbogrid .tg-highlight::after {
position: absolute;
top: 0;
left: 0;
content: "";
display: block;
width: 100%;
height: 100%;
box-sizing: border-box;
background-color: #80bdff11;
pointer-events: none;
}
.cn-manager-grid .cn-pack-name a {
color: skyblue;
text-decoration: none;
word-break: break-word;
}
.cn-manager-grid .cn-pack-desc a {
color: #5555FF;
font-weight: bold;
text-decoration: none;
}
.cn-manager-grid .tg-cell a:hover {
text-decoration: underline;
}
.cn-manager-grid .cn-pack-version {
line-height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
gap: 5px;
}
.cn-manager-grid .cn-pack-nodes {
line-height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
gap: 5px;
cursor: pointer;
height: 100%;
}
.cn-manager-grid .cn-pack-nodes:hover {
text-decoration: underline;
}
.cn-manager-grid .cn-pack-conflicts {
color: orange;
}
.cn-popover {
position: fixed;
z-index: 10000;
padding: 20px;
color: #1e1e1e;
filter: drop-shadow(1px 5px 5px rgb(0 0 0 / 30%));
overflow: hidden;
}
.cn-flyover {
position: absolute;
top: 0;
right: 0;
z-index: 1000;
display: none;
width: 50%;
height: 100%;
background-color: var(--comfy-menu-bg);
animation-duration: 0.2s;
animation-fill-mode: both;
flex-direction: column;
}
.cn-flyover::before {
position: absolute;
top: 0;
content: "";
z-index: 10;
display: block;
width: 10px;
height: 100%;
pointer-events: none;
left: -10px;
background-image: linear-gradient(to left, rgb(0 0 0 / 20%), rgb(0 0 0 / 0%));
}
.cn-flyover-header {
height: 45px;
display: flex;
align-items: center;
gap: 5px;
border-bottom: 1px solid var(--border-color);
}
.cn-flyover-close {
display: flex;
align-items: center;
padding: 0 10px;
justify-content: center;
cursor: pointer;
opacity: 0.8;
height: 100%;
}
.cn-flyover-close:hover {
opacity: 1;
}
.cn-flyover-close svg {
display: block;
margin: 0;
pointer-events: none;
width: 20px;
height: 20px;
}
.cn-flyover-title {
display: flex;
align-items: center;
font-weight: bold;
gap: 10px;
flex: auto;
}
.cn-flyover-body {
height: calc(100% - 45px);
overflow-y: auto;
position: relative;
background-color: var(--comfy-menu-secondary-bg);
}
@keyframes cn-slide-in-right {
from {
visibility: visible;
transform: translate3d(100%, 0, 0);
}
to {
transform: translate3d(0, 0, 0);
}
}
.cn-slide-in-right {
animation-name: cn-slide-in-right;
}
@keyframes cn-slide-out-right {
from {
transform: translate3d(0, 0, 0);
}
to {
visibility: hidden;
transform: translate3d(100%, 0, 0);
}
}
.cn-slide-out-right {
animation-name: cn-slide-out-right;
}
.cn-nodes-list {
width: 100%;
}
.cn-nodes-row {
display: flex;
align-items: center;
gap: 10px;
}
.cn-nodes-row:nth-child(odd) {
background-color: rgb(0 0 0 / 5%);
}
.cn-nodes-row:hover {
background-color: rgb(0 0 0 / 10%);
}
.cn-nodes-sn {
text-align: right;
min-width: 35px;
color: var(--drag-text);
flex-shrink: 0;
font-size: 12px;
padding: 8px 5px;
}
.cn-nodes-name {
cursor: pointer;
white-space: nowrap;
flex-shrink: 0;
position: relative;
padding: 8px 5px;
}
.cn-nodes-name::after {
content: attr(action);
position: absolute;
pointer-events: none;
top: 50%;
left: 100%;
transform: translate(5px, -50%);
font-size: 12px;
color: var(--drag-text);
background-color: var(--comfy-input-bg);
border-radius: 10px;
border: 1px solid var(--border-color);
padding: 3px 8px;
display: none;
}
.cn-nodes-name.action::after {
display: block;
}
.cn-nodes-name:hover {
text-decoration: underline;
}
.cn-nodes-conflict .cn-nodes-name,
.cn-nodes-conflict .cn-icon {
color: orange;
}
.cn-conflicts-list {
display: flex;
flex-wrap: wrap;
gap: 5px;
align-items: center;
padding: 5px 0;
}
.cn-conflicts-list b {
font-weight: normal;
color: var(--descrip-text);
}
.cn-nodes-pack {
cursor: pointer;
color: skyblue;
}
.cn-nodes-pack:hover {
text-decoration: underline;
}
.cn-pack-badge {
font-size: 12px;
font-weight: normal;
background-color: var(--comfy-input-bg);
border-radius: 10px;
border: 1px solid var(--border-color);
padding: 3px 8px;
color: var(--error-text);
}
.cn-preview {
min-width: 300px;
max-width: 500px;
min-height: 120px;
overflow: hidden;
font-size: 12px;
pointer-events: none;
padding: 12px;
color: var(--fg-color);
}
.cn-preview-header {
display: flex;
gap: 8px;
align-items: center;
border-bottom: 1px solid var(--comfy-input-bg);
padding: 5px 10px;
}
.cn-preview-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: grey;
position: relative;
filter: drop-shadow(1px 2px 3px rgb(0 0 0 / 30%));
}
.cn-preview-dot.cn-preview-optional::after {
content: "";
position: absolute;
pointer-events: none;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(--comfy-input-bg);
border-radius: 50%;
width: 3px;
height: 3px;
}
.cn-preview-dot.cn-preview-grid {
border-radius: 0;
}
.cn-preview-dot.cn-preview-grid::before {
content: '';
position: absolute;
border-left: 1px solid var(--comfy-input-bg);
border-right: 1px solid var(--comfy-input-bg);
width: 4px;
height: 100%;
left: 2px;
top: 0;
z-index: 1;
}
.cn-preview-dot.cn-preview-grid::after {
content: '';
position: absolute;
border-top: 1px solid var(--comfy-input-bg);
border-bottom: 1px solid var(--comfy-input-bg);
width: 100%;
height: 4px;
left: 0;
top: 2px;
z-index: 1;
}
.cn-preview-name {
flex: auto;
font-size: 14px;
}
.cn-preview-io {
display: flex;
justify-content: space-between;
padding: 10px 10px;
}
.cn-preview-column > div {
display: flex;
gap: 10px;
align-items: center;
height: 18px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.cn-preview-input {
justify-content: flex-start;
}
.cn-preview-output {
justify-content: flex-end;
}
.cn-preview-list {
display: flex;
flex-direction: column;
gap: 3px;
padding: 0 10px 10px 10px;
}
.cn-preview-switch {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-color);
border: 2px solid var(--border-color);
border-radius: 10px;
text-wrap: nowrap;
padding: 2px 20px;
gap: 10px;
}
.cn-preview-switch::before,
.cn-preview-switch::after {
position: absolute;
pointer-events: none;
top: 50%;
transform: translate(0, -50%);
color: var(--fg-color);
opacity: 0.8;
}
.cn-preview-switch::before {
content: "◀";
left: 5px;
}
.cn-preview-switch::after {
content: "▶";
right: 5px;
}
.cn-preview-value {
color: var(--descrip-text);
}
.cn-preview-string {
min-height: 30px;
max-height: 300px;
background: var(--bg-color);
color: var(--descrip-text);
border-radius: 3px;
padding: 3px 5px;
overflow-y: auto;
overflow-x: hidden;
}
.cn-preview-description {
margin: 0px 10px 10px 10px;
padding: 6px;
background: var(--border-color);
color: var(--descrip-text);
border-radius: 5px;
font-style: italic;
word-break: break-word;
}
.cn-tag-list {
display: flex;
flex-wrap: wrap;
gap: 5px;
align-items: center;
margin-bottom: 5px;
}
.cn-tag-list > div {
background-color: var(--border-color);
border-radius: 5px;
padding: 0 5px;
}
.cn-install-buttons {
display: flex;
flex-direction: column;
gap: 3px;
padding: 3px;
align-items: center;
justify-content: center;
height: 100%;
}
.cn-selected-buttons {
display: flex;
gap: 5px;
align-items: center;
padding-right: 20px;
}
.cn-manager .cn-btn-enable {
background-color: #333399;
color: white;
}
.cn-manager .cn-btn-disable {
background-color: #442277;
color: white;
}
.cn-manager .cn-btn-update {
background-color: #1155AA;
color: white;
}
.cn-manager .cn-btn-try-update {
background-color: Gray;
color: white;
}
.cn-manager .cn-btn-try-fix {
background-color: #6495ED;
color: white;
}
.cn-manager .cn-btn-import-failed {
background-color: #AA1111;
font-size: 10px;
font-weight: bold;
color: white;
}
.cn-manager .cn-btn-install {
background-color: black;
color: white;
}
.cn-manager .cn-btn-try-install {
background-color: Gray;
color: white;
}
.cn-manager .cn-btn-uninstall {
background-color: #993333;
color: white;
}
.cn-manager .cn-btn-reinstall {
background-color: #993333;
color: white;
}
.cn-manager .cn-btn-switch {
background-color: #448833;
color: white;
}
@keyframes cn-btn-loading-bg {
0% {
left: 0;
}
100% {
left: -105px;
}
}
.cn-manager button.cn-btn-loading {
position: relative;
overflow: hidden;
border-color: rgb(0 119 207 / 80%);
background-color: var(--comfy-input-bg);
}
.cn-manager button.cn-btn-loading::after {
position: absolute;
top: 0;
left: 0;
content: "";
width: 500px;
height: 100%;
background-image: repeating-linear-gradient(
-45deg,
rgb(0 119 207 / 30%),
rgb(0 119 207 / 30%) 10px,
transparent 10px,
transparent 15px
);
animation: cn-btn-loading-bg 2s linear infinite;
}
.cn-manager-light .cn-pack-name a {
color: blue;
}
.cn-manager-light .cm-warn-note {
background-color: #ccc !important;
}
.cn-manager-light .cn-btn-install {
background-color: #333;
}

View File

File diff suppressed because it is too large Load Diff

213
js/model-manager.css Normal file
View File

@@ -0,0 +1,213 @@
.cmm-manager {
--grid-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
z-index: 1099;
width: 80%;
height: 80%;
display: flex;
flex-direction: column;
gap: 10px;
color: var(--fg-color);
font-family: arial, sans-serif;
}
.cmm-manager .cmm-flex-auto {
flex: auto;
}
.cmm-manager button {
font-size: 16px;
color: var(--input-text);
background-color: var(--comfy-input-bg);
border-radius: 8px;
border-color: var(--border-color);
border-style: solid;
margin: 0;
padding: 4px 8px;
min-width: 100px;
}
.cmm-manager button:disabled,
.cmm-manager input:disabled,
.cmm-manager select:disabled {
color: gray;
}
.cmm-manager button:disabled {
background-color: var(--comfy-input-bg);
}
.cmm-manager .cmm-manager-refresh {
display: none;
background-color: #000080;
color: white;
}
.cmm-manager .cmm-manager-stop {
display: none;
background-color: #500000;
color: white;
}
.cmm-manager-header {
display: flex;
flex-wrap: wrap;
gap: 5px;
align-items: center;
padding: 0 5px;
}
.cmm-manager-header label {
display: flex;
gap: 5px;
align-items: center;
}
.cmm-manager-type,
.cmm-manager-base,
.cmm-manager-filter {
height: 28px;
line-height: 28px;
}
.cmm-manager-keywords {
height: 28px;
line-height: 28px;
padding: 0 5px 0 26px;
background-size: 16px;
background-position: 5px center;
background-repeat: no-repeat;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20pointer-events%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22m21%2021-4.486-4.494M19%2010.5a8.5%208.5%200%201%201-17%200%208.5%208.5%200%200%201%2017%200%22%2F%3E%3C%2Fsvg%3E");
}
.cmm-manager-status {
padding-left: 10px;
}
.cmm-manager-grid {
flex: auto;
border: 1px solid var(--border-color);
overflow: hidden;
}
.cmm-manager-selection {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.cmm-manager-footer {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.cmm-manager-grid .tg-turbogrid {
font-family: var(--grid-font);
font-size: 15px;
background: var(--bg-color);
}
.cmm-manager-grid .cmm-node-name a {
color: skyblue;
text-decoration: none;
word-break: break-word;
}
.cmm-manager-grid .cmm-node-desc a {
color: #5555FF;
font-weight: bold;
text-decoration: none;
}
.cmm-manager-grid .tg-cell a:hover {
text-decoration: underline;
}
.cmm-icon-passed {
width: 20px;
height: 20px;
position: absolute;
left: calc(50% - 10px);
top: calc(50% - 10px);
}
.cmm-manager .cmm-btn-enable {
background-color: blue;
color: white;
}
.cmm-manager .cmm-btn-disable {
background-color: MediumSlateBlue;
color: white;
}
.cmm-manager .cmm-btn-install {
background-color: black;
color: white;
}
.cmm-btn-download {
width: 18px;
height: 18px;
position: absolute;
left: calc(50% - 10px);
top: calc(50% - 10px);
cursor: pointer;
opacity: 0.8;
color: #fff;
}
.cmm-btn-download:hover {
opacity: 1;
}
.cmm-manager-light .cmm-btn-download {
color: #000;
}
@keyframes cmm-btn-loading-bg {
0% {
left: 0;
}
100% {
left: -105px;
}
}
.cmm-manager button.cmm-btn-loading {
position: relative;
overflow: hidden;
border-color: rgb(0 119 207 / 80%);
background-color: var(--comfy-input-bg);
}
.cmm-manager button.cmm-btn-loading::after {
position: absolute;
top: 0;
left: 0;
content: "";
width: 500px;
height: 100%;
background-image: repeating-linear-gradient(
-45deg,
rgb(0 119 207 / 30%),
rgb(0 119 207 / 30%) 10px,
transparent 10px,
transparent 15px
);
animation: cmm-btn-loading-bg 2s linear infinite;
}
.cmm-manager-light .cmm-node-name a {
color: blue;
}
.cmm-manager-light .cm-warn-note {
background-color: #ccc !important;
}
.cmm-manager-light .cmm-btn-install {
background-color: #333;
}

View File

@@ -3,236 +3,17 @@ import { $el } from "../../scripts/ui.js";
import {
manager_instance, rebootAPI,
fetchData, md5, icons, show_message, customAlert, infoToast, showTerminal,
storeColumnWidth, restoreColumnWidth
storeColumnWidth, restoreColumnWidth, loadCss
} from "./common.js";
import { api } from "../../scripts/api.js";
// https://cenfun.github.io/turbogrid/api.html
import TG from "./turbogrid.esm.js";
loadCss("./model-manager.css");
const gridId = "model";
const pageCss = `
.cmm-manager {
--grid-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
z-index: 1099;
width: 80%;
height: 80%;
display: flex;
flex-direction: column;
gap: 10px;
color: var(--fg-color);
font-family: arial, sans-serif;
}
.cmm-manager .cmm-flex-auto {
flex: auto;
}
.cmm-manager button {
font-size: 16px;
color: var(--input-text);
background-color: var(--comfy-input-bg);
border-radius: 8px;
border-color: var(--border-color);
border-style: solid;
margin: 0;
padding: 4px 8px;
min-width: 100px;
}
.cmm-manager button:disabled,
.cmm-manager input:disabled,
.cmm-manager select:disabled {
color: gray;
}
.cmm-manager button:disabled {
background-color: var(--comfy-input-bg);
}
.cmm-manager .cmm-manager-refresh {
display: none;
background-color: #000080;
color: white;
}
.cmm-manager .cmm-manager-stop {
display: none;
background-color: #500000;
color: white;
}
.cmm-manager-header {
display: flex;
flex-wrap: wrap;
gap: 5px;
align-items: center;
padding: 0 5px;
}
.cmm-manager-header label {
display: flex;
gap: 5px;
align-items: center;
}
.cmm-manager-type,
.cmm-manager-base,
.cmm-manager-filter {
height: 28px;
line-height: 28px;
}
.cmm-manager-keywords {
height: 28px;
line-height: 28px;
padding: 0 5px 0 26px;
background-size: 16px;
background-position: 5px center;
background-repeat: no-repeat;
background-image: url("data:image/svg+xml;charset=utf8,${encodeURIComponent(icons.search.replace("currentColor", "#888"))}");
}
.cmm-manager-status {
padding-left: 10px;
}
.cmm-manager-grid {
flex: auto;
border: 1px solid var(--border-color);
overflow: hidden;
}
.cmm-manager-selection {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.cmm-manager-message {
}
.cmm-manager-footer {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.cmm-manager-grid .tg-turbogrid {
font-family: var(--grid-font);
font-size: 15px;
background: var(--bg-color);
}
.cmm-manager-grid .cmm-node-name a {
color: skyblue;
text-decoration: none;
word-break: break-word;
}
.cmm-manager-grid .cmm-node-desc a {
color: #5555FF;
font-weight: bold;
text-decoration: none;
}
.cmm-manager-grid .tg-cell a:hover {
text-decoration: underline;
}
.cmm-icon-passed {
width: 20px;
height: 20px;
position: absolute;
left: calc(50% - 10px);
top: calc(50% - 10px);
}
.cmm-manager .cmm-btn-enable {
background-color: blue;
color: white;
}
.cmm-manager .cmm-btn-disable {
background-color: MediumSlateBlue;
color: white;
}
.cmm-manager .cmm-btn-install {
background-color: black;
color: white;
}
.cmm-btn-download {
width: 18px;
height: 18px;
position: absolute;
left: calc(50% - 10px);
top: calc(50% - 10px);
cursor: pointer;
opacity: 0.8;
color: #fff;
}
.cmm-btn-download:hover {
opacity: 1;
}
.cmm-manager-light .cmm-btn-download {
color: #000;
}
@keyframes cmm-btn-loading-bg {
0% {
left: 0;
}
100% {
left: -105px;
}
}
.cmm-manager button.cmm-btn-loading {
position: relative;
overflow: hidden;
border-color: rgb(0 119 207 / 80%);
background-color: var(--comfy-input-bg);
}
.cmm-manager button.cmm-btn-loading::after {
position: absolute;
top: 0;
left: 0;
content: "";
width: 500px;
height: 100%;
background-image: repeating-linear-gradient(
-45deg,
rgb(0 119 207 / 30%),
rgb(0 119 207 / 30%) 10px,
transparent 10px,
transparent 15px
);
animation: cmm-btn-loading-bg 2s linear infinite;
}
.cmm-manager-light .cmm-node-name a {
color: blue;
}
.cmm-manager-light .cm-warn-note {
background-color: #ccc !important;
}
.cmm-manager-light .cmm-btn-install {
background-color: #333;
}
`;
const pageHtml = `
<div class="cmm-manager-header">
<label>Filter
@@ -283,14 +64,6 @@ export class ModelManager {
}
init() {
if (!document.querySelector(`style[context="${this.id}"]`)) {
const $style = document.createElement("style");
$style.setAttribute("context", this.id);
$style.innerHTML = pageCss;
document.head.appendChild($style);
}
this.element = $el("div", {
parent: document.body,
className: "comfy-modal cmm-manager"
@@ -561,7 +334,7 @@ export class ModelManager {
sortable: false,
align: 'center',
formatter: (url, rowItem, columnItem) => {
return `<a class="cmm-btn-download" title="Download file" href="${url}" target="_blank">${icons.download}</a>`;
return `<a class="cmm-btn-download" tooltip="Download file" href="${url}" target="_blank">${icons.download}</a>`;
}
}, {
id: 'size',

619
js/popover-helper.js Normal file
View File

@@ -0,0 +1,619 @@
const hasOwn = function(obj, key) {
return Object.prototype.hasOwnProperty.call(obj, key);
};
const isNum = function(num) {
if (typeof num !== 'number' || isNaN(num)) {
return false;
}
const isInvalid = function(n) {
if (n === Number.MAX_VALUE || n === Number.MIN_VALUE || n === Number.NEGATIVE_INFINITY || n === Number.POSITIVE_INFINITY) {
return true;
}
return false;
};
if (isInvalid(num)) {
return false;
}
return true;
};
const toNum = (num) => {
if (typeof (num) !== 'number') {
num = parseFloat(num);
}
if (isNaN(num)) {
num = 0;
}
num = Math.round(num);
return num;
};
const clamp = function(value, min, max) {
return Math.max(min, Math.min(max, value));
};
const isWindow = (obj) => {
return Boolean(obj && obj === obj.window);
};
const isDocument = (obj) => {
return Boolean(obj && obj.nodeType === 9);
};
const isElement = (obj) => {
return Boolean(obj && obj.nodeType === 1);
};
// ===========================================================================================
export const toRect = (obj) => {
if (obj) {
return {
left: toNum(obj.left || obj.x),
top: toNum(obj.top || obj.y),
width: toNum(obj.width),
height: toNum(obj.height)
};
}
return {
left: 0,
top: 0,
width: 0,
height: 0
};
};
export const getElement = (selector) => {
if (typeof selector === 'string' && selector) {
if (selector.startsWith('#')) {
return document.getElementById(selector.slice(1));
}
return document.querySelector(selector);
}
if (isDocument(selector)) {
return selector.body;
}
if (isElement(selector)) {
return selector;
}
};
export const getRect = (target, fixed) => {
if (!target) {
return toRect();
}
if (isWindow(target)) {
return {
left: 0,
top: 0,
width: window.innerWidth,
height: window.innerHeight
};
}
const elem = getElement(target);
if (!elem) {
return toRect(target);
}
const br = elem.getBoundingClientRect();
const rect = toRect(br);
// fix offset
if (!fixed) {
rect.left += window.scrollX;
rect.top += window.scrollY;
}
rect.width = elem.offsetWidth;
rect.height = elem.offsetHeight;
return rect;
};
// ===========================================================================================
const calculators = {
bottom: (info, containerRect, targetRect) => {
info.space = containerRect.top + containerRect.height - targetRect.top - targetRect.height - info.height;
info.top = targetRect.top + targetRect.height;
info.left = Math.round(targetRect.left + targetRect.width * 0.5 - info.width * 0.5);
},
top: (info, containerRect, targetRect) => {
info.space = targetRect.top - info.height - containerRect.top;
info.top = targetRect.top - info.height;
info.left = Math.round(targetRect.left + targetRect.width * 0.5 - info.width * 0.5);
},
right: (info, containerRect, targetRect) => {
info.space = containerRect.left + containerRect.width - targetRect.left - targetRect.width - info.width;
info.top = Math.round(targetRect.top + targetRect.height * 0.5 - info.height * 0.5);
info.left = targetRect.left + targetRect.width;
},
left: (info, containerRect, targetRect) => {
info.space = targetRect.left - info.width - containerRect.left;
info.top = Math.round(targetRect.top + targetRect.height * 0.5 - info.height * 0.5);
info.left = targetRect.left - info.width;
}
};
// with order
export const getDefaultPositions = () => {
return Object.keys(calculators);
};
const calculateSpace = (info, containerRect, targetRect) => {
const calculator = calculators[info.position];
calculator(info, containerRect, targetRect);
if (info.space >= 0) {
info.passed += 1;
}
};
// ===========================================================================================
const calculateAlignOffset = (info, containerRect, targetRect, alignType, sizeType) => {
const popoverStart = info[alignType];
const popoverSize = info[sizeType];
const containerStart = containerRect[alignType];
const containerSize = containerRect[sizeType];
const targetStart = targetRect[alignType];
const targetSize = targetRect[sizeType];
const targetCenter = targetStart + targetSize * 0.5;
// size overflow
if (popoverSize > containerSize) {
const overflow = (popoverSize - containerSize) * 0.5;
info[alignType] = containerStart - overflow;
info.offset = targetCenter - containerStart + overflow;
return;
}
const space1 = popoverStart - containerStart;
const space2 = (containerStart + containerSize) - (popoverStart + popoverSize);
// both side passed, default to center
if (space1 >= 0 && space2 >= 0) {
if (info.passed) {
info.passed += 2;
}
info.offset = popoverSize * 0.5;
return;
}
// one side passed
if (info.passed) {
info.passed += 1;
}
if (space1 < 0) {
const min = containerStart;
info[alignType] = min;
info.offset = targetCenter - min;
return;
}
// space2 < 0
const max = containerStart + containerSize - popoverSize;
info[alignType] = max;
info.offset = targetCenter - max;
};
const calculateHV = (info, containerRect) => {
if (['top', 'bottom'].includes(info.position)) {
info.top = clamp(info.top, containerRect.top, containerRect.top + containerRect.height - info.height);
return ['left', 'width'];
}
info.left = clamp(info.left, containerRect.left, containerRect.left + containerRect.width - info.width);
return ['top', 'height'];
};
const calculateOffset = (info, containerRect, targetRect) => {
const [alignType, sizeType] = calculateHV(info, containerRect);
calculateAlignOffset(info, containerRect, targetRect, alignType, sizeType);
info.offset = clamp(info.offset, 0, info[sizeType]);
};
// ===========================================================================================
const calculateDistance = (info, previousPositionInfo) => {
if (!previousPositionInfo) {
return;
}
// no change if position no change with previous
if (info.position === previousPositionInfo.position) {
return;
}
const ax = info.left + info.width * 0.5;
const ay = info.top + info.height * 0.5;
const bx = previousPositionInfo.left + previousPositionInfo.width * 0.5;
const by = previousPositionInfo.top + previousPositionInfo.height * 0.5;
const dx = Math.abs(ax - bx);
const dy = Math.abs(ay - by);
info.distance = Math.round(Math.sqrt(dx * dx + dy * dy));
};
// ===========================================================================================
const calculatePositionInfo = (info, containerRect, targetRect, previousPositionInfo) => {
calculateSpace(info, containerRect, targetRect);
calculateOffset(info, containerRect, targetRect);
calculateDistance(info, previousPositionInfo);
};
// ===========================================================================================
const calculateBestPosition = (containerRect, targetRect, infoMap, withOrder, previousPositionInfo) => {
// position space: +1
// align space:
// two side passed: +2
// one side passed: +1
const safePassed = 3;
if (previousPositionInfo) {
const prevInfo = infoMap[previousPositionInfo.position];
if (prevInfo) {
calculatePositionInfo(prevInfo, containerRect, targetRect);
if (prevInfo.passed >= safePassed) {
return prevInfo;
}
prevInfo.calculated = true;
}
}
const positionList = [];
Object.values(infoMap).forEach((info) => {
if (!info.calculated) {
calculatePositionInfo(info, containerRect, targetRect, previousPositionInfo);
}
positionList.push(info);
});
positionList.sort((a, b) => {
if (a.passed !== b.passed) {
return b.passed - a.passed;
}
if (withOrder && a.passed >= safePassed && b.passed >= safePassed) {
return a.index - b.index;
}
if (a.space !== b.space) {
return b.space - a.space;
}
return a.index - b.index;
});
// logTable(positionList);
return positionList[0];
};
// const logTable = (() => {
// let time_id;
// return (info) => {
// clearTimeout(time_id);
// time_id = setTimeout(() => {
// console.table(info);
// }, 10);
// };
// })();
// ===========================================================================================
const getAllowPositions = (positions, defaultAllowPositions) => {
if (!positions) {
return;
}
if (Array.isArray(positions)) {
positions = positions.join(',');
}
positions = String(positions).split(',').map((it) => it.trim().toLowerCase()).filter((it) => it);
positions = positions.filter((it) => defaultAllowPositions.includes(it));
if (!positions.length) {
return;
}
return positions;
};
const isPositionChanged = (info, previousPositionInfo) => {
if (!previousPositionInfo) {
return true;
}
if (info.left !== previousPositionInfo.left) {
return true;
}
if (info.top !== previousPositionInfo.top) {
return true;
}
return false;
};
// ===========================================================================================
// const log = (name, time) => {
// if (time > 0.1) {
// console.log(name, time);
// }
// };
export const getBestPosition = (containerRect, targetRect, popoverRect, positions, previousPositionInfo) => {
const defaultAllowPositions = getDefaultPositions();
let withOrder = true;
let allowPositions = getAllowPositions(positions, defaultAllowPositions);
if (!allowPositions) {
allowPositions = defaultAllowPositions;
withOrder = false;
}
// console.log('withOrder', withOrder);
// const start_time = performance.now();
const infoMap = {};
allowPositions.forEach((k, i) => {
infoMap[k] = {
position: k,
index: i,
top: 0,
left: 0,
width: popoverRect.width,
height: popoverRect.height,
space: 0,
offset: 0,
passed: 0,
distance: 0
};
});
// log('infoMap', performance.now() - start_time);
const bestPosition = calculateBestPosition(containerRect, targetRect, infoMap, withOrder, previousPositionInfo);
// check left/top
bestPosition.changed = isPositionChanged(bestPosition, previousPositionInfo);
return bestPosition;
};
// ===========================================================================================
const getTemplatePath = (width, height, arrowOffset, arrowSize, borderRadius) => {
const p = (px, py) => {
return [px, py].join(',');
};
const px = function(num, alignEnd) {
const floor = Math.floor(num);
let n = num < floor + 0.5 ? floor + 0.5 : floor + 1.5;
if (alignEnd) {
n -= 1;
}
return n;
};
const pxe = function(num) {
return px(num, true);
};
const ls = [];
const innerLeft = px(arrowSize);
const innerRight = pxe(width - arrowSize);
arrowOffset = clamp(arrowOffset, innerLeft, innerRight);
const innerTop = px(arrowSize);
const innerBottom = pxe(height - arrowSize);
const startPoint = p(innerLeft, innerTop + borderRadius);
const arrowPoint = p(arrowOffset, 1);
const LT = p(innerLeft, innerTop);
const RT = p(innerRight, innerTop);
const AOT = p(arrowOffset - arrowSize, innerTop);
const RRT = p(innerRight - borderRadius, innerTop);
ls.push(`M${startPoint}`);
ls.push(`V${innerBottom - borderRadius}`);
ls.push(`Q${p(innerLeft, innerBottom)} ${p(innerLeft + borderRadius, innerBottom)}`);
ls.push(`H${innerRight - borderRadius}`);
ls.push(`Q${p(innerRight, innerBottom)} ${p(innerRight, innerBottom - borderRadius)}`);
ls.push(`V${innerTop + borderRadius}`);
if (arrowOffset < innerLeft + arrowSize + borderRadius) {
ls.push(`Q${RT} ${RRT}`);
ls.push(`H${arrowOffset + arrowSize}`);
ls.push(`L${arrowPoint}`);
if (arrowOffset < innerLeft + arrowSize) {
ls.push(`L${LT}`);
ls.push(`L${startPoint}`);
} else {
ls.push(`L${AOT}`);
ls.push(`Q${LT} ${startPoint}`);
}
} else if (arrowOffset > innerRight - arrowSize - borderRadius) {
if (arrowOffset > innerRight - arrowSize) {
ls.push(`L${RT}`);
} else {
ls.push(`Q${RT} ${p(arrowOffset + arrowSize, innerTop)}`);
}
ls.push(`L${arrowPoint}`);
ls.push(`L${AOT}`);
ls.push(`H${innerLeft + borderRadius}`);
ls.push(`Q${LT} ${startPoint}`);
} else {
ls.push(`Q${RT} ${RRT}`);
ls.push(`H${arrowOffset + arrowSize}`);
ls.push(`L${arrowPoint}`);
ls.push(`L${AOT}`);
ls.push(`H${innerLeft + borderRadius}`);
ls.push(`Q${LT} ${startPoint}`);
}
return ls.join('');
};
const getPathData = function(position, width, height, arrowOffset, arrowSize, borderRadius) {
const handlers = {
bottom: () => {
const d = getTemplatePath(width, height, arrowOffset, arrowSize, borderRadius);
return {
d,
transform: ''
};
},
top: () => {
const d = getTemplatePath(width, height, width - arrowOffset, arrowSize, borderRadius);
return {
d,
transform: `rotate(180,${width * 0.5},${height * 0.5})`
};
},
left: () => {
const d = getTemplatePath(height, width, arrowOffset, arrowSize, borderRadius);
const x = (width - height) * 0.5;
const y = (height - width) * 0.5;
return {
d,
transform: `translate(${x} ${y}) rotate(90,${height * 0.5},${width * 0.5})`
};
},
right: () => {
const d = getTemplatePath(height, width, height - arrowOffset, arrowSize, borderRadius);
const x = (width - height) * 0.5;
const y = (height - width) * 0.5;
return {
d,
transform: `translate(${x} ${y}) rotate(-90,${height * 0.5},${width * 0.5})`
};
}
};
return handlers[position]();
};
// ===========================================================================================
// position style cache
const styleCache = {
// position: '',
// top: {},
// bottom: {},
// left: {},
// right: {}
};
export const getPositionStyle = (info, options = {}) => {
const o = {
bgColor: '#fff',
borderColor: '#ccc',
borderRadius: 5,
arrowSize: 10
};
Object.keys(o).forEach((k) => {
if (hasOwn(options, k)) {
const d = o[k];
const v = options[k];
if (typeof d === 'string') {
// string
if (typeof v === 'string' && v) {
o[k] = v;
}
} else {
// number
if (isNum(v) && v >= 0) {
o[k] = v;
}
}
}
});
const key = [
info.width,
info.height,
info.offset,
o.arrowSize,
o.borderRadius,
o.bgColor,
o.borderColor
].join('-');
const positionCache = styleCache[info.position];
if (positionCache && key === positionCache.key) {
const st = positionCache.style;
st.changed = styleCache.position !== info.position;
styleCache.position = info.position;
return st;
}
// console.log(options);
const data = getPathData(info.position, info.width, info.height, info.offset, o.arrowSize, o.borderRadius);
// console.log(data);
const viewBox = [0, 0, info.width, info.height].join(' ');
const svg = [
`<svg viewBox="${viewBox}" xmlns="http://www.w3.org/2000/svg">`,
`<path d="${data.d}" fill="${o.bgColor}" stroke="${o.borderColor}" transform="${data.transform}" />`,
'</svg>'
].join('');
// console.log(svg);
const backgroundImage = `url("data:image/svg+xml;charset=utf8,${encodeURIComponent(svg)}")`;
const background = `${backgroundImage} center no-repeat`;
const padding = `${o.arrowSize + o.borderRadius}px`;
const style = {
background,
backgroundImage,
padding,
changed: true
};
styleCache.position = info.position;
styleCache[info.position] = {
key,
style
};
return style;
};

View File

@@ -3960,6 +3960,17 @@
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/vae/hunyuan_video_vae_bf16.safetensors",
"size": "493MB"
},
{
"name": "Comfy-Org/hunyuan_video_image_to_video_720p_bf16.safetensors",
"type": "diffusion_model",
"base": "Hunyuan Video",
"save_path": "diffusion_models/hunyuan_video",
"description": "Huyuan Video Image2Video diffusion model. repackaged version.",
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
"filename": "hunyuan_video_image_to_video_720p_bf16.safetensors",
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/diffusion_models/hunyuan_video_image_to_video_720p_bf16.safetensors",
"size": "25.6GB"
},
{
"name": "Comfy-Org/llava_llama3_fp8_scaled.safetensors",
@@ -3983,6 +3994,17 @@
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/llava_llama3_fp16.safetensors",
"size": "16.1GB"
},
{
"name": "Comfy-Org/llava_llama3_vision.safetensors",
"type": "clip_vision",
"base": "LLaVA-Llama-3",
"save_path": "text_encoders",
"description": "llava_llama3_vision clip vison model. This is required for using Hunyuan Video Image2Video.",
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
"filename": "llava_llama3_vision.safetensors",
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/clip_vision/llava_llama3_vision.safetensors",
"size": "649MB"
},
{
"name": "FLUX.1 [Schnell] Diffusion model",
@@ -4547,6 +4569,17 @@
"url": "https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltx-video-2b-v0.9.1.safetensors",
"size": "5.72GB"
},
{
"name": "LTX-Video 2B v0.9.5 Checkpoint",
"type": "checkpoint",
"base": "LTX-Video",
"save_path": "checkpoints/LTXV",
"description": "LTX-Video is the first DiT-based video generation model capable of generating high-quality videos in real-time. It produces 24 FPS videos at a 768x512 resolution faster than they can be watched. Trained on a large-scale dataset of diverse videos, the model generates high-resolution videos with realistic and varied content.",
"reference": "https://huggingface.co/Lightricks/LTX-Video",
"filename": "ltx-video-2b-v0.9.5.safetensors",
"url": "https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltx-video-2b-v0.9.5.safetensors",
"size": "6.34GB"
},
{
"name": "XLabs-AI/flux-canny-controlnet-v3.safetensors",

View File

@@ -11,7 +11,116 @@
{
"author": "silveroxides",
"title": "ComfyUI-ModelUtils [WIP]",
"reference": "https://github.com/silveroxides/ComfyUI-ModelUtils",
"files": [
"https://github.com/silveroxides/ComfyUI-ModelUtils"
],
"install_type": "git-clone",
"description": "[WIP]Custom nodes for handling, inspecting, modifying and creating various model files."
},
{
"author": "thisiseddy-ab",
"title": "ComfyUI-Edins-Ultimate-Pack",
"reference": "https://github.com/thisiseddy-ab/ComfyUI-Edins-Ultimate-Pack",
"files": [
"https://github.com/thisiseddy-ab/ComfyUI-Edins-Ultimate-Pack"
],
"install_type": "git-clone",
"description": "Well i needet a Tiled Ksampler that still works for Comfy UI there were none so i made one, in this Package i will put all Nodes i will develop for Comfy Ui still in beta alot will change.."
},
{
"author": "longzoho",
"title": "ComfyUI-Qdrant-Saver",
"reference": "https://github.com/longzoho/ComfyUI-Qdrant-Saver",
"files": [
"https://github.com/longzoho/ComfyUI-Qdrant-Saver"
],
"install_type": "git-clone",
"description": "NODES: QDrant Saver Node"
},
{
"author": "RUFFY-369",
"title": "ComfyUI-FeatureBank",
"reference": "https://github.com/RUFFY-369/ComfyUI-FeatureBank",
"files": [
"https://github.com/RUFFY-369/ComfyUI-FeatureBank"
],
"install_type": "git-clone",
"description": "NODES: FeatureBankAttentionProcessor"
},
{
"author": "Pablerdo",
"title": "ComfyUI-Sa2VAWrapper [WIP]",
"reference": "https://github.com/Pablerdo/ComfyUI-Sa2VAWrapper",
"files": [
"https://github.com/Pablerdo/ComfyUI-Sa2VAWrapper"
],
"install_type": "git-clone",
"description": "Wrapper for the Sa2VA model"
},
{
"author": "S4MUEL-404",
"title": "ComfyUI-Folder-Images-Preview [UNSAFE]",
"reference": "https://github.com/S4MUEL-404/ComfyUI-Folder-Images-Preview",
"files": [
"https://github.com/S4MUEL-404/ComfyUI-Folder-Images-Preview"
],
"install_type": "git-clone",
"description": "A ComfyUI nodes , Generate a picture and quickly preview the pictures in the folder and the picture file name\n[w/This custom node has a path traversal vulnerability.]"
},
{
"author": "aria1th",
"title": "ComfyUI-camietagger-onnx",
"reference": "https://github.com/aria1th/ComfyUI-camietagger-onnx",
"files": [
"https://github.com/aria1th/ComfyUI-camietagger-onnx"
],
"install_type": "git-clone",
"description": "NODES: Camie Tagger"
},
{
"author": "zjkhurry",
"title": "comfyui_MetalFX [WIP]",
"reference": "https://github.com/zjkhurry/comfyui_MetalFX",
"files": [
"https://github.com/zjkhurry/comfyui_MetalFX"
],
"install_type": "git-clone",
"description": "A custom node for ComfyUI that enables high-quality image and video upscaling using Apple MetalFX technology.\nNOTE: The files in the repo are not organized."
},
{
"author": "IfnotFr",
"title": "ComfyUI-Connect [WIP]",
"reference": "https://github.com/IfnotFr/ComfyUI-Connect",
"files": [
"https://github.com/IfnotFr/ComfyUI-Connect"
],
"install_type": "git-clone",
"description": "Transform your ComfyUI into a powerful API, exposing all your saved workflows as ready-to-use HTTP endpoints."
},
{
"author": "RoyKillington",
"title": "Miscomfy Nodes [WIP]",
"reference": "https://github.com/RoyKillington/miscomfy-nodes",
"files": [
"https://github.com/RoyKillington/miscomfy-nodes"
],
"install_type": "git-clone",
"description": "A repo of custom nodes for ComfyUI, from interacting with certain APIs to whatever other miscellanea I end up making"
},
{
"author": "xmarked-ai",
"title": "ComfyUI_misc",
"reference": "https://github.com/xmarked-ai/ComfyUI_misc",
"files": [
"https://github.com/xmarked-ai/ComfyUI_misc"
],
"install_type": "git-clone",
"description": "NODES: Ace IntegerX, Ace FloatX, Ace Color FixX, White Balance X, Depth Displace X, Empty Latent X, KSampler Combo X, ..."
},
{
"author": "Elypha",
"title": "ComfyUI-Prompt-Helper [WIP]",
@@ -804,16 +913,6 @@
"install_type": "git-clone",
"description": "nodes for deepseek api\nNOTE: The files in the repo are not organized."
},
{
"author": "807502278",
"title": "ComfyUI_TensorRT_Merge [WIP]",
"reference": "https://github.com/807502278/ComfyUI_TensorRT_Merge",
"files": [
"https://github.com/807502278/ComfyUI_TensorRT_Merge"
],
"install_type": "git-clone",
"description": "Non diffusion models supported by TensorRT, merged Comfyui plugin, added onnx automatic download and trt model conversion nodes."
},
{
"author": "IfnotFr",
"title": "ComfyUI-Ifnot-Pack",
@@ -1718,16 +1817,6 @@
"install_type": "git-clone",
"description": "a custom node for [a/Ultralight-Digital-Human](https://github.com/anliyuan/Ultralight-Digital-Human)\nNOTE: The files in the repo are not organized."
},
{
"author": "vahidzxc",
"title": "ComfyUI-My-Handy-Nodes",
"reference": "https://github.com/vahidzxc/ComfyUI-My-Handy-Nodes",
"files": [
"https://github.com/vahidzxc/ComfyUI-My-Handy-Nodes"
],
"install_type": "git-clone",
"description": "NODES:VahCropImage"
},
{
"author": "StartHua",
"title": "Comfyui_Flux_Style_Ctr [WIP]",
@@ -1979,7 +2068,7 @@
"https://github.com/aria1th/ComfyUI-SkipCFGSigmas"
],
"install_type": "git-clone",
"description": "NODES:CFGControl_SKIPCFG"
"description": "NODES: CFGControl_SKIPCFG"
},
{
"author": "Clelstyn",
@@ -2199,7 +2288,7 @@
"https://github.com/fablestudio/ComfyUI-Showrunner-Utils"
],
"install_type": "git-clone",
"description": "NODES:Align Face, Generate Timestamp"
"description": "NODES: Align Face, Generate Timestamp, GetMostCommonColors, Alpha Crop and Position Image, Shrink Image"
},
{
"author": "monate0615",
@@ -2989,16 +3078,6 @@
"install_type":"git-clone",
"description":"The ComfyUI code is under review in the official repository. Meanwhile, a temporary version is available below for immediate community use. We welcome users to try our workflow and appreciate any inquiries or suggestions."
},
{
"author": "JichaoLiang",
"title": "Immortal_comfyUI",
"reference": "https://github.com/JichaoLiang/Immortal_comfyUI",
"files":[
"https://github.com/JichaoLiang/Immortal_comfyUI"
],
"install_type":"git-clone",
"description":"Nodes: NewNode, AppendNode, MergeNode, SetProperties, SaveToDirectory, ..."
},
{
"author": "melMass",
"title": "ComfyUI-Lygia",
@@ -4480,16 +4559,6 @@
"install_type": "git-clone",
"description": "Image manipulation nodes, Temperature control nodes, Tiling nodes, Primitive and operation nodes, ..."
},
{
"author": "PluMaZero",
"title": "ComfyUI-SpaceFlower",
"reference": "https://github.com/PluMaZero/ComfyUI-SpaceFlower",
"files": [
"https://github.com/PluMaZero/ComfyUI-SpaceFlower"
],
"install_type": "git-clone",
"description": "Nodes: SpaceFlower_Prompt, SpaceFlower_HangulPrompt, ..."
},
{
"author": "laksjdjf",
"title": "ssd-1b-comfyui",

View File

@@ -176,27 +176,6 @@
"title_aux": "comfyui-promptbymood [WIP]"
}
],
"https://github.com/807502278/ComfyUI_TensorRT_Merge": [
[
"BiRefNet2_tensort",
"BiRefNet_TRT",
"Building_TRT",
"Custom_Building_TRT",
"DepthAnything_Tensorrt",
"Dwpose_Tensorrt",
"FaceRestoreTensorrt",
"RifeTensorrt",
"UpscalerTensorrt",
"YoloNasPoseTensorrt",
"load_BiRefNet2_tensort",
"load_BiRefNet_TRT",
"load_DepthAnything_Tensorrt",
"load_Dwpos_Tensorrt"
],
{
"title_aux": "ComfyUI_TensorRT_Merge [WIP]"
}
],
"https://github.com/A4P7J1N7M05OT/ComfyUI-ManualSigma": [
[
"ManualSigma"
@@ -602,6 +581,7 @@
"VTS Create Character Mask",
"VTS Images Crop From Masks",
"VTS Images Scale",
"VTS Images Scale To Min",
"VTS Merge Delimited Text",
"VTS Reduce Batch Size",
"VTS Render People Kps",
@@ -650,6 +630,7 @@
"DevToolsErrorRaiseNodeWithMessage",
"DevToolsExperimentalNode",
"DevToolsLongComboDropdown",
"DevToolsMultiSelectNode",
"DevToolsNodeWithBooleanInput",
"DevToolsNodeWithForceInput",
"DevToolsNodeWithOnlyOptionalInput",
@@ -986,7 +967,6 @@
"DeepSeekImageAnalyst",
"DeepSeekImageGeneration",
"DeepSeekModelLoader",
"GoogleDriveUpload",
"ImagePreprocessor",
"LLM_Loader",
"OpenAICompatibleLoader",
@@ -1043,44 +1023,6 @@
"title_aux": "comfyui-terminal-command [UNSAFE]"
}
],
"https://github.com/JichaoLiang/Immortal_comfyUI": [
[
"AppendNode",
"CombineVideos",
"ImAppendFreeChatAction",
"ImAppendImageActionNode",
"ImAppendNodeHub",
"ImAppendQuickbackNode",
"ImAppendQuickbackVideoNode",
"ImAppendVideoNode",
"ImDumpEntity",
"ImDumpNode",
"ImLoadPackage",
"ImNodeTitleOverride",
"ImSetActionKeywordMapping",
"MergeNode",
"Molmo7BDbnbBatch",
"MuteNode",
"NewNode",
"Node2String",
"OllamaChat",
"SaveImagePath",
"SaveToDirectory",
"SetEvent",
"SetNodeMapping",
"SetProperties",
"String2Node",
"TurnOnOffNodeOnEnter",
"batchNodes",
"grepNodeByText",
"imageList",
"mergeEntityAndPointer",
"redirectToNode"
],
{
"title_aux": "Immortal_comfyUI"
}
],
"https://github.com/Jiffies-64/ComfyUI-SaveImagePlus": [
[
"SaveImagePlus"
@@ -1185,6 +1127,49 @@
"title_aux": "RK_Comfyui"
}
],
"https://github.com/KurtHokke/ComfyUI_KurtHokke-Nodes": [
[
"AIO_Tuner_Pipe",
"BooleanFromPipe",
"BooleanToPipe",
"COND_ExtraOpts",
"ChainTextEncode",
"CkptPipe",
"DynamicThresholding",
"DynamicThresholdingBasic",
"EmptyLatentSize",
"EmptyLatentSize64",
"ExpMath",
"ExpMathDual",
"ExpMathQuad",
"LoadUnetAndClip",
"LoraFluxParams",
"MergeExtraOpts",
"ModelPipe1",
"ModelPipe2",
"NoModel_CkptLoader",
"Node_BOOL",
"Node_Float",
"Node_INT",
"Node_String",
"Node_StringMultiline",
"SamplerCustomAdvanced_Pipe",
"SamplerSel",
"SchedulerSel",
"SedOnString",
"UnetClipLoraLoader",
"UnetClipLoraLoaderBasic",
"VAE_ExtraOpts",
"debug_object",
"get_lora_metadata",
"re_sub_str",
"str_str",
"str_str_str_str"
],
{
"title_aux": "ComfyUI_KurtHokke-Nodes"
}
],
"https://github.com/LZpenguin/ComfyUI-Text": [
[
"Add_text_by_mask"
@@ -1413,22 +1398,30 @@
[
"A1111_FLUX_DATA_NODE",
"CategorizeNode",
"Data_handle_Node",
"DeepSeek_Node",
"Delay_node",
"Delete_folder_Node",
"DongShowTextNode",
"Dong_Pixelate_Node",
"Dong_Text_Node",
"Downloader",
"FileMoveNode",
"FolderIteratorNODE",
"Get_cookies_Node",
"Get_json_value_Node",
"Get_video_Node",
"HashCalculationsNode",
"HuggingFaceUploadNode",
"IMG2URLNode",
"Image2GIFNode",
"ImageDownloader",
"InputDetectionNode",
"LLM_Node",
"ImageResizeNode",
"LibLib_upload_Node",
"LogicToolsNode",
"LoraIterator",
"Notice_Node",
"PromptConcatNode",
"RandomNumbersNode",
"RenameNode",
"ResolutionNode",
@@ -1437,10 +1430,13 @@
"TextToJsonNode",
"TranslateAPINode",
"ZIPwith7zNode",
"find_files_by_extension_Node",
"img_understanding_Node",
"klingai_video_Node",
"path_join_Node",
"save_img_NODE",
"set_api_Node"
"set_api_Node",
"text_replace_node"
],
{
"title_aux": "ComfyUI-tools-by-dong [UNSAFE]"
@@ -1476,13 +1472,12 @@
"title_aux": "Patatajec-Nodes [WIP]"
}
],
"https://github.com/PluMaZero/ComfyUI-SpaceFlower": [
"https://github.com/Pablerdo/ComfyUI-Sa2VAWrapper": [
[
"SpaceFlower_HangulPrompt",
"SpaceFlower_Prompt"
"GetCaptionFromImages"
],
{
"title_aux": "ComfyUI-SpaceFlower"
"title_aux": "ComfyUI-Sa2VAWrapper [WIP]"
}
],
"https://github.com/Poseidon-fan/ComfyUI-fileCleaner": [
@@ -1554,6 +1549,14 @@
"title_aux": "comfyui-promptbymood [WIP]"
}
],
"https://github.com/RUFFY-369/ComfyUI-FeatureBank": [
[
"FeatureBankAttentionProcessor"
],
{
"title_aux": "ComfyUI-FeatureBank"
}
],
"https://github.com/RicherdLee/comfyui-oss-image-save": [
[
"SaveImageOSS"
@@ -1575,6 +1578,22 @@
"title_aux": "Comfy UI Robe Nodes [UNSAFE]"
}
],
"https://github.com/RoyKillington/miscomfy-nodes": [
[
"VeniceUpscale"
],
{
"title_aux": "Miscomfy Nodes [WIP]"
}
],
"https://github.com/S4MUEL-404/ComfyUI-Folder-Images-Preview": [
[
"FolderImagesPreview"
],
{
"title_aux": "ComfyUI-Folder-Images-Preview [UNSAFE]"
}
],
"https://github.com/SS-snap/ComfyUI-Snap_Processing": [
[
"AreaCalculator",
@@ -1805,7 +1824,8 @@
[
"Example",
"FluxImageUpscaler",
"FluxLoader"
"FluxLoader",
"FluxTextPrompt"
],
{
"title_aux": "comfyui_flux_collection_advanced [WIP]"
@@ -2134,6 +2154,14 @@
"title_aux": "ComfyUI-SkipCFGSigmas"
}
],
"https://github.com/aria1th/ComfyUI-camietagger-onnx": [
[
"CamieTagger"
],
{
"title_aux": "ComfyUI-camietagger-onnx"
}
],
"https://github.com/artem-konevskikh/comfyui-split-merge-video": [
[
"VideoMerger",
@@ -2166,6 +2194,7 @@
"ImageToPrompt",
"MiniMaxAIAPIClient",
"MiniMaxImage2Video",
"MiniMaxImageGenerator",
"MiniMaxPreviewVideo"
],
{
@@ -2615,6 +2644,7 @@
"GLIGENLoader",
"GLIGENTextBoxApply",
"GrowMask",
"HunyuanImageToVideo",
"HyperTile",
"HypernetworkLoader",
"ImageBatch",
@@ -2643,8 +2673,11 @@
"KSamplerAdvanced",
"KSamplerSelect",
"KarrasScheduler",
"LTXVAddGuide",
"LTXVConditioning",
"LTXVCropGuides",
"LTXVImgToVideo",
"LTXVPreprocess",
"LTXVScheduler",
"LaplaceScheduler",
"LatentAdd",
@@ -2801,6 +2834,7 @@
"TestVariadicAverage",
"TestWhileLoopClose",
"TestWhileLoopOpen",
"TextEncodeHunyuanVideo_ImageToVideo",
"ThresholdMask",
"TomePatchModel",
"TorchCompileModel",
@@ -3091,10 +3125,12 @@
"https://github.com/fablestudio/ComfyUI-Showrunner-Utils": [
[
"AlignFace",
"Alpha Crop and Position Image",
"GenerateTimestamp",
"GetMostCommonColors",
"ReadImage",
"RenderOpenStreetMapTile"
"RenderOpenStreetMapTile",
"Shrink Image"
],
{
"title_aux": "ComfyUI-Showrunner-Utils"
@@ -3249,8 +3285,12 @@
"XIS_FromListGet1Model",
"XIS_FromListGet1String",
"XIS_INT_Slider",
"XIS_ImageMaskMirror",
"XIS_InvertMask",
"XIS_IsThereAnyData",
"XIS_PromptsWithSwitches",
"XIS_ResizeImageOrMask"
"XIS_ResizeImageOrMask",
"XIS_ResizeToDivisible"
],
{
"title_aux": "Xiser_Nodes [WIP]"
@@ -3305,7 +3345,7 @@
"ACE_ImageFaceCrop",
"ACE_ImageGetSize",
"ACE_ImageLoadFromCloud",
"ACE_ImageMakeSlieshow",
"ACE_ImageMakeSlideshow",
"ACE_ImagePixelate",
"ACE_ImageQA",
"ACE_ImageRemoveBackground",
@@ -3781,15 +3821,11 @@
],
"https://github.com/kandy/ComfyUI-KAndy": [
[
"KAndyBatch2Index",
"KAndyBatchIndex",
"KAndyCivitImagesAPI",
"KAndyCivitPromptAPI",
"KAndyImageSave",
"KAndyImagesByCss",
"KAndyLoadImageFromUrl",
"KAndyNoiseCondition",
"KCivitaiPostAPI",
"KPornImageAPI",
"KPromtGen",
"KandySimplePrompt"
@@ -3929,7 +3965,10 @@
"HyVideoDecode",
"HyVideoEmptyTextEmbeds",
"HyVideoEncode",
"HyVideoEncodeKeyframes",
"HyVideoEnhanceAVideo",
"HyVideoGetClosestBucketSize",
"HyVideoI2VEncode",
"HyVideoInverseSampler",
"HyVideoLatentPreview",
"HyVideoLoraBlockEdit",
@@ -3940,6 +3979,7 @@
"HyVideoSTG",
"HyVideoSampler",
"HyVideoTeaCache",
"HyVideoTextEmbedBridge",
"HyVideoTextEmbedsLoad",
"HyVideoTextEmbedsSave",
"HyVideoTextEncode",
@@ -4009,15 +4049,18 @@
"LoadWanVideoT5TextEncoder",
"WanVideoBlockSwap",
"WanVideoContextOptions",
"WanVideoControlEmbeds",
"WanVideoDecode",
"WanVideoEmptyEmbeds",
"WanVideoEncode",
"WanVideoEnhanceAVideo",
"WanVideoFlowEdit",
"WanVideoImageClipEncode",
"WanVideoLatentPreview",
"WanVideoLoraBlockEdit",
"WanVideoLoraSelect",
"WanVideoModelLoader",
"WanVideoSLG",
"WanVideoSampler",
"WanVideoTeaCache",
"WanVideoTextEmbedBridge",
@@ -4049,6 +4092,7 @@
],
"https://github.com/kk8bit/KayTool": [
[
"AB_Images",
"AIO_Translater",
"Abc_Math",
"Baidu_Translater",
@@ -4057,6 +4101,7 @@
"Custom_Save_Image",
"Display_Any",
"Image_Size_Extractor",
"Load_Image_Folder",
"Mask_Blur_Plus",
"Preview_Mask",
"Preview_Mask_Plus",
@@ -4324,6 +4369,14 @@
"title_aux": "comfyui-one-more-step [WIP]"
}
],
"https://github.com/longzoho/ComfyUI-Qdrant-Saver": [
[
"QDrantSaver"
],
{
"title_aux": "ComfyUI-Qdrant-Saver"
}
],
"https://github.com/lordwedggie/xcpNodes": [
[
"derpBaseAlpha",
@@ -4785,17 +4838,22 @@
],
"https://github.com/nomcycle/ComfyUI_Cluster": [
[
"ClusterBroadcastLoadedImage",
"ClusterBroadcastTensor",
"ClusterExecuteCurrentWorkflow",
"ClusterExecuteWorkflow",
"ClusterFanOutImage",
"ClusterFanOutLatent",
"ClusterFanOutMask",
"ClusterFlattenBatchedImageList",
"ClusterGatherImages",
"ClusterGatherLatents",
"ClusterGatherMasks",
"ClusterInstanceIndex",
"ClusterListenTensorBroadcast"
"ClusterGetInstanceWorkItemFromBatch",
"ClusterInfo",
"ClusterListenTensorBroadcast",
"ClusterSplitBatchToList",
"ClusterStridedReorder"
],
{
"title_aux": "ComfyUI_Cluster [WIP]"
@@ -4884,6 +4942,7 @@
"LatentToWidthHeight",
"MaskCompositePPM",
"PPMSamplerSelect",
"RenormCFGPost",
"RescaleCFGPost"
],
{
@@ -5188,6 +5247,17 @@
"title_aux": "ComfyUI_CheckPointLoader_Ext [WIP]"
}
],
"https://github.com/silveroxides/ComfyUI-ModelUtils": [
[
"CLIPMetaKeys",
"CheckpointMetaKeys",
"LoRAMetaKeys",
"UNetMetaKeys"
],
{
"title_aux": "ComfyUI-ModelUtils [WIP]"
}
],
"https://github.com/sizzlebop/comfyui-llm-prompt-enhancer": [
[
"PromptEnhancer"
@@ -5386,6 +5456,20 @@
"title_aux": "Divergent Nodes [WIP]"
}
],
"https://github.com/thisiseddy-ab/ComfyUI-Edins-Ultimate-Pack": [
[
"EUP - Iterative Latent Upscaler",
"EUP - Latent Merger",
"EUP - Latent Tiler",
"EUP - Pixel TiledKSample Upscaler Provider",
"EUP - Pixel TiledKSample Upscaler Provider Pipe",
"EUP - Tiled KSampler",
"EUP - Tiled KSampler Advanced"
],
{
"title_aux": "ComfyUI-Edins-Ultimate-Pack"
}
],
"https://github.com/threadedblue/MLXnodes": [
[
"MLXImg2Img",
@@ -5491,14 +5575,6 @@
"title_aux": "ComfyUI-Dist [WIP]"
}
],
"https://github.com/vahidzxc/ComfyUI-My-Handy-Nodes": [
[
"VahCropImage"
],
{
"title_aux": "ComfyUI-My-Handy-Nodes"
}
],
"https://github.com/var1ableX/ComfyUI_Accessories": [
[
"ACC_AnyCast",
@@ -5621,23 +5697,60 @@
"title_aux": "CombineMasksNode"
}
],
"https://github.com/xmarked-ai/ComfyUI_misc": [
[
"AceColorFixX",
"AceFloatX",
"AceIntegerX",
"CheckpointLoaderBNB_X",
"CheckpointLoaderNF4_X",
"ColorTransferNodeX",
"DeepSeekX",
"DepthDisplaceX",
"EmptyLatentX",
"IfConditionX",
"ImageTileSquare",
"ImageUntileSquare",
"KSamplerComboX",
"LoopCloseX",
"LoopOpenX",
"LoraBatchSamplerX",
"PixtralVisionX",
"PixtralX",
"RegionTesterNodeX",
"RelightX",
"RemoveBackgroundX",
"SaveImageX",
"SelectiveDepthLoraBlocksX",
"UnetLoaderBNB_X",
"WhiteBalanceX"
],
{
"title_aux": "ComfyUI_misc"
}
],
"https://github.com/yanhuifair/ComfyUI-FairLab": [
[
"AppendTagsNode",
"BlacklistTagsNode",
"CLIPTranslatedNode",
"DownloadImageNode",
"FillAlphaNode",
"FixUTF8StringNode",
"FloatNode",
"ImageResizeNode",
"ImageToVideoNode",
"IntNode",
"LoadImageFromDirectoryNode",
"LoadImageFromURLNode",
"PrependTagsNode",
"PrintAnyNode",
"PrintImageNode",
"SaveImageToDirectoryNode",
"SaveStringToDirectoryNode",
"SequenceStringListNode",
"StringCombineNode",
"StringFieldNode",
"StringNode",
"TranslateStringNode",
"VideoToImageNode"
],
@@ -5704,6 +5817,14 @@
"title_aux": "Comfyui_image2prompt"
}
],
"https://github.com/zjkhurry/comfyui_MetalFX": [
[
"metalFXImg"
],
{
"title_aux": "comfyui_MetalFX [WIP]"
}
],
"https://github.com/zyd232/ComfyUI-zyd232-Nodes": [
[
"zyd232 ImagesPixelsCompare",

View File

File diff suppressed because it is too large Load Diff

View File

@@ -11,6 +11,96 @@
{
"author": "l1yongch1",
"title": "ComfyUI_PhiCaption [REMOVED]",
"reference": "https://github.com/l1yongch1/ComfyUI_PhiCaption",
"files": [
"https://github.com/l1yongch1/ComfyUI_PhiCaption"
],
"install_type": "git-clone",
"description": "In addition to achieving conventional single-image, single-round reverse engineering, it can also achieve single-image multi-round and multi-image single-round reverse engineering. Moreover, the Phi model has a better understanding of prompts."
},
{
"author": "nova-florealis",
"title": "comfyui-alien [REMOVED]",
"reference": "https://github.com/nova-florealis/comfyui-alien",
"files": [
"https://github.com/nova-florealis/comfyui-alien"
],
"install_type": "git-clone",
"description": "NODES: Text to Text (LLM), Text Output, Convert to Markdown, List Display (Debug)"
},
{
"author": "PluMaZero",
"title": "ComfyUI-SpaceFlower [REMOVED]",
"reference": "https://github.com/PluMaZero/ComfyUI-SpaceFlower",
"files": [
"https://github.com/PluMaZero/ComfyUI-SpaceFlower"
],
"install_type": "git-clone",
"description": "Nodes: SpaceFlower_Prompt, SpaceFlower_HangulPrompt, ..."
},
{
"author": "vahidzxc",
"title": "ComfyUI-My-Handy-Nodes [REMOVED]",
"reference": "https://github.com/vahidzxc/ComfyUI-My-Handy-Nodes",
"files": [
"https://github.com/vahidzxc/ComfyUI-My-Handy-Nodes"
],
"install_type": "git-clone",
"description": "NODES:VahCropImage"
},
{
"author": "Samulebotin",
"title": "ComfyUI-FreeVC_wrapper [REMOVED]",
"reference": "https://github.com/Samulebotin/ComfyUI-FreeVC_wrapper",
"files": [
"https://github.com/Samulebotin/ComfyUI-FreeVC_wrapper"
],
"install_type": "git-clone",
"description": "A voice conversion extension node for ComfyUI based on FreeVC, enabling high-quality voice conversion capabilities within the ComfyUI framework."
},
{
"author": "GoingAI1998",
"title": "ComfyUI Web Canvas Node [REMOVED]",
"reference": "https://github.com/GoingAI1998/Comfyui_imgcanvas",
"files": [
"https://github.com/GoingAI1998/Comfyui_imgcanvas"
],
"install_type": "git-clone",
"description": "ComfyUI_imgcanvas At present, I have not used the useful comfyui custom node about layer mixing, and I have written a comfyui runtime automatic pop-up window for layer editing node"
},
{
"author": "807502278",
"title": "ComfyUI_TensorRT_Merge [REMOVED]",
"reference": "https://github.com/807502278/ComfyUI_TensorRT_Merge",
"files": [
"https://github.com/807502278/ComfyUI_TensorRT_Merge"
],
"install_type": "git-clone",
"description": "Non diffusion models supported by TensorRT, merged Comfyui plugin, added onnx automatic download and trt model conversion nodes."
},
{
"author": "logtd",
"title": "ComfyUI-LTXTricks [DEPRECATED]",
"reference": "https://github.com/logtd/ComfyUI-LTXTricks",
"files": [
"https://github.com/logtd/ComfyUI-LTXTricks"
],
"install_type": "git-clone",
"description": "A set of nodes that provide additional controls for the LTX Video model"
},
{
"author": "JichaoLiang",
"title": "Immortal_comfyUI [REMOVED]",
"reference": "https://github.com/JichaoLiang/Immortal_comfyUI",
"files": [
"https://github.com/JichaoLiang/Immortal_comfyUI"
],
"install_type": "git-clone",
"description": "NODES:ImNewNode, ImAppendNode, MergeNode, SetProperties, SaveToDirectory, batchNodes, redirectToNode, SetEvent, ..."
},
{
"author": "Rvage0815",
"title": "ComfyUI-RvTools [REMOVED]",

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,39 @@
{
"models": [
{
"name": "Comfy-Org/hunyuan_video_image_to_video_720p_bf16.safetensors",
"type": "diffusion_model",
"base": "Hunyuan Video",
"save_path": "diffusion_models/hunyuan_video",
"description": "Huyuan Video Image2Video diffusion model. repackaged version.",
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
"filename": "hunyuan_video_image_to_video_720p_bf16.safetensors",
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/diffusion_models/hunyuan_video_image_to_video_720p_bf16.safetensors",
"size": "25.6GB"
},
{
"name": "Comfy-Org/llava_llama3_vision.safetensors",
"type": "clip_vision",
"base": "LLaVA-Llama-3",
"save_path": "text_encoders",
"description": "llava_llama3_vision clip vison model. This is required for using Hunyuan Video Image2Video.",
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
"filename": "llava_llama3_vision.safetensors",
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/clip_vision/llava_llama3_vision.safetensors",
"size": "649MB"
},
{
"name": "LTX-Video 2B v0.9.5 Checkpoint",
"type": "checkpoint",
"base": "LTX-Video",
"save_path": "checkpoints/LTXV",
"description": "LTX-Video is the first DiT-based video generation model capable of generating high-quality videos in real-time. It produces 24 FPS videos at a 768x512 resolution faster than they can be watched. Trained on a large-scale dataset of diverse videos, the model generates high-resolution videos with realistic and varied content.",
"reference": "https://huggingface.co/Lightricks/LTX-Video",
"filename": "ltx-video-2b-v0.9.5.safetensors",
"url": "https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltx-video-2b-v0.9.5.safetensors",
"size": "6.34GB"
},
{
"name": "kolors/vae/diffusion_pytorch_model.fp16.safetensors",
"type": "VAE",

View File

@@ -21,6 +21,8 @@ import cm_global
import manager_downloader
import folder_paths
manager_util.add_python_path_to_env()
import datetime
if hasattr(datetime, 'datetime'):
from datetime import datetime
@@ -35,8 +37,6 @@ else:
security_check.security_check()
manager_util.add_python_path_to_env()
cm_global.pip_blacklist = {'torch', 'torchsde', 'torchvision'}
cm_global.pip_downgrade_blacklist = ['torch', 'torchsde', 'torchvision', 'transformers', 'safetensors', 'kornia']
@@ -507,7 +507,7 @@ check_bypass_ssl()
# Perform install
processed_install = set()
script_list_path = os.path.join(folder_paths.user_directory, "default", "ComfyUI-Manager", "startup-scripts", "install-scripts.txt")
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path)
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages(), comfy_path, manager_files_path)
def is_installed(name):
@@ -816,7 +816,10 @@ if script_executed:
else:
sys_argv = sys.argv.copy()
if sys.platform.startswith('win32'):
if sys_argv[0].endswith("__main__.py"): # this is a python module
module_name = os.path.basename(os.path.dirname(sys_argv[0]))
cmds = [sys.executable, '-m', module_name] + sys_argv[1:]
elif sys.platform.startswith('win32'):
cmds = ['"' + sys.executable + '"', '"' + sys_argv[0] + '"'] + sys_argv[1:]
else:
cmds = [sys.executable] + sys_argv

View File

@@ -1,7 +1,7 @@
[project]
name = "comfyui-manager"
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
version = "3.28"
version = "3.31"
license = { file = "LICENSE.txt" }
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"]