Compare commits
47 Commits
attach_nod
...
2.56.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f4184b887 | ||
|
|
a148bb5aeb | ||
|
|
ad632de6da | ||
|
|
bde8911dab | ||
|
|
3c894d83a2 | ||
|
|
d4e1d1e2f7 | ||
|
|
c01aacbcee | ||
|
|
939cb12670 | ||
|
|
91736ef29d | ||
|
|
6e303f7cf4 | ||
|
|
9440d18b25 | ||
|
|
5a9270de85 | ||
|
|
95868c071b | ||
|
|
e427f20158 | ||
|
|
664a582576 | ||
|
|
df9ceb0274 | ||
|
|
118c4e8119 | ||
|
|
9ea803f89a | ||
|
|
0d43aba286 | ||
|
|
b6b30edf17 | ||
|
|
3784bd7027 | ||
|
|
915687f4f4 | ||
|
|
07aa30fccc | ||
|
|
e39ab82142 | ||
|
|
f0d5ad122a | ||
|
|
dd4db738fd | ||
|
|
50b1e3372d | ||
|
|
84f6e2e1bf | ||
|
|
59e4e0fba4 | ||
|
|
171496c2ca | ||
|
|
b6e8659371 | ||
|
|
1553ff1211 | ||
|
|
979a039847 | ||
|
|
f53f1e64c6 | ||
|
|
9caf45fd81 | ||
|
|
dfa71443ca | ||
|
|
c7511c7aa9 | ||
|
|
a41d8d6101 | ||
|
|
46f2a204be | ||
|
|
bbc5ba7e2a | ||
|
|
ad56608b4d | ||
|
|
bc63166f48 | ||
|
|
d2743e1b1e | ||
|
|
376253eb49 | ||
|
|
4997c3b5a9 | ||
|
|
70af864d2d | ||
|
|
067167cc39 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,8 +1,6 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
.idea/
|
.idea/
|
||||||
.vscode/
|
.vscode/
|
||||||
.history/
|
|
||||||
*.code-workspace
|
|
||||||
.tmp
|
.tmp
|
||||||
.cache
|
.cache
|
||||||
config.ini
|
config.ini
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ This repository provides Colab notebooks that allow you to install and use Comfy
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
* Through the Share settings in the Manager menu, you can configure the behavior of the Share button in the Main menu or Share Ouput button on Context Menu.
|
* Through the Share settings in the Manager menu, you can configure the behavior of the Share button in the Main menu or Share Output button on Context Menu.
|
||||||
* `None`: hide from Main menu
|
* `None`: hide from Main menu
|
||||||
* `All`: Show a dialog where the user can select a title for sharing.
|
* `All`: Show a dialog where the user can select a title for sharing.
|
||||||
|
|
||||||
@@ -320,9 +320,6 @@ NODE_CLASS_MAPPINGS.update({
|
|||||||
* Use `aria2` as downloader
|
* Use `aria2` as downloader
|
||||||
* [howto](docs/en/use_aria2.md)
|
* [howto](docs/en/use_aria2.md)
|
||||||
|
|
||||||
* If you add the item `skip_migration_check = True` to `config.ini`, it will not check whether there are nodes that can be migrated at startup.
|
|
||||||
* This option can be used if performance issues occur in a Colab+GDrive environment.
|
|
||||||
|
|
||||||
## Scanner
|
## Scanner
|
||||||
When you run the `scan.sh` script:
|
When you run the `scan.sh` script:
|
||||||
|
|
||||||
|
|||||||
1
check.sh
1
check.sh
@@ -9,7 +9,6 @@ files=(
|
|||||||
"alter-list.json"
|
"alter-list.json"
|
||||||
"extension-node-map.json"
|
"extension-node-map.json"
|
||||||
"github-stats.json"
|
"github-stats.json"
|
||||||
"extras.json"
|
|
||||||
"node_db/new/custom-node-list.json"
|
"node_db/new/custom-node-list.json"
|
||||||
"node_db/new/model-list.json"
|
"node_db/new/model-list.json"
|
||||||
"node_db/new/extension-node-map.json"
|
"node_db/new/extension-node-map.json"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
25
extras.json
25
extras.json
@@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"favorites": [
|
|
||||||
"comfyui_ipadapter_plus",
|
|
||||||
"comfyui-animatediff-evolved",
|
|
||||||
"comfyui_controlnet_aux",
|
|
||||||
"comfyui-impact-pack",
|
|
||||||
"comfyui-custom-scripts",
|
|
||||||
"comfyui-layerdiffuse",
|
|
||||||
"comfyui-liveportraitkj",
|
|
||||||
"aigodlike-comfyui-translation",
|
|
||||||
"comfyui-reactor-node",
|
|
||||||
"comfyui_instantid",
|
|
||||||
"sd-dynamic-thresholding",
|
|
||||||
"pr-was-node-suite-comfyui-47064894",
|
|
||||||
"comfyui-advancedliveportrait",
|
|
||||||
"comfyui_layerstyle",
|
|
||||||
"efficiency-nodes-comfyui",
|
|
||||||
"comfyui-crystools",
|
|
||||||
"comfyui-advanced-controlnet",
|
|
||||||
"comfyui-videohelpersuite",
|
|
||||||
"comfyui-kjnodes",
|
|
||||||
"comfy-mtb",
|
|
||||||
"comfyui_essentials"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -5,6 +5,7 @@ import traceback
|
|||||||
|
|
||||||
import git
|
import git
|
||||||
import configparser
|
import configparser
|
||||||
|
import re
|
||||||
import json
|
import json
|
||||||
import yaml
|
import yaml
|
||||||
import requests
|
import requests
|
||||||
@@ -12,14 +13,6 @@ from tqdm.auto import tqdm
|
|||||||
from git.remote import RemoteProgress
|
from git.remote import RemoteProgress
|
||||||
|
|
||||||
|
|
||||||
comfy_path = os.environ.get('COMFYUI_PATH')
|
|
||||||
|
|
||||||
if comfy_path is None:
|
|
||||||
print("\n[bold yellow]WARN: The `COMFYUI_PATH` environment variable is not set. Assuming `custom_nodes/ComfyUI-Manager/../../` as the ComfyUI path.[/bold yellow]", file=sys.stderr)
|
|
||||||
comfy_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def download_url(url, dest_folder, filename=None):
|
def download_url(url, dest_folder, filename=None):
|
||||||
# Ensure the destination folder exists
|
# Ensure the destination folder exists
|
||||||
if not os.path.exists(dest_folder):
|
if not os.path.exists(dest_folder):
|
||||||
@@ -66,10 +59,8 @@ class GitProgress(RemoteProgress):
|
|||||||
self.pbar.refresh()
|
self.pbar.refresh()
|
||||||
|
|
||||||
|
|
||||||
def gitclone(custom_nodes_path, url, target_hash=None, repo_path=None):
|
def gitclone(custom_nodes_path, url, target_hash=None):
|
||||||
repo_name = os.path.splitext(os.path.basename(url))[0]
|
repo_name = os.path.splitext(os.path.basename(url))[0]
|
||||||
|
|
||||||
if repo_path is None:
|
|
||||||
repo_path = os.path.join(custom_nodes_path, repo_name)
|
repo_path = os.path.join(custom_nodes_path, repo_name)
|
||||||
|
|
||||||
# Clone the repository from the remote URL
|
# Clone the repository from the remote URL
|
||||||
@@ -103,12 +94,7 @@ def gitcheck(path, do_fetch=False):
|
|||||||
|
|
||||||
# Get the current commit hash and the commit hash of the remote branch
|
# Get the current commit hash and the commit hash of the remote branch
|
||||||
commit_hash = repo.head.commit.hexsha
|
commit_hash = repo.head.commit.hexsha
|
||||||
|
|
||||||
if f'{remote_name}/{branch_name}' in repo.refs:
|
|
||||||
remote_commit_hash = repo.refs[f'{remote_name}/{branch_name}'].object.hexsha
|
remote_commit_hash = repo.refs[f'{remote_name}/{branch_name}'].object.hexsha
|
||||||
else:
|
|
||||||
print("CUSTOM NODE CHECK: True") # non default branch is treated as updatable
|
|
||||||
return
|
|
||||||
|
|
||||||
# Compare the commit hashes to determine if the local repository is behind the remote repository
|
# Compare the commit hashes to determine if the local repository is behind the remote repository
|
||||||
if commit_hash != remote_commit_hash:
|
if commit_hash != remote_commit_hash:
|
||||||
@@ -127,7 +113,10 @@ def gitcheck(path, do_fetch=False):
|
|||||||
|
|
||||||
|
|
||||||
def switch_to_default_branch(repo):
|
def switch_to_default_branch(repo):
|
||||||
default_branch = repo.git.symbolic_ref('refs/remotes/origin/HEAD').replace('refs/remotes/origin/', '')
|
show_result = repo.git.remote("show", "origin")
|
||||||
|
matches = re.search(r"\s*HEAD branch:\s*(.*)", show_result)
|
||||||
|
if matches:
|
||||||
|
default_branch = matches.group(1)
|
||||||
repo.git.checkout(default_branch)
|
repo.git.checkout(default_branch)
|
||||||
|
|
||||||
|
|
||||||
@@ -139,7 +128,6 @@ def gitpull(path):
|
|||||||
# Pull the latest changes from the remote repository
|
# Pull the latest changes from the remote repository
|
||||||
repo = git.Repo(path)
|
repo = git.Repo(path)
|
||||||
if repo.is_dirty():
|
if repo.is_dirty():
|
||||||
print(f"STASH: '{path}' is dirty.")
|
|
||||||
repo.git.stash()
|
repo.git.stash()
|
||||||
|
|
||||||
commit_hash = repo.head.commit.hexsha
|
commit_hash = repo.head.commit.hexsha
|
||||||
@@ -153,11 +141,6 @@ def gitpull(path):
|
|||||||
remote_name = current_branch.tracking_branch().remote_name
|
remote_name = current_branch.tracking_branch().remote_name
|
||||||
remote = repo.remote(name=remote_name)
|
remote = repo.remote(name=remote_name)
|
||||||
|
|
||||||
if f'{remote_name}/{branch_name}' not in repo.refs:
|
|
||||||
switch_to_default_branch(repo)
|
|
||||||
current_branch = repo.active_branch
|
|
||||||
branch_name = current_branch.name
|
|
||||||
|
|
||||||
remote.fetch()
|
remote.fetch()
|
||||||
remote_commit_hash = repo.refs[f'{remote_name}/{branch_name}'].object.hexsha
|
remote_commit_hash = repo.refs[f'{remote_name}/{branch_name}'].object.hexsha
|
||||||
|
|
||||||
@@ -183,7 +166,9 @@ def gitpull(path):
|
|||||||
|
|
||||||
|
|
||||||
def checkout_comfyui_hash(target_hash):
|
def checkout_comfyui_hash(target_hash):
|
||||||
repo = git.Repo(comfy_path)
|
repo_path = os.path.abspath(os.path.join(working_directory, '..')) # ComfyUI dir
|
||||||
|
|
||||||
|
repo = git.Repo(repo_path)
|
||||||
commit_hash = repo.head.commit.hexsha
|
commit_hash = repo.head.commit.hexsha
|
||||||
|
|
||||||
if commit_hash != target_hash:
|
if commit_hash != target_hash:
|
||||||
@@ -206,7 +191,7 @@ def checkout_custom_node_hash(git_custom_node_infos):
|
|||||||
repo_name_to_url[repo_name] = url
|
repo_name_to_url[repo_name] = url
|
||||||
|
|
||||||
for path in os.listdir(working_directory):
|
for path in os.listdir(working_directory):
|
||||||
if '@' in path or path.endswith("ComfyUI-Manager"):
|
if path.endswith("ComfyUI-Manager"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
fullpath = os.path.join(working_directory, path)
|
fullpath = os.path.join(working_directory, path)
|
||||||
@@ -265,9 +250,6 @@ def checkout_custom_node_hash(git_custom_node_infos):
|
|||||||
|
|
||||||
# clone missing
|
# clone missing
|
||||||
for k, v in git_custom_node_infos.items():
|
for k, v in git_custom_node_infos.items():
|
||||||
if 'ComfyUI-Manager' in k:
|
|
||||||
continue
|
|
||||||
|
|
||||||
if not v['disabled']:
|
if not v['disabled']:
|
||||||
repo_name = k.split('/')[-1]
|
repo_name = k.split('/')[-1]
|
||||||
if repo_name.endswith('.git'):
|
if repo_name.endswith('.git'):
|
||||||
@@ -276,7 +258,7 @@ def checkout_custom_node_hash(git_custom_node_infos):
|
|||||||
path = os.path.join(working_directory, repo_name)
|
path = os.path.join(working_directory, repo_name)
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
print(f"CLONE: {path}")
|
print(f"CLONE: {path}")
|
||||||
gitclone(working_directory, k, target_hash=v['hash'])
|
gitclone(working_directory, k, v['hash'])
|
||||||
|
|
||||||
|
|
||||||
def invalidate_custom_node_file(file_custom_node_infos):
|
def invalidate_custom_node_file(file_custom_node_infos):
|
||||||
@@ -326,18 +308,19 @@ def invalidate_custom_node_file(file_custom_node_infos):
|
|||||||
download_url(url, working_directory)
|
download_url(url, working_directory)
|
||||||
|
|
||||||
|
|
||||||
def apply_snapshot(path):
|
def apply_snapshot(target):
|
||||||
try:
|
try:
|
||||||
|
path = os.path.join(os.path.dirname(__file__), 'snapshots', f"{target}")
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
if not path.endswith('.json') and not path.endswith('.yaml'):
|
if not target.endswith('.json') and not target.endswith('.yaml'):
|
||||||
print(f"Snapshot file not found: `{path}`")
|
print(f"Snapshot file not found: `{path}`")
|
||||||
print("APPLY SNAPSHOT: False")
|
print("APPLY SNAPSHOT: False")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
with open(path, 'r', encoding="UTF-8") as snapshot_file:
|
with open(path, 'r', encoding="UTF-8") as snapshot_file:
|
||||||
if path.endswith('.json'):
|
if target.endswith('.json'):
|
||||||
info = json.load(snapshot_file)
|
info = json.load(snapshot_file)
|
||||||
elif path.endswith('.yaml'):
|
elif target.endswith('.yaml'):
|
||||||
info = yaml.load(snapshot_file, Loader=yaml.SafeLoader)
|
info = yaml.load(snapshot_file, Loader=yaml.SafeLoader)
|
||||||
info = info['custom_nodes']
|
info = info['custom_nodes']
|
||||||
else:
|
else:
|
||||||
@@ -442,11 +425,7 @@ setup_environment()
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if sys.argv[1] == "--clone":
|
if sys.argv[1] == "--clone":
|
||||||
repo_path = None
|
gitclone(sys.argv[2], sys.argv[3])
|
||||||
if len(sys.argv) > 4:
|
|
||||||
repo_path = sys.argv[4]
|
|
||||||
|
|
||||||
gitclone(sys.argv[2], sys.argv[3], repo_path=repo_path)
|
|
||||||
elif sys.argv[1] == "--check":
|
elif sys.argv[1] == "--check":
|
||||||
gitcheck(sys.argv[2], False)
|
gitcheck(sys.argv[2], False)
|
||||||
elif sys.argv[1] == "--fetch":
|
elif sys.argv[1] == "--fetch":
|
||||||
|
|||||||
5407
github-stats.json
5407
github-stats.json
File diff suppressed because it is too large
Load Diff
@@ -1,100 +0,0 @@
|
|||||||
import requests
|
|
||||||
from dataclasses import dataclass
|
|
||||||
from typing import List
|
|
||||||
import manager_util
|
|
||||||
|
|
||||||
base_url = "https://api.comfy.org"
|
|
||||||
|
|
||||||
|
|
||||||
async def get_cnr_data(page=1, limit=1000, cache_mode=True):
|
|
||||||
try:
|
|
||||||
uri = f'{base_url}/nodes?page={page}&limit={limit}'
|
|
||||||
json_obj = await manager_util.get_data_with_cache(uri, cache_mode=cache_mode)
|
|
||||||
|
|
||||||
for v in json_obj['nodes']:
|
|
||||||
if 'latest_version' not in v:
|
|
||||||
v['latest_version'] = dict(version='nightly')
|
|
||||||
|
|
||||||
return json_obj['nodes']
|
|
||||||
except:
|
|
||||||
res = {}
|
|
||||||
print("Cannot connect to comfyregistry.")
|
|
||||||
|
|
||||||
return res
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
|
||||||
class NodeVersion:
|
|
||||||
changelog: str
|
|
||||||
dependencies: List[str]
|
|
||||||
deprecated: bool
|
|
||||||
id: str
|
|
||||||
version: str
|
|
||||||
download_url: str
|
|
||||||
|
|
||||||
|
|
||||||
def map_node_version(api_node_version):
|
|
||||||
"""
|
|
||||||
Maps node version data from API response to NodeVersion dataclass.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
api_data (dict): The 'node_version' part of the API response.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
NodeVersion: An instance of NodeVersion dataclass populated with data from the API.
|
|
||||||
"""
|
|
||||||
return NodeVersion(
|
|
||||||
changelog=api_node_version.get(
|
|
||||||
"changelog", ""
|
|
||||||
), # Provide a default value if 'changelog' is missing
|
|
||||||
dependencies=api_node_version.get(
|
|
||||||
"dependencies", []
|
|
||||||
), # Provide a default empty list if 'dependencies' is missing
|
|
||||||
deprecated=api_node_version.get(
|
|
||||||
"deprecated", False
|
|
||||||
), # Assume False if 'deprecated' is not specified
|
|
||||||
id=api_node_version[
|
|
||||||
"id"
|
|
||||||
], # 'id' should be mandatory; raise KeyError if missing
|
|
||||||
version=api_node_version[
|
|
||||||
"version"
|
|
||||||
], # 'version' should be mandatory; raise KeyError if missing
|
|
||||||
download_url=api_node_version.get(
|
|
||||||
"downloadUrl", ""
|
|
||||||
), # Provide a default value if 'downloadUrl' is missing
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def install_node(node_id, version=None):
|
|
||||||
"""
|
|
||||||
Retrieves the node version for installation.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
node_id (str): The unique identifier of the node.
|
|
||||||
version (str, optional): Specific version of the node to retrieve. If omitted, the latest version is returned.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
NodeVersion: Node version data or error message.
|
|
||||||
"""
|
|
||||||
if version is None:
|
|
||||||
url = f"{base_url}/nodes/{node_id}/install"
|
|
||||||
else:
|
|
||||||
url = f"{base_url}/nodes/{node_id}/install?version={version}"
|
|
||||||
|
|
||||||
response = requests.get(url)
|
|
||||||
if response.status_code == 200:
|
|
||||||
# Convert the API response to a NodeVersion object
|
|
||||||
return map_node_version(response.json())
|
|
||||||
else:
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
def all_versions_of_node(node_id):
|
|
||||||
url = f"https://api.comfy.org/nodes/{node_id}/versions"
|
|
||||||
|
|
||||||
response = requests.get(url)
|
|
||||||
if response.status_code == 200:
|
|
||||||
return response.json()
|
|
||||||
else:
|
|
||||||
return None
|
|
||||||
|
|
||||||
2361
glob/manager_core.py
2361
glob/manager_core.py
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
import urllib
|
|
||||||
import sys
|
|
||||||
|
|
||||||
aria2 = os.getenv('COMFYUI_MANAGER_ARIA2_SERVER')
|
aria2 = os.getenv('COMFYUI_MANAGER_ARIA2_SERVER')
|
||||||
HF_ENDPOINT = os.getenv('HF_ENDPOINT')
|
HF_ENDPOINT = os.getenv('HF_ENDPOINT')
|
||||||
@@ -16,32 +14,14 @@ if aria2 is not None:
|
|||||||
aria2 = aria2p.API(aria2p.Client(host=host, port=port, secret=secret))
|
aria2 = aria2p.API(aria2p.Client(host=host, port=port, secret=secret))
|
||||||
|
|
||||||
|
|
||||||
def basic_download_url(url, dest_folder, filename):
|
|
||||||
import requests
|
|
||||||
|
|
||||||
# Ensure the destination folder exists
|
|
||||||
if not os.path.exists(dest_folder):
|
|
||||||
os.makedirs(dest_folder)
|
|
||||||
|
|
||||||
# Full path to save the file
|
|
||||||
dest_path = os.path.join(dest_folder, filename)
|
|
||||||
|
|
||||||
# Download the file
|
|
||||||
response = requests.get(url, stream=True)
|
|
||||||
if response.status_code == 200:
|
|
||||||
with open(dest_path, 'wb') as file:
|
|
||||||
for chunk in response.iter_content(chunk_size=1024):
|
|
||||||
if chunk:
|
|
||||||
file.write(chunk)
|
|
||||||
else:
|
|
||||||
raise Exception(f"Failed to download file from {url}")
|
|
||||||
|
|
||||||
|
|
||||||
def download_url(model_url: str, model_dir: str, filename: str):
|
def download_url(model_url: str, model_dir: str, filename: str):
|
||||||
|
if HF_ENDPOINT:
|
||||||
|
model_url = model_url.replace('https://huggingface.co', HF_ENDPOINT)
|
||||||
if aria2:
|
if aria2:
|
||||||
return aria2_download_url(model_url, model_dir, filename)
|
return aria2_download_url(model_url, model_dir, filename)
|
||||||
else:
|
else:
|
||||||
from torchvision.datasets.utils import download_url as torchvision_download_url
|
from torchvision.datasets.utils import download_url as torchvision_download_url
|
||||||
|
|
||||||
return torchvision_download_url(model_url, model_dir, filename)
|
return torchvision_download_url(model_url, model_dir, filename)
|
||||||
|
|
||||||
|
|
||||||
@@ -66,9 +46,6 @@ def aria2_download_url(model_url: str, model_dir: str, filename: str):
|
|||||||
if model_dir.startswith(core.comfy_path):
|
if model_dir.startswith(core.comfy_path):
|
||||||
model_dir = model_dir[len(core.comfy_path) :]
|
model_dir = model_dir[len(core.comfy_path) :]
|
||||||
|
|
||||||
if HF_ENDPOINT:
|
|
||||||
model_url = model_url.replace('https://huggingface.co', HF_ENDPOINT)
|
|
||||||
|
|
||||||
download_dir = model_dir if model_dir.startswith('/') else os.path.join('/models', model_dir)
|
download_dir = model_dir if model_dir.startswith('/') else os.path.join('/models', model_dir)
|
||||||
|
|
||||||
download = aria2_find_task(download_dir, filename)
|
download = aria2_find_task(download_dir, filename)
|
||||||
@@ -90,26 +67,3 @@ def aria2_download_url(model_url: str, model_dir: str, filename: str):
|
|||||||
progress_bar.update(download.completed_length - progress_bar.n)
|
progress_bar.update(download.completed_length - progress_bar.n)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
download.update()
|
download.update()
|
||||||
|
|
||||||
|
|
||||||
def download_url_with_agent(url, save_path):
|
|
||||||
try:
|
|
||||||
headers = {
|
|
||||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}
|
|
||||||
|
|
||||||
req = urllib.request.Request(url, headers=headers)
|
|
||||||
response = urllib.request.urlopen(req)
|
|
||||||
data = response.read()
|
|
||||||
|
|
||||||
if not os.path.exists(os.path.dirname(save_path)):
|
|
||||||
os.makedirs(os.path.dirname(save_path))
|
|
||||||
|
|
||||||
with open(save_path, 'wb') as f:
|
|
||||||
f.write(data)
|
|
||||||
|
|
||||||
except Exception as e:
|
|
||||||
print(f"Download error: {url} / {e}", file=sys.stderr)
|
|
||||||
return False
|
|
||||||
|
|
||||||
print("Installation was successful.")
|
|
||||||
return True
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,17 +1,5 @@
|
|||||||
import aiohttp
|
|
||||||
import json
|
|
||||||
import threading
|
|
||||||
import os
|
|
||||||
from datetime import datetime
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import re
|
|
||||||
|
|
||||||
cache_lock = threading.Lock()
|
|
||||||
|
|
||||||
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
|
||||||
cache_dir = os.path.join(comfyui_manager_path, '.cache')
|
|
||||||
|
|
||||||
|
|
||||||
# DON'T USE StrictVersion - cannot handle pre_release version
|
# DON'T USE StrictVersion - cannot handle pre_release version
|
||||||
# try:
|
# try:
|
||||||
@@ -78,84 +66,8 @@ class StrictVersion:
|
|||||||
return not self == other
|
return not self == other
|
||||||
|
|
||||||
|
|
||||||
def simple_hash(input_string):
|
|
||||||
hash_value = 0
|
|
||||||
for char in input_string:
|
|
||||||
hash_value = (hash_value * 31 + ord(char)) % (2**32)
|
|
||||||
|
|
||||||
return hash_value
|
|
||||||
|
|
||||||
|
|
||||||
def is_file_created_within_one_day(file_path):
|
|
||||||
if not os.path.exists(file_path):
|
|
||||||
return False
|
|
||||||
|
|
||||||
file_creation_time = os.path.getctime(file_path)
|
|
||||||
current_time = datetime.now().timestamp()
|
|
||||||
time_difference = current_time - file_creation_time
|
|
||||||
|
|
||||||
return time_difference <= 86400
|
|
||||||
|
|
||||||
|
|
||||||
async def get_data(uri, silent=False):
|
|
||||||
if not silent:
|
|
||||||
print(f"FETCH DATA from: {uri}", end="")
|
|
||||||
|
|
||||||
if uri.startswith("http"):
|
|
||||||
async with aiohttp.ClientSession(trust_env=True, connector=aiohttp.TCPConnector(verify_ssl=False)) as session:
|
|
||||||
async with session.get(uri) as resp:
|
|
||||||
json_text = await resp.text()
|
|
||||||
else:
|
|
||||||
with cache_lock:
|
|
||||||
with open(uri, "r", encoding="utf-8") as f:
|
|
||||||
json_text = f.read()
|
|
||||||
|
|
||||||
json_obj = json.loads(json_text)
|
|
||||||
|
|
||||||
if not silent:
|
|
||||||
print(" [DONE]")
|
|
||||||
|
|
||||||
return json_obj
|
|
||||||
|
|
||||||
|
|
||||||
async def get_data_with_cache(uri, silent=False, cache_mode=True):
|
|
||||||
cache_uri = str(simple_hash(uri)) + '_' + os.path.basename(uri).replace('&', "_").replace('?', "_").replace('=', "_")
|
|
||||||
cache_uri = os.path.join(cache_dir, cache_uri+'.json')
|
|
||||||
|
|
||||||
if cache_mode and is_file_created_within_one_day(cache_uri):
|
|
||||||
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:
|
|
||||||
print(f"[ComfyUI-Manager] default cache updated: {uri}")
|
|
||||||
|
|
||||||
return json_obj
|
|
||||||
|
|
||||||
|
|
||||||
def sanitize_tag(x):
|
|
||||||
return x.replace('<', '<').replace('>', '>')
|
|
||||||
|
|
||||||
|
|
||||||
def extract_package_as_zip(file_path, extract_path):
|
|
||||||
import zipfile
|
|
||||||
try:
|
|
||||||
with zipfile.ZipFile(file_path, "r") as zip_ref:
|
|
||||||
zip_ref.extractall(extract_path)
|
|
||||||
extracted_files = zip_ref.namelist()
|
|
||||||
print(f"Extracted zip file to {extract_path}")
|
|
||||||
return extracted_files
|
|
||||||
except zipfile.BadZipFile:
|
|
||||||
print(f"File '{file_path}' is not a zip or is corrupted.")
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
pip_map = None
|
pip_map = None
|
||||||
|
|
||||||
|
|
||||||
def get_installed_packages(renew=False):
|
def get_installed_packages(renew=False):
|
||||||
global pip_map
|
global pip_map
|
||||||
|
|
||||||
@@ -300,12 +212,3 @@ class PIPFixer:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("[manager-core] Failed to restore numpy")
|
print("[manager-core] Failed to restore numpy")
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
|
||||||
def sanitize(data):
|
|
||||||
return data.replace("<", "<").replace(">", ">")
|
|
||||||
|
|
||||||
|
|
||||||
def sanitize_filename(input_string):
|
|
||||||
result_string = re.sub(r'[^a-zA-Z0-9_]', '_', input_string)
|
|
||||||
return result_string
|
|
||||||
|
|||||||
@@ -65,10 +65,10 @@ async def share_option(request):
|
|||||||
|
|
||||||
|
|
||||||
def get_openart_auth():
|
def get_openart_auth():
|
||||||
if not os.path.exists(os.path.join(core.manager_files_path, ".openart_key")):
|
if not os.path.exists(os.path.join(core.comfyui_manager_path, ".openart_key")):
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(core.manager_files_path, ".openart_key"), "r") as f:
|
with open(os.path.join(core.comfyui_manager_path, ".openart_key"), "r") as f:
|
||||||
openart_key = f.read().strip()
|
openart_key = f.read().strip()
|
||||||
return openart_key if openart_key else None
|
return openart_key if openart_key else None
|
||||||
except:
|
except:
|
||||||
@@ -76,10 +76,10 @@ def get_openart_auth():
|
|||||||
|
|
||||||
|
|
||||||
def get_matrix_auth():
|
def get_matrix_auth():
|
||||||
if not os.path.exists(os.path.join(core.manager_files_path, "matrix_auth")):
|
if not os.path.exists(os.path.join(core.comfyui_manager_path, "matrix_auth")):
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(core.manager_files_path, "matrix_auth"), "r") as f:
|
with open(os.path.join(core.comfyui_manager_path, "matrix_auth"), "r") as f:
|
||||||
matrix_auth = f.read()
|
matrix_auth = f.read()
|
||||||
homeserver, username, password = matrix_auth.strip().split("\n")
|
homeserver, username, password = matrix_auth.strip().split("\n")
|
||||||
if not homeserver or not username or not password:
|
if not homeserver or not username or not password:
|
||||||
@@ -94,10 +94,10 @@ def get_matrix_auth():
|
|||||||
|
|
||||||
|
|
||||||
def get_comfyworkflows_auth():
|
def get_comfyworkflows_auth():
|
||||||
if not os.path.exists(os.path.join(core.manager_files_path, "comfyworkflows_sharekey")):
|
if not os.path.exists(os.path.join(core.comfyui_manager_path, "comfyworkflows_sharekey")):
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(core.manager_files_path, "comfyworkflows_sharekey"), "r") as f:
|
with open(os.path.join(core.comfyui_manager_path, "comfyworkflows_sharekey"), "r") as f:
|
||||||
share_key = f.read()
|
share_key = f.read()
|
||||||
if not share_key.strip():
|
if not share_key.strip():
|
||||||
return None
|
return None
|
||||||
@@ -107,10 +107,10 @@ def get_comfyworkflows_auth():
|
|||||||
|
|
||||||
|
|
||||||
def get_youml_settings():
|
def get_youml_settings():
|
||||||
if not os.path.exists(os.path.join(core.manager_files_path, ".youml")):
|
if not os.path.exists(os.path.join(core.comfyui_manager_path, ".youml")):
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(core.manager_files_path, ".youml"), "r") as f:
|
with open(os.path.join(core.comfyui_manager_path, ".youml"), "r") as f:
|
||||||
youml_settings = f.read().strip()
|
youml_settings = f.read().strip()
|
||||||
return youml_settings if youml_settings else None
|
return youml_settings if youml_settings else None
|
||||||
except:
|
except:
|
||||||
@@ -118,7 +118,7 @@ def get_youml_settings():
|
|||||||
|
|
||||||
|
|
||||||
def set_youml_settings(settings):
|
def set_youml_settings(settings):
|
||||||
with open(os.path.join(core.manager_files_path, ".youml"), "w") as f:
|
with open(os.path.join(core.comfyui_manager_path, ".youml"), "w") as f:
|
||||||
f.write(settings)
|
f.write(settings)
|
||||||
|
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ async def api_get_openart_auth(request):
|
|||||||
async def api_set_openart_auth(request):
|
async def api_set_openart_auth(request):
|
||||||
json_data = await request.json()
|
json_data = await request.json()
|
||||||
openart_key = json_data['openart_key']
|
openart_key = json_data['openart_key']
|
||||||
with open(os.path.join(core.manager_files_path, ".openart_key"), "w") as f:
|
with open(os.path.join(core.comfyui_manager_path, ".openart_key"), "w") as f:
|
||||||
f.write(openart_key)
|
f.write(openart_key)
|
||||||
return web.Response(status=200)
|
return web.Response(status=200)
|
||||||
|
|
||||||
@@ -178,14 +178,14 @@ async def api_get_comfyworkflows_auth(request):
|
|||||||
@PromptServer.instance.routes.post("/manager/set_esheep_workflow_and_images")
|
@PromptServer.instance.routes.post("/manager/set_esheep_workflow_and_images")
|
||||||
async def set_esheep_workflow_and_images(request):
|
async def set_esheep_workflow_and_images(request):
|
||||||
json_data = await request.json()
|
json_data = await request.json()
|
||||||
with open(os.path.join(core.manager_files_path, "esheep_share_message.json"), "w", encoding='utf-8') as file:
|
with open(os.path.join(core.comfyui_manager_path, "esheep_share_message.json"), "w", encoding='utf-8') as file:
|
||||||
json.dump(json_data, file, indent=4)
|
json.dump(json_data, file, indent=4)
|
||||||
return web.Response(status=200)
|
return web.Response(status=200)
|
||||||
|
|
||||||
|
|
||||||
@PromptServer.instance.routes.get("/manager/get_esheep_workflow_and_images")
|
@PromptServer.instance.routes.get("/manager/get_esheep_workflow_and_images")
|
||||||
async def get_esheep_workflow_and_images(request):
|
async def get_esheep_workflow_and_images(request):
|
||||||
with open(os.path.join(core.manager_files_path, "esheep_share_message.json"), 'r', encoding='utf-8') as file:
|
with open(os.path.join(core.comfyui_manager_path, "esheep_share_message.json"), 'r', encoding='utf-8') as file:
|
||||||
data = json.load(file)
|
data = json.load(file)
|
||||||
return web.Response(status=200, text=json.dumps(data))
|
return web.Response(status=200, text=json.dumps(data))
|
||||||
|
|
||||||
@@ -194,12 +194,12 @@ def set_matrix_auth(json_data):
|
|||||||
homeserver = json_data['homeserver']
|
homeserver = json_data['homeserver']
|
||||||
username = json_data['username']
|
username = json_data['username']
|
||||||
password = json_data['password']
|
password = json_data['password']
|
||||||
with open(os.path.join(core.manager_files_path, "matrix_auth"), "w") as f:
|
with open(os.path.join(core.comfyui_manager_path, "matrix_auth"), "w") as f:
|
||||||
f.write("\n".join([homeserver, username, password]))
|
f.write("\n".join([homeserver, username, password]))
|
||||||
|
|
||||||
|
|
||||||
def set_comfyworkflows_auth(comfyworkflows_sharekey):
|
def set_comfyworkflows_auth(comfyworkflows_sharekey):
|
||||||
with open(os.path.join(core.manager_files_path, "comfyworkflows_sharekey"), "w") as f:
|
with open(os.path.join(core.comfyui_manager_path, "comfyworkflows_sharekey"), "w") as f:
|
||||||
f.write(comfyworkflows_sharekey)
|
f.write(comfyworkflows_sharekey)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { api } from "../../scripts/api.js";
|
import { api } from "../../scripts/api.js";
|
||||||
import { app } from "../../scripts/app.js";
|
import { app } from "../../scripts/app.js";
|
||||||
import { sleep } from "./common.js";
|
import { sleep, customConfirm } from "./common.js";
|
||||||
|
|
||||||
async function tryInstallCustomNode(event) {
|
async function tryInstallCustomNode(event) {
|
||||||
let msg = '-= [ComfyUI Manager] extension installation request =-\n\n';
|
let msg = '-= [ComfyUI Manager] extension installation request =-\n\n';
|
||||||
@@ -22,8 +22,7 @@ async function tryInstallCustomNode(event) {
|
|||||||
alert(msg);
|
alert(msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const res = await customConfirm(msg);
|
||||||
let res = confirm(msg);
|
|
||||||
if(res) {
|
if(res) {
|
||||||
if(event.detail.target.installed == 'Disabled') {
|
if(event.detail.target.installed == 'Disabled') {
|
||||||
const response = await api.fetchApi(`/customnode/toggle_active`, {
|
const response = await api.fetchApi(`/customnode/toggle_active`, {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
showYouMLShareDialog
|
showYouMLShareDialog
|
||||||
} from "./comfyui-share-common.js";
|
} from "./comfyui-share-common.js";
|
||||||
import { OpenArtShareDialog } from "./comfyui-share-openart.js";
|
import { OpenArtShareDialog } from "./comfyui-share-openart.js";
|
||||||
import { free_models, install_pip, install_via_git_url, manager_instance, rebootAPI, migrateAPI, setManagerInstance, show_message } from "./common.js";
|
import { free_models, install_pip, install_via_git_url, manager_instance, rebootAPI, setManagerInstance, show_message } from "./common.js";
|
||||||
import { ComponentBuilderDialog, getPureName, load_components, set_component_policy } from "./components-manager.js";
|
import { ComponentBuilderDialog, getPureName, load_components, set_component_policy } from "./components-manager.js";
|
||||||
import { CustomNodesManager } from "./custom-nodes-manager.js";
|
import { CustomNodesManager } from "./custom-nodes-manager.js";
|
||||||
import { ModelManager } from "./model-manager.js";
|
import { ModelManager } from "./model-manager.js";
|
||||||
@@ -41,7 +41,7 @@ docStyle.innerHTML = `
|
|||||||
width: 1000px;
|
width: 1000px;
|
||||||
height: 520px;
|
height: 520px;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
z-index: 10000;
|
z-index: 1000;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ docStyle.innerHTML = `
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 10000;
|
z-index: 1000;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
@@ -239,7 +239,6 @@ function is_legacy_front() {
|
|||||||
document.head.appendChild(docStyle);
|
document.head.appendChild(docStyle);
|
||||||
|
|
||||||
var update_comfyui_button = null;
|
var update_comfyui_button = null;
|
||||||
var switch_comfyui_button = null;
|
|
||||||
var fetch_updates_button = null;
|
var fetch_updates_button = null;
|
||||||
var update_all_button = null;
|
var update_all_button = null;
|
||||||
var badge_mode = "none";
|
var badge_mode = "none";
|
||||||
@@ -288,18 +287,6 @@ const style = `
|
|||||||
color: white !important;
|
color: white !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.cm-button-orange {
|
|
||||||
width: 310px;
|
|
||||||
height: 30px;
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
font-size: 17px !important;
|
|
||||||
font-weight: bold;
|
|
||||||
background-color: orange !important;
|
|
||||||
color: black !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-experimental-button {
|
.cm-experimental-button {
|
||||||
width: 290px;
|
width: 290px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
@@ -608,154 +595,6 @@ async function updateComfyUI() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showVersionSelectorDialog(versions, current, onSelect) {
|
|
||||||
const dialog = new ComfyDialog();
|
|
||||||
dialog.element.style.zIndex = 100003;
|
|
||||||
dialog.element.style.width = "300px";
|
|
||||||
dialog.element.style.padding = "0";
|
|
||||||
dialog.element.style.backgroundColor = "#2a2a2a";
|
|
||||||
dialog.element.style.border = "1px solid #3a3a3a";
|
|
||||||
dialog.element.style.borderRadius = "8px";
|
|
||||||
dialog.element.style.boxSizing = "border-box";
|
|
||||||
dialog.element.style.overflow = "hidden";
|
|
||||||
|
|
||||||
const contentStyle = {
|
|
||||||
width: "300px",
|
|
||||||
display: "flex",
|
|
||||||
flexDirection: "column",
|
|
||||||
alignItems: "center",
|
|
||||||
padding: "20px",
|
|
||||||
boxSizing: "border-box",
|
|
||||||
gap: "15px"
|
|
||||||
};
|
|
||||||
|
|
||||||
let selectedVersion = versions[0];
|
|
||||||
|
|
||||||
const versionList = $el("select", {
|
|
||||||
multiple: true,
|
|
||||||
size: Math.min(10, versions.length),
|
|
||||||
style: {
|
|
||||||
width: "260px",
|
|
||||||
height: "auto",
|
|
||||||
backgroundColor: "#383838",
|
|
||||||
color: "#ffffff",
|
|
||||||
border: "1px solid #4a4a4a",
|
|
||||||
borderRadius: "4px",
|
|
||||||
padding: "5px",
|
|
||||||
boxSizing: "border-box"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
versions.map((v, index) => $el("option", {
|
|
||||||
value: v,
|
|
||||||
textContent: v,
|
|
||||||
selected: v === current
|
|
||||||
}))
|
|
||||||
);
|
|
||||||
|
|
||||||
versionList.addEventListener('change', (e) => {
|
|
||||||
selectedVersion = e.target.value;
|
|
||||||
Array.from(e.target.options).forEach(opt => {
|
|
||||||
opt.selected = opt.value === selectedVersion;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
const content = $el("div", {
|
|
||||||
style: contentStyle
|
|
||||||
}, [
|
|
||||||
$el("h3", {
|
|
||||||
textContent: "Select Version",
|
|
||||||
style: {
|
|
||||||
color: "#ffffff",
|
|
||||||
backgroundColor: "#1a1a1a",
|
|
||||||
padding: "10px 15px",
|
|
||||||
margin: "0 0 10px 0",
|
|
||||||
width: "260px",
|
|
||||||
textAlign: "center",
|
|
||||||
borderRadius: "4px",
|
|
||||||
boxSizing: "border-box",
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
overflow: "hidden",
|
|
||||||
textOverflow: "ellipsis"
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
versionList,
|
|
||||||
$el("div", {
|
|
||||||
style: {
|
|
||||||
display: "flex",
|
|
||||||
justifyContent: "space-between",
|
|
||||||
width: "260px",
|
|
||||||
gap: "10px"
|
|
||||||
}
|
|
||||||
}, [
|
|
||||||
$el("button", {
|
|
||||||
textContent: "Cancel",
|
|
||||||
onclick: () => dialog.close(),
|
|
||||||
style: {
|
|
||||||
flex: "1",
|
|
||||||
padding: "8px",
|
|
||||||
backgroundColor: "#4a4a4a",
|
|
||||||
color: "#ffffff",
|
|
||||||
border: "none",
|
|
||||||
borderRadius: "4px",
|
|
||||||
cursor: "pointer",
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
overflow: "hidden",
|
|
||||||
textOverflow: "ellipsis"
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
$el("button", {
|
|
||||||
textContent: "Select",
|
|
||||||
onclick: () => {
|
|
||||||
if (selectedVersion) {
|
|
||||||
onSelect(selectedVersion);
|
|
||||||
dialog.close();
|
|
||||||
} else {
|
|
||||||
alert("Please select a version.");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
flex: "1",
|
|
||||||
padding: "8px",
|
|
||||||
backgroundColor: "#4CAF50",
|
|
||||||
color: "#ffffff",
|
|
||||||
border: "none",
|
|
||||||
borderRadius: "4px",
|
|
||||||
cursor: "pointer",
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
overflow: "hidden",
|
|
||||||
textOverflow: "ellipsis"
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
])
|
|
||||||
]);
|
|
||||||
|
|
||||||
dialog.show(content);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function switchComfyUI() {
|
|
||||||
let res = await api.fetchApi(`/comfyui_manager/comfyui_versions`, { cache: "no-store" });
|
|
||||||
|
|
||||||
if(res.status == 200) {
|
|
||||||
let obj = await res.json();
|
|
||||||
|
|
||||||
let versions = [];
|
|
||||||
let default_version;
|
|
||||||
|
|
||||||
for(let v of obj.versions) {
|
|
||||||
default_version = v;
|
|
||||||
versions.push(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
showVersionSelectorDialog(versions, obj.current, (selected_version) => {
|
|
||||||
api.fetchApi(`/comfyui_manager/comfyui_switch_version?ver=${selected_version}`, { cache: "no-store" });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
show_message('Failed to fetch ComfyUI versions.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
async function fetchUpdates(update_check_checkbox) {
|
async function fetchUpdates(update_check_checkbox) {
|
||||||
let prev_text = fetch_updates_button.innerText;
|
let prev_text = fetch_updates_button.innerText;
|
||||||
fetch_updates_button.innerText = "Fetching updates...";
|
fetch_updates_button.innerText = "Fetching updates...";
|
||||||
@@ -906,14 +745,6 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
() => updateComfyUI()
|
() => updateComfyUI()
|
||||||
});
|
});
|
||||||
|
|
||||||
switch_comfyui_button =
|
|
||||||
$el("button.cm-button", {
|
|
||||||
type: "button",
|
|
||||||
textContent: "Switch ComfyUI",
|
|
||||||
onclick:
|
|
||||||
() => switchComfyUI()
|
|
||||||
});
|
|
||||||
|
|
||||||
fetch_updates_button =
|
fetch_updates_button =
|
||||||
$el("button.cm-button", {
|
$el("button.cm-button", {
|
||||||
type: "button",
|
type: "button",
|
||||||
@@ -984,7 +815,6 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
$el("br", {}, []),
|
$el("br", {}, []),
|
||||||
update_all_button,
|
update_all_button,
|
||||||
update_comfyui_button,
|
update_comfyui_button,
|
||||||
switch_comfyui_button,
|
|
||||||
fetch_updates_button,
|
fetch_updates_button,
|
||||||
|
|
||||||
$el("br", {}, []),
|
$el("br", {}, []),
|
||||||
@@ -1008,28 +838,6 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
let migration_btn =
|
|
||||||
$el("button.cm-button-orange", {
|
|
||||||
type: "button",
|
|
||||||
textContent: "Migrate to New Node System",
|
|
||||||
onclick: () => migrateAPI()
|
|
||||||
});
|
|
||||||
|
|
||||||
migration_btn.style.display = 'none';
|
|
||||||
|
|
||||||
res.push(migration_btn);
|
|
||||||
|
|
||||||
api.fetchApi('/manager/need_to_migrate')
|
|
||||||
.then(response => response.text())
|
|
||||||
.then(text => {
|
|
||||||
if (text === 'True') {
|
|
||||||
migration_btn.style.display = 'block';
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(error => {
|
|
||||||
console.error('Error checking migration status:', error);
|
|
||||||
});
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1532,6 +1340,7 @@ app.registerExtension({
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// new style Manager buttons
|
// new style Manager buttons
|
||||||
|
|
||||||
// unload models button into new style Manager button
|
// unload models button into new style Manager button
|
||||||
let cmGroup = new (await import("../../scripts/ui/components/buttonGroup.js")).ComfyButtonGroup(
|
let cmGroup = new (await import("../../scripts/ui/components/buttonGroup.js")).ComfyButtonGroup(
|
||||||
new(await import("../../scripts/ui/components/button.js")).ComfyButton({
|
new(await import("../../scripts/ui/components/button.js")).ComfyButton({
|
||||||
@@ -1545,19 +1354,6 @@ app.registerExtension({
|
|||||||
content: "Manager",
|
content: "Manager",
|
||||||
classList: "comfyui-button comfyui-menu-mobile-collapse primary"
|
classList: "comfyui-button comfyui-menu-mobile-collapse primary"
|
||||||
}).element,
|
}).element,
|
||||||
new(await import("../../scripts/ui/components/button.js")).ComfyButton({
|
|
||||||
icon: "star",
|
|
||||||
action: () => {
|
|
||||||
if(!manager_instance)
|
|
||||||
setManagerInstance(new ManagerMenuDialog());
|
|
||||||
|
|
||||||
if(!CustomNodesManager.instance) {
|
|
||||||
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
|
||||||
}
|
|
||||||
CustomNodesManager.instance.show(CustomNodesManager.ShowMode.FAVORITES);
|
|
||||||
},
|
|
||||||
tooltip: "Show favorite custom node list"
|
|
||||||
}).element,
|
|
||||||
new(await import("../../scripts/ui/components/button.js")).ComfyButton({
|
new(await import("../../scripts/ui/components/button.js")).ComfyButton({
|
||||||
icon: "vacuum-outline",
|
icon: "vacuum-outline",
|
||||||
action: () => {
|
action: () => {
|
||||||
|
|||||||
@@ -512,7 +512,7 @@ export class ShareDialogChooser extends ComfyDialog {
|
|||||||
}
|
}
|
||||||
show() {
|
show() {
|
||||||
this.element.style.display = "block";
|
this.element.style.display = "block";
|
||||||
this.element.style.zIndex = 10001;
|
this.element.style.zIndex = 1100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class ShareDialog extends ComfyDialog {
|
export class ShareDialog extends ComfyDialog {
|
||||||
|
|||||||
138
js/common.js
138
js/common.js
@@ -2,50 +2,142 @@ import { app } from "../../scripts/app.js";
|
|||||||
import { api } from "../../scripts/api.js";
|
import { api } from "../../scripts/api.js";
|
||||||
import { $el, ComfyDialog } from "../../scripts/ui.js";
|
import { $el, ComfyDialog } from "../../scripts/ui.js";
|
||||||
|
|
||||||
|
|
||||||
|
function internalCustomConfirm(message, confirmMessage, cancelMessage) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
// transparent bg
|
||||||
|
const modalOverlay = document.createElement('div');
|
||||||
|
modalOverlay.style.position = 'fixed';
|
||||||
|
modalOverlay.style.top = 0;
|
||||||
|
modalOverlay.style.left = 0;
|
||||||
|
modalOverlay.style.width = '100%';
|
||||||
|
modalOverlay.style.height = '100%';
|
||||||
|
modalOverlay.style.backgroundColor = 'rgba(0, 0, 0, 0.8)';
|
||||||
|
modalOverlay.style.display = 'flex';
|
||||||
|
modalOverlay.style.alignItems = 'center';
|
||||||
|
modalOverlay.style.justifyContent = 'center';
|
||||||
|
modalOverlay.style.zIndex = '1101';
|
||||||
|
|
||||||
|
// Modal window container (dark bg)
|
||||||
|
const modalDialog = document.createElement('div');
|
||||||
|
modalDialog.style.backgroundColor = '#333';
|
||||||
|
modalDialog.style.padding = '20px';
|
||||||
|
modalDialog.style.borderRadius = '4px';
|
||||||
|
modalDialog.style.maxWidth = '400px';
|
||||||
|
modalDialog.style.width = '80%';
|
||||||
|
modalDialog.style.boxShadow = '0 2px 8px rgba(0, 0, 0, 0.5)';
|
||||||
|
modalDialog.style.color = '#fff';
|
||||||
|
|
||||||
|
// Display message
|
||||||
|
const modalMessage = document.createElement('p');
|
||||||
|
modalMessage.textContent = message;
|
||||||
|
modalMessage.style.margin = '0';
|
||||||
|
modalMessage.style.padding = '0 0 20px';
|
||||||
|
modalMessage.style.wordBreak = 'keep-all';
|
||||||
|
|
||||||
|
// Button container
|
||||||
|
const modalButtons = document.createElement('div');
|
||||||
|
modalButtons.style.display = 'flex';
|
||||||
|
modalButtons.style.justifyContent = 'flex-end';
|
||||||
|
|
||||||
|
// Confirm button (green)
|
||||||
|
const confirmButton = document.createElement('button');
|
||||||
|
if(confirmMessage)
|
||||||
|
confirmButton.textContent = confirmMessage;
|
||||||
|
else
|
||||||
|
confirmButton.textContent = 'Confirm';
|
||||||
|
confirmButton.style.marginLeft = '10px';
|
||||||
|
confirmButton.style.backgroundColor = '#28a745'; // green
|
||||||
|
confirmButton.style.color = '#fff';
|
||||||
|
confirmButton.style.border = 'none';
|
||||||
|
confirmButton.style.padding = '6px 12px';
|
||||||
|
confirmButton.style.borderRadius = '4px';
|
||||||
|
confirmButton.style.cursor = 'pointer';
|
||||||
|
confirmButton.style.fontWeight = 'bold';
|
||||||
|
|
||||||
|
// Cancel button (red)
|
||||||
|
const cancelButton = document.createElement('button');
|
||||||
|
if(cancelMessage)
|
||||||
|
cancelButton.textContent = cancelMessage;
|
||||||
|
else
|
||||||
|
cancelButton.textContent = 'Cancel';
|
||||||
|
|
||||||
|
cancelButton.style.marginLeft = '10px';
|
||||||
|
cancelButton.style.backgroundColor = '#dc3545'; // red
|
||||||
|
cancelButton.style.color = '#fff';
|
||||||
|
cancelButton.style.border = 'none';
|
||||||
|
cancelButton.style.padding = '6px 12px';
|
||||||
|
cancelButton.style.borderRadius = '4px';
|
||||||
|
cancelButton.style.cursor = 'pointer';
|
||||||
|
cancelButton.style.fontWeight = 'bold';
|
||||||
|
|
||||||
|
const closeModal = () => {
|
||||||
|
document.body.removeChild(modalOverlay);
|
||||||
|
};
|
||||||
|
|
||||||
|
confirmButton.addEventListener('click', () => {
|
||||||
|
closeModal();
|
||||||
|
resolve(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
cancelButton.addEventListener('click', () => {
|
||||||
|
closeModal();
|
||||||
|
resolve(false);
|
||||||
|
});
|
||||||
|
|
||||||
|
modalButtons.appendChild(confirmButton);
|
||||||
|
modalButtons.appendChild(cancelButton);
|
||||||
|
modalDialog.appendChild(modalMessage);
|
||||||
|
modalDialog.appendChild(modalButtons);
|
||||||
|
modalOverlay.appendChild(modalDialog);
|
||||||
|
document.body.appendChild(modalOverlay);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export function show_message(msg) {
|
export function show_message(msg) {
|
||||||
app.ui.dialog.show(msg);
|
app.ui.dialog.show(msg);
|
||||||
app.ui.dialog.element.style.zIndex = 10010;
|
app.ui.dialog.element.style.zIndex = 1100;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function sleep(ms) {
|
export async function sleep(ms) {
|
||||||
return new Promise(resolve => setTimeout(resolve, ms));
|
return new Promise(resolve => setTimeout(resolve, ms));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function customConfirm(message) {
|
||||||
|
try {
|
||||||
|
let res = await
|
||||||
|
window['app'].extensionManager.dialog
|
||||||
|
.confirm({
|
||||||
|
title: 'Confirm',
|
||||||
|
message: message
|
||||||
|
});
|
||||||
|
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
let res = await internalCustomConfirm(message);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export function rebootAPI() {
|
export function rebootAPI() {
|
||||||
if ('electronAPI' in window) {
|
if ('electronAPI' in window) {
|
||||||
window.electronAPI.restartApp();
|
window.electronAPI.restartApp();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (confirm("Are you sure you'd like to reboot the server?")) {
|
|
||||||
|
customConfirm("Are you sure you'd like to reboot the server?").then((isConfirmed) => {
|
||||||
|
if (isConfirmed) {
|
||||||
try {
|
try {
|
||||||
api.fetchApi("/manager/reboot");
|
api.fetchApi("/manager/reboot");
|
||||||
}
|
}
|
||||||
catch(exception) {
|
catch(exception) {}
|
||||||
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function migrateAPI() {
|
|
||||||
if (confirm("When performing a migration, existing installed custom nodes will be renamed and the server will be restarted. Are you sure you want to apply this?\n\n(If you don't perform the migration, ComfyUI-Manager's start-up time will be longer each time due to re-checking during startup.)")) {
|
|
||||||
try {
|
|
||||||
await api.fetchApi("/manager/migrate_unmanaged_nodes");
|
|
||||||
api.fetchApi("/manager/reboot");
|
|
||||||
}
|
|
||||||
catch(exception) {
|
|
||||||
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export var manager_instance = null;
|
export var manager_instance = null;
|
||||||
|
|
||||||
export function setManagerInstance(obj) {
|
export function setManagerInstance(obj) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { app } from "../../scripts/app.js";
|
import { app } from "../../scripts/app.js";
|
||||||
import { api } from "../../scripts/api.js"
|
import { api } from "../../scripts/api.js"
|
||||||
import { sleep, show_message } from "./common.js";
|
import { sleep, show_message, customConfirm } from "./common.js";
|
||||||
import { GroupNodeConfig, GroupNodeHandler } from "../../extensions/core/groupNode.js";
|
import { GroupNodeConfig, GroupNodeHandler } from "../../extensions/core/groupNode.js";
|
||||||
import { ComfyDialog, $el } from "../../scripts/ui.js";
|
import { ComfyDialog, $el } from "../../scripts/ui.js";
|
||||||
|
|
||||||
@@ -365,7 +365,7 @@ function checkVersion(name, component) {
|
|||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handle_import_components(components) {
|
async function handle_import_components(components) {
|
||||||
let msg = 'Components:\n';
|
let msg = 'Components:\n';
|
||||||
let cnt = 0;
|
let cnt = 0;
|
||||||
for(let name in components) {
|
for(let name in components) {
|
||||||
@@ -387,8 +387,9 @@ function handle_import_components(components) {
|
|||||||
|
|
||||||
let last_name = null;
|
let last_name = null;
|
||||||
msg += '\nWill you load components?\n';
|
msg += '\nWill you load components?\n';
|
||||||
if(confirm(msg)) {
|
const confirmed = await customConfirm(msg);
|
||||||
let mode = confirm('\nWill you save components?\n(cancel=load without save)');
|
if(confirmed) {
|
||||||
|
const mode = await customConfirm('\nWill you save components?\n(cancel=load without save)');
|
||||||
|
|
||||||
for(let name in components) {
|
for(let name in components) {
|
||||||
let component = components[name];
|
let component = components[name];
|
||||||
@@ -411,7 +412,7 @@ function handle_import_components(components) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePaste(e) {
|
async function handlePaste(e) {
|
||||||
let data = (e.clipboardData || window.clipboardData);
|
let data = (e.clipboardData || window.clipboardData);
|
||||||
const items = data.items;
|
const items = data.items;
|
||||||
for(const item of items) {
|
for(const item of items) {
|
||||||
@@ -421,7 +422,7 @@ function handlePaste(e) {
|
|||||||
let json_data = JSON.parse(data);
|
let json_data = JSON.parse(data);
|
||||||
if(json_data.kind == 'ComfyUI Components' && last_paste_timestamp != json_data.timestamp) {
|
if(json_data.kind == 'ComfyUI Components' && last_paste_timestamp != json_data.timestamp) {
|
||||||
last_paste_timestamp = json_data.timestamp;
|
last_paste_timestamp = json_data.timestamp;
|
||||||
handle_import_components(json_data.components);
|
await handle_import_components(json_data.components);
|
||||||
|
|
||||||
// disable paste node
|
// disable paste node
|
||||||
localStorage.removeItem("litegrapheditor_clipboard", null);
|
localStorage.removeItem("litegrapheditor_clipboard", null);
|
||||||
@@ -455,7 +456,7 @@ export class ComponentBuilderDialog extends ComfyDialog {
|
|||||||
this.invalidateControl();
|
this.invalidateControl();
|
||||||
|
|
||||||
this.element.style.display = "block";
|
this.element.style.display = "block";
|
||||||
this.element.style.zIndex = 10001;
|
this.element.style.zIndex = 1100;
|
||||||
this.element.style.width = "500px";
|
this.element.style.width = "500px";
|
||||||
this.element.style.height = "480px";
|
this.element.style.height = "480px";
|
||||||
}
|
}
|
||||||
@@ -677,7 +678,7 @@ export class ComponentBuilderDialog extends ComfyDialog {
|
|||||||
|
|
||||||
let orig_handleFile = app.handleFile;
|
let orig_handleFile = app.handleFile;
|
||||||
|
|
||||||
function handleFile(file) {
|
async function handleFile(file) {
|
||||||
if (file.name?.endsWith(".json") || file.name?.endsWith(".pack")) {
|
if (file.name?.endsWith(".json") || file.name?.endsWith(".pack")) {
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
reader.onload = async () => {
|
reader.onload = async () => {
|
||||||
@@ -690,7 +691,7 @@ function handleFile(file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(is_component) {
|
if(is_component) {
|
||||||
handle_import_components(jsonContent);
|
await handle_import_components(jsonContent);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
orig_handleFile.call(app, file);
|
orig_handleFile.call(app, file);
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
import { app } from "../../scripts/app.js";
|
import { app } from "../../scripts/app.js";
|
||||||
import { ComfyDialog, $el } from "../../scripts/ui.js";
|
import { $el } from "../../scripts/ui.js";
|
||||||
import { api } from "../../scripts/api.js";
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
manager_instance, rebootAPI, install_via_git_url,
|
manager_instance, rebootAPI, install_via_git_url,
|
||||||
fetchData, md5, icons, show_message
|
fetchData, md5, icons, customConfirm
|
||||||
} from "./common.js";
|
} from "./common.js";
|
||||||
|
|
||||||
// https://cenfun.github.io/turbogrid/api.html
|
// https://cenfun.github.io/turbogrid/api.html
|
||||||
@@ -12,7 +10,7 @@ import TG from "./turbogrid.esm.js";
|
|||||||
|
|
||||||
const pageCss = `
|
const pageCss = `
|
||||||
.cn-manager {
|
.cn-manager {
|
||||||
--grid-font: -apple-system, BlinkMacSystemFont, "Segue UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
--grid-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
||||||
z-index: 10001;
|
z-index: 10001;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
height: 80%;
|
height: 80%;
|
||||||
@@ -214,17 +212,17 @@ const pageCss = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cn-manager .cn-btn-enable {
|
.cn-manager .cn-btn-enable {
|
||||||
background-color: #333399;
|
background-color: blue;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cn-manager .cn-btn-disable {
|
.cn-manager .cn-btn-disable {
|
||||||
background-color: #442277;
|
background-color: MediumSlateBlue;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cn-manager .cn-btn-update {
|
.cn-manager .cn-btn-update {
|
||||||
background-color: #1155AA;
|
background-color: blue;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,21 +247,10 @@ const pageCss = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cn-manager .cn-btn-uninstall {
|
.cn-manager .cn-btn-uninstall {
|
||||||
background-color: #993333;
|
background-color: red;
|
||||||
color: white;
|
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 {
|
@keyframes cn-btn-loading-bg {
|
||||||
0% {
|
0% {
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -325,7 +312,7 @@ const pageHtml = `
|
|||||||
<div class="cn-manager-selection"></div>
|
<div class="cn-manager-selection"></div>
|
||||||
<div class="cn-manager-message"></div>
|
<div class="cn-manager-message"></div>
|
||||||
<div class="cn-manager-footer">
|
<div class="cn-manager-footer">
|
||||||
<button class="cn-manager-back">◀ Back</button>
|
<button class="cn-manager-close">Close</button>
|
||||||
<button class="cn-manager-restart">Restart</button>
|
<button class="cn-manager-restart">Restart</button>
|
||||||
<div class="cn-flex-auto"></div>
|
<div class="cn-flex-auto"></div>
|
||||||
<button class="cn-manager-check-update">Check Update</button>
|
<button class="cn-manager-check-update">Check Update</button>
|
||||||
@@ -338,7 +325,6 @@ const ShowMode = {
|
|||||||
NORMAL: "Normal",
|
NORMAL: "Normal",
|
||||||
UPDATE: "Update",
|
UPDATE: "Update",
|
||||||
MISSING: "Missing",
|
MISSING: "Missing",
|
||||||
FAVORITES: "Favorites",
|
|
||||||
ALTERNATIVES: "Alternatives"
|
ALTERNATIVES: "Alternatives"
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -370,6 +356,7 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
|
||||||
if (!document.querySelector(`style[context="${this.id}"]`)) {
|
if (!document.querySelector(`style[context="${this.id}"]`)) {
|
||||||
const $style = document.createElement("style");
|
const $style = document.createElement("style");
|
||||||
$style.setAttribute("context", this.id);
|
$style.setAttribute("context", this.id);
|
||||||
@@ -387,130 +374,6 @@ export class CustomNodesManager {
|
|||||||
this.initGrid();
|
this.initGrid();
|
||||||
}
|
}
|
||||||
|
|
||||||
showVersionSelectorDialog(versions, onSelect) {
|
|
||||||
const dialog = new ComfyDialog();
|
|
||||||
dialog.element.style.zIndex = 100003;
|
|
||||||
dialog.element.style.width = "300px";
|
|
||||||
dialog.element.style.padding = "0";
|
|
||||||
dialog.element.style.backgroundColor = "#2a2a2a";
|
|
||||||
dialog.element.style.border = "1px solid #3a3a3a";
|
|
||||||
dialog.element.style.borderRadius = "8px";
|
|
||||||
dialog.element.style.boxSizing = "border-box";
|
|
||||||
dialog.element.style.overflow = "hidden";
|
|
||||||
|
|
||||||
const contentStyle = {
|
|
||||||
width: "300px",
|
|
||||||
display: "flex",
|
|
||||||
flexDirection: "column",
|
|
||||||
alignItems: "center",
|
|
||||||
padding: "20px",
|
|
||||||
boxSizing: "border-box",
|
|
||||||
gap: "15px"
|
|
||||||
};
|
|
||||||
|
|
||||||
let selectedVersion = versions[0];
|
|
||||||
|
|
||||||
const versionList = $el("select", {
|
|
||||||
multiple: true,
|
|
||||||
size: Math.min(10, versions.length),
|
|
||||||
style: {
|
|
||||||
width: "260px",
|
|
||||||
height: "auto",
|
|
||||||
backgroundColor: "#383838",
|
|
||||||
color: "#ffffff",
|
|
||||||
border: "1px solid #4a4a4a",
|
|
||||||
borderRadius: "4px",
|
|
||||||
padding: "5px",
|
|
||||||
boxSizing: "border-box"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
versions.map((v, index) => $el("option", {
|
|
||||||
value: v,
|
|
||||||
textContent: v,
|
|
||||||
selected: index === 0
|
|
||||||
}))
|
|
||||||
);
|
|
||||||
|
|
||||||
versionList.addEventListener('change', (e) => {
|
|
||||||
selectedVersion = e.target.value;
|
|
||||||
Array.from(e.target.options).forEach(opt => {
|
|
||||||
opt.selected = opt.value === selectedVersion;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
const content = $el("div", {
|
|
||||||
style: contentStyle
|
|
||||||
}, [
|
|
||||||
$el("h3", {
|
|
||||||
textContent: "Select Version",
|
|
||||||
style: {
|
|
||||||
color: "#ffffff",
|
|
||||||
backgroundColor: "#1a1a1a",
|
|
||||||
padding: "10px 15px",
|
|
||||||
margin: "0 0 10px 0",
|
|
||||||
width: "260px",
|
|
||||||
textAlign: "center",
|
|
||||||
borderRadius: "4px",
|
|
||||||
boxSizing: "border-box",
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
overflow: "hidden",
|
|
||||||
textOverflow: "ellipsis"
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
versionList,
|
|
||||||
$el("div", {
|
|
||||||
style: {
|
|
||||||
display: "flex",
|
|
||||||
justifyContent: "space-between",
|
|
||||||
width: "260px",
|
|
||||||
gap: "10px"
|
|
||||||
}
|
|
||||||
}, [
|
|
||||||
$el("button", {
|
|
||||||
textContent: "Cancel",
|
|
||||||
onclick: () => dialog.close(),
|
|
||||||
style: {
|
|
||||||
flex: "1",
|
|
||||||
padding: "8px",
|
|
||||||
backgroundColor: "#4a4a4a",
|
|
||||||
color: "#ffffff",
|
|
||||||
border: "none",
|
|
||||||
borderRadius: "4px",
|
|
||||||
cursor: "pointer",
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
overflow: "hidden",
|
|
||||||
textOverflow: "ellipsis"
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
$el("button", {
|
|
||||||
textContent: "Select",
|
|
||||||
onclick: () => {
|
|
||||||
if (selectedVersion) {
|
|
||||||
onSelect(selectedVersion);
|
|
||||||
dialog.close();
|
|
||||||
} else {
|
|
||||||
alert("Please select a version.");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
flex: "1",
|
|
||||||
padding: "8px",
|
|
||||||
backgroundColor: "#4CAF50",
|
|
||||||
color: "#ffffff",
|
|
||||||
border: "none",
|
|
||||||
borderRadius: "4px",
|
|
||||||
cursor: "pointer",
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
overflow: "hidden",
|
|
||||||
textOverflow: "ellipsis"
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
])
|
|
||||||
]);
|
|
||||||
|
|
||||||
dialog.show(content);
|
|
||||||
}
|
|
||||||
|
|
||||||
initFilter() {
|
initFilter() {
|
||||||
const $filter = this.element.querySelector(".cn-manager-filter");
|
const $filter = this.element.querySelector(".cn-manager-filter");
|
||||||
const filterList = [{
|
const filterList = [{
|
||||||
@@ -519,31 +382,23 @@ export class CustomNodesManager {
|
|||||||
hasData: true
|
hasData: true
|
||||||
}, {
|
}, {
|
||||||
label: "Installed",
|
label: "Installed",
|
||||||
value: "installed",
|
value: "True",
|
||||||
hasData: true
|
|
||||||
}, {
|
|
||||||
label: "Enabled",
|
|
||||||
value: "enabled",
|
|
||||||
hasData: true
|
hasData: true
|
||||||
}, {
|
}, {
|
||||||
label: "Disabled",
|
label: "Disabled",
|
||||||
value: "disabled",
|
value: "Disabled",
|
||||||
hasData: true
|
hasData: true
|
||||||
}, {
|
}, {
|
||||||
label: "Import Failed",
|
label: "Import Failed",
|
||||||
value: "import-fail",
|
value: "Fail",
|
||||||
hasData: true
|
hasData: true
|
||||||
}, {
|
}, {
|
||||||
label: "Not Installed",
|
label: "Not Installed",
|
||||||
value: "not-installed",
|
value: "False",
|
||||||
hasData: true
|
hasData: true
|
||||||
}, {
|
}, {
|
||||||
label: "ComfyRegistry",
|
label: "Unknown",
|
||||||
value: "cnr",
|
value: "None",
|
||||||
hasData: true
|
|
||||||
}, {
|
|
||||||
label: "Non-ComfyRegistry",
|
|
||||||
value: "unknown",
|
|
||||||
hasData: true
|
hasData: true
|
||||||
}, {
|
}, {
|
||||||
label: "Update",
|
label: "Update",
|
||||||
@@ -553,10 +408,6 @@ export class CustomNodesManager {
|
|||||||
label: "Missing",
|
label: "Missing",
|
||||||
value: ShowMode.MISSING,
|
value: ShowMode.MISSING,
|
||||||
hasData: false
|
hasData: false
|
||||||
}, {
|
|
||||||
label: "Favorites",
|
|
||||||
value: ShowMode.FAVORITES,
|
|
||||||
hasData: false
|
|
||||||
}, {
|
}, {
|
||||||
label: "Alternatives of A1111",
|
label: "Alternatives of A1111",
|
||||||
value: ShowMode.ALTERNATIVES,
|
value: ShowMode.ALTERNATIVES,
|
||||||
@@ -572,15 +423,16 @@ export class CustomNodesManager {
|
|||||||
return this.filterList.find(it => it.value === filter)
|
return this.filterList.find(it => it.value === filter)
|
||||||
}
|
}
|
||||||
|
|
||||||
getActionButtons(action, rowItem, is_selected_button) {
|
getInstallButtons(installed, title) {
|
||||||
|
|
||||||
const buttons = {
|
const buttons = {
|
||||||
"enable": {
|
"enable": {
|
||||||
label: "Enable",
|
label: "Enable",
|
||||||
mode: "enable"
|
mode: "toggle_active"
|
||||||
},
|
},
|
||||||
"disable": {
|
"disable": {
|
||||||
label: "Disable",
|
label: "Disable",
|
||||||
mode: "disable"
|
mode: "toggle_active"
|
||||||
},
|
},
|
||||||
|
|
||||||
"update": {
|
"update": {
|
||||||
@@ -597,63 +449,45 @@ export class CustomNodesManager {
|
|||||||
mode: "fix"
|
mode: "fix"
|
||||||
},
|
},
|
||||||
|
|
||||||
"reinstall": {
|
|
||||||
label: "Reinstall",
|
|
||||||
mode: "reinstall"
|
|
||||||
},
|
|
||||||
|
|
||||||
"install": {
|
"install": {
|
||||||
label: "Install",
|
label: "Install",
|
||||||
mode: "install"
|
mode: "install"
|
||||||
},
|
},
|
||||||
|
|
||||||
"try-install": {
|
"try-install": {
|
||||||
label: "Try install",
|
label: "Try install",
|
||||||
mode: "install"
|
mode: "install"
|
||||||
},
|
},
|
||||||
|
|
||||||
"uninstall": {
|
"uninstall": {
|
||||||
label: "Uninstall",
|
label: "Uninstall",
|
||||||
mode: "uninstall"
|
mode: "uninstall"
|
||||||
},
|
|
||||||
|
|
||||||
"switch": {
|
|
||||||
label: "Switch Ver",
|
|
||||||
mode: "switch"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const installGroups = {
|
const installGroups = {
|
||||||
"disabled": ["enable", "switch", "uninstall"],
|
"Disabled": ["enable", "uninstall"],
|
||||||
"updatable": ["update", "switch", "disable", "uninstall"],
|
"Update": ["update", "disable", "uninstall"],
|
||||||
"import-fail": ["try-fix", "switch", "disable", "uninstall"],
|
"Fail": ["try-fix", "uninstall"],
|
||||||
"enabled": ["try-update", "switch", "disable", "uninstall"],
|
"True": ["try-update", "disable", "uninstall"],
|
||||||
"not-installed": ["install"],
|
"False": ["install"],
|
||||||
'unknown': ["try-install"],
|
'None': ["try-install"]
|
||||||
"invalid-installation": ["reinstall"],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!manager_instance.update_check_checkbox.checked) {
|
if (!manager_instance.update_check_checkbox.checked) {
|
||||||
installGroups.enabled = installGroups.enabled.filter(it => it !== "try-update");
|
installGroups.True = installGroups.True.filter(it => it !== "try-update");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rowItem?.title === "ComfyUI-Manager") {
|
if (title === "ComfyUI-Manager") {
|
||||||
installGroups.enabled = installGroups.enabled.filter(it => it !== "disable" && it !== "uninstall" && it !== "switch");
|
installGroups.True = installGroups.True.filter(it => it !== "disable");
|
||||||
}
|
|
||||||
|
|
||||||
let list = installGroups[action];
|
|
||||||
|
|
||||||
if(is_selected_button || rowItem?.version === "unknown") {
|
|
||||||
list = list.filter(it => it !== "switch");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const list = installGroups[installed];
|
||||||
if (!list) {
|
if (!list) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return list.map(id => {
|
return list.map(id => {
|
||||||
const bt = buttons[id];
|
const bt = buttons[id];
|
||||||
return `<button class="cn-btn-${id}" group="${action}" mode="${bt.mode}">${bt.label}</button>`;
|
return `<button class="cn-btn-${id}" group="${installed}" mode="${bt.mode}">${bt.label}</button>`;
|
||||||
}).join("");
|
}).join("");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -720,11 +554,8 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
".cn-manager-back": {
|
".cn-manager-close": {
|
||||||
click: (e) => {
|
click: (e) => this.close()
|
||||||
this.close()
|
|
||||||
manager_instance.show();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
".cn-manager-restart": {
|
".cn-manager-restart": {
|
||||||
@@ -783,9 +614,13 @@ export class CustomNodesManager {
|
|||||||
|
|
||||||
let prevViewRowsLength = -1;
|
let prevViewRowsLength = -1;
|
||||||
grid.bind('onUpdated', (e, d) => {
|
grid.bind('onUpdated', (e, d) => {
|
||||||
|
|
||||||
const viewRows = grid.viewRows;
|
const viewRows = grid.viewRows;
|
||||||
|
if (viewRows.length !== prevViewRowsLength) {
|
||||||
prevViewRowsLength = viewRows.length;
|
prevViewRowsLength = viewRows.length;
|
||||||
this.showStatus(`${prevViewRowsLength.toLocaleString()} custom nodes`);
|
this.showStatus(`${prevViewRowsLength.toLocaleString()} custom nodes`);
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
grid.bind('onSelectChanged', (e, changes) => {
|
grid.bind('onSelectChanged', (e, changes) => {
|
||||||
@@ -795,17 +630,8 @@ export class CustomNodesManager {
|
|||||||
grid.bind('onClick', (e, d) => {
|
grid.bind('onClick', (e, d) => {
|
||||||
const btn = this.getButton(d.e.target);
|
const btn = this.getButton(d.e.target);
|
||||||
if (btn) {
|
if (btn) {
|
||||||
const item = this.grid.getRowItemBy("hash", d.rowItem.hash);
|
|
||||||
|
|
||||||
const { target, label, mode} = btn;
|
|
||||||
if((mode === "install" || mode === "switch" || mode == "enable") && item.originalData.version != 'unknown') {
|
|
||||||
// install after select version via dialog if item is cnr node
|
|
||||||
this.installNodeWithVersion(d.rowItem, btn, mode == 'enable');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.installNodes([d.rowItem.hash], btn, d.rowItem.title);
|
this.installNodes([d.rowItem.hash], btn, d.rowItem.title);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
grid.setOption({
|
grid.setOption({
|
||||||
@@ -825,7 +651,7 @@ export class CustomNodesManager {
|
|||||||
bindContainerResize: true,
|
bindContainerResize: true,
|
||||||
|
|
||||||
cellResizeObserver: (rowItem, columnItem) => {
|
cellResizeObserver: (rowItem, columnItem) => {
|
||||||
const autoHeightColumns = ['title', 'action', 'description', "alternatives"];
|
const autoHeightColumns = ['title', 'installed', 'description', "alternatives"];
|
||||||
return autoHeightColumns.includes(columnItem.id)
|
return autoHeightColumns.includes(columnItem.id)
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -870,11 +696,11 @@ export class CustomNodesManager {
|
|||||||
theme: colorPalette === "light" ? "" : "dark"
|
theme: colorPalette === "light" ? "" : "dark"
|
||||||
};
|
};
|
||||||
|
|
||||||
const rows = this.custom_nodes || {};
|
const rows = this.custom_nodes || [];
|
||||||
for(let nodeKey in rows) {
|
rows.forEach((item, i) => {
|
||||||
let item = rows[nodeKey];
|
item.id = i + 1;
|
||||||
|
const nodeKey = item.files[0];
|
||||||
const extensionInfo = this.extension_mappings[nodeKey];
|
const extensionInfo = this.extension_mappings[nodeKey];
|
||||||
|
|
||||||
if(extensionInfo) {
|
if(extensionInfo) {
|
||||||
const { extensions, conflicts } = extensionInfo;
|
const { extensions, conflicts } = extensionInfo;
|
||||||
if (extensions.length) {
|
if (extensions.length) {
|
||||||
@@ -886,7 +712,7 @@ export class CustomNodesManager {
|
|||||||
item.conflictsList = conflicts;
|
item.conflictsList = conflicts;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
const columns = [{
|
const columns = [{
|
||||||
id: 'id',
|
id: 'id',
|
||||||
@@ -901,55 +727,22 @@ export class CustomNodesManager {
|
|||||||
maxWidth: 500,
|
maxWidth: 500,
|
||||||
classMap: 'cn-node-name',
|
classMap: 'cn-node-name',
|
||||||
formatter: (title, rowItem, columnItem) => {
|
formatter: (title, rowItem, columnItem) => {
|
||||||
var prefix = '';
|
return `${rowItem.installed === 'Fail' ? '<font color="red"><B>(IMPORT FAILED)</B></font>' : ''}
|
||||||
if(rowItem.action === 'invalid-installation') {
|
<a href=${rowItem.reference} target="_blank"><b>${title}</b></a>`;
|
||||||
prefix = '<font color="red"><B>(INVALID)</B></font>';
|
|
||||||
}
|
|
||||||
|
|
||||||
else if(rowItem.action === 'import-fail') {
|
|
||||||
prefix = '<font color="red"><B>(IMPORT FAILED)</B></font>';
|
|
||||||
}
|
|
||||||
|
|
||||||
return `${prefix}<a href=${rowItem.reference} target="_blank"><b>${title}</b></a>`;
|
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
id: 'version',
|
id: 'installed',
|
||||||
name: 'Version',
|
name: 'Install',
|
||||||
width: 200,
|
|
||||||
minWidth: 100,
|
|
||||||
maxWidth: 500,
|
|
||||||
classMap: 'cn-node-desc',
|
|
||||||
formatter: (version, rowItem, columnItem) => {
|
|
||||||
if(version == undefined) {
|
|
||||||
return `undef`;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if(rowItem.cnr_latest && version != rowItem.cnr_latest) {
|
|
||||||
if(version == 'nightly') {
|
|
||||||
return `${version} [${rowItem.cnr_latest}]`;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return `${version} [↑${rowItem.cnr_latest}]`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return `${version}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
id: 'action',
|
|
||||||
name: 'Action',
|
|
||||||
width: 130,
|
width: 130,
|
||||||
minWidth: 110,
|
minWidth: 110,
|
||||||
maxWidth: 200,
|
maxWidth: 200,
|
||||||
sortable: false,
|
sortable: false,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: (action, rowItem, columnItem) => {
|
formatter: (installed, rowItem, columnItem) => {
|
||||||
if (rowItem.restart) {
|
if (rowItem.restart) {
|
||||||
return `<font color="red">Restart Required</span>`;
|
return `<font color="red">Restart Required</span>`;
|
||||||
}
|
}
|
||||||
const buttons = this.getActionButtons(action, rowItem);
|
const buttons = this.getInstallButtons(installed, rowItem.title);
|
||||||
return `<div class="cn-install-buttons">${buttons}</div>`;
|
return `<div class="cn-install-buttons">${buttons}</div>`;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@@ -1052,35 +845,14 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
||||||
let rows_values = Object.keys(rows).map(key => rows[key]);
|
|
||||||
|
|
||||||
rows_values =
|
|
||||||
rows_values.sort((a, b) => {
|
|
||||||
if (a.version == 'unknown' && b.version != 'unknown') return 1;
|
|
||||||
if (a.version != 'unknown' && b.version == 'unknown') return -1;
|
|
||||||
|
|
||||||
if (a.stars !== b.stars) {
|
|
||||||
return b.stars - a.stars;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a.last_update !== b.last_update) {
|
|
||||||
return new Date(b.last_update) - new Date(a.last_update);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
});
|
|
||||||
|
|
||||||
this.grid.setData({
|
this.grid.setData({
|
||||||
options: options,
|
options,
|
||||||
rows: rows_values,
|
rows,
|
||||||
columns: columns
|
columns
|
||||||
});
|
});
|
||||||
|
|
||||||
for(let i=0; i<rows_values.length; i++) {
|
|
||||||
rows_values[i].id = i+1;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.grid.render();
|
this.grid.render();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateGrid() {
|
updateGrid() {
|
||||||
@@ -1105,7 +877,7 @@ export class CustomNodesManager {
|
|||||||
|
|
||||||
const selectedMap = {};
|
const selectedMap = {};
|
||||||
selectedList.forEach(item => {
|
selectedList.forEach(item => {
|
||||||
let type = item.action;
|
let type = item.installed;
|
||||||
if (item.restart) {
|
if (item.restart) {
|
||||||
type = "Restart Required";
|
type = "Restart Required";
|
||||||
}
|
}
|
||||||
@@ -1123,7 +895,7 @@ export class CustomNodesManager {
|
|||||||
const filterItem = this.getFilterItem(v);
|
const filterItem = this.getFilterItem(v);
|
||||||
list.push(`<div class="cn-selected-buttons">
|
list.push(`<div class="cn-selected-buttons">
|
||||||
<span>Selected <b>${selectedMap[v].length}</b> ${filterItem ? filterItem.label : v}</span>
|
<span>Selected <b>${selectedMap[v].length}</b> ${filterItem ? filterItem.label : v}</span>
|
||||||
${this.grid.hasMask ? "" : this.getActionButtons(v, null, true)}
|
${this.grid.hasMask ? "" : this.getInstallButtons(v)}
|
||||||
</div>`);
|
</div>`);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1141,83 +913,27 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async installNodeWithVersion(rowItem, btn, is_enable) {
|
async installNodes(list, btn, title) {
|
||||||
let hash = rowItem.hash;
|
|
||||||
let title = rowItem.title;
|
|
||||||
|
|
||||||
const item = this.grid.getRowItemBy("hash", hash);
|
|
||||||
|
|
||||||
let node_id = item.originalData.id;
|
|
||||||
|
|
||||||
this.showLoading();
|
|
||||||
let res;
|
|
||||||
if(is_enable) {
|
|
||||||
res = await api.fetchApi(`/customnode/disabled_versions/${node_id}`, { cache: "no-store" });
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
res = await api.fetchApi(`/customnode/versions/${node_id}`, { cache: "no-store" });
|
|
||||||
}
|
|
||||||
this.hideLoading();
|
|
||||||
|
|
||||||
if(res.status == 200) {
|
|
||||||
let obj = await res.json();
|
|
||||||
|
|
||||||
let versions = [];
|
|
||||||
let default_version;
|
|
||||||
let version_cnt = 0;
|
|
||||||
|
|
||||||
if(!is_enable) {
|
|
||||||
if(rowItem.originalData.active_version != 'nightly') {
|
|
||||||
versions.push('nightly');
|
|
||||||
default_version = 'nightly';
|
|
||||||
version_cnt++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(rowItem.cnr_latest != rowItem.originalData.active_version) {
|
|
||||||
versions.push('latest');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for(let v of obj) {
|
|
||||||
if(rowItem.originalData.active_version != v.version) {
|
|
||||||
default_version = v.version;
|
|
||||||
versions.push(v.version);
|
|
||||||
version_cnt++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.showVersionSelectorDialog(versions, (selected_version) => {
|
|
||||||
this.installNodes([hash], btn, title, selected_version);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
show_message('Failed to fetch versions from ComfyRegistry.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async installNodes(list, btn, title, selected_version) {
|
|
||||||
const { target, label, mode} = btn;
|
const { target, label, mode} = btn;
|
||||||
|
|
||||||
if(mode === "uninstall") {
|
if(mode === "uninstall") {
|
||||||
title = title || `${list.length} custom nodes`;
|
title = title || `${list.length} custom nodes`;
|
||||||
if (!confirm(`Are you sure uninstall ${title}?`)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(mode === "reinstall") {
|
const confirmed = await customConfirm(`Are you sure uninstall ${title}?`);
|
||||||
title = title || `${list.length} custom nodes`;
|
if (!confirmed) {
|
||||||
if (!confirm(`Are you sure reinstall ${title}?`)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
target.classList.add("cn-btn-loading");
|
target.classList.add("cn-btn-loading");
|
||||||
|
this.showLoading();
|
||||||
this.showError("");
|
this.showError("");
|
||||||
|
|
||||||
let needRestart = false;
|
let needRestart = false;
|
||||||
let errorMsg = "";
|
let errorMsg = "";
|
||||||
for (const hash of list) {
|
for (const hash of list) {
|
||||||
|
|
||||||
const item = this.grid.getRowItemBy("hash", hash);
|
const item = this.grid.getRowItemBy("hash", hash);
|
||||||
if (!item) {
|
if (!item) {
|
||||||
errorMsg = `Not found custom node: ${hash}`;
|
errorMsg = `Not found custom node: ${hash}`;
|
||||||
@@ -1235,28 +951,9 @@ export class CustomNodesManager {
|
|||||||
this.showStatus(`${label} ${item.title} ...`);
|
this.showStatus(`${label} ${item.title} ...`);
|
||||||
|
|
||||||
const data = item.originalData;
|
const data = item.originalData;
|
||||||
data.selected_version = selected_version;
|
const res = await fetchData(`/customnode/${mode}`, {
|
||||||
data.channel = this.channel;
|
|
||||||
data.mode = this.mode;
|
|
||||||
|
|
||||||
let install_mode = mode;
|
|
||||||
if(mode == 'switch') {
|
|
||||||
install_mode = 'install';
|
|
||||||
}
|
|
||||||
|
|
||||||
// don't post install if install_mode == 'enable'
|
|
||||||
data.skip_post_install = install_mode == 'enable';
|
|
||||||
let api_mode = install_mode;
|
|
||||||
if(install_mode == 'enable') {
|
|
||||||
api_mode = 'install';
|
|
||||||
}
|
|
||||||
|
|
||||||
if(install_mode == 'reinstall') {
|
|
||||||
api_mode = 'reinstall';
|
|
||||||
}
|
|
||||||
|
|
||||||
const res = await api.fetchApi(`/customnode/${api_mode}`, {
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1279,12 +976,13 @@ export class CustomNodesManager {
|
|||||||
this.grid.setRowSelected(item, false);
|
this.grid.setRowSelected(item, false);
|
||||||
item.restart = true;
|
item.restart = true;
|
||||||
this.restartMap[item.hash] = true;
|
this.restartMap[item.hash] = true;
|
||||||
this.grid.updateCell(item, "action");
|
this.grid.updateCell(item, "installed");
|
||||||
|
|
||||||
//console.log(res.data);
|
//console.log(res.data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.hideLoading();
|
||||||
target.classList.remove("cn-btn-loading");
|
target.classList.remove("cn-btn-loading");
|
||||||
|
|
||||||
if (errorMsg) {
|
if (errorMsg) {
|
||||||
@@ -1368,28 +1066,26 @@ export class CustomNodesManager {
|
|||||||
const mappings = res.data;
|
const mappings = res.data;
|
||||||
|
|
||||||
// build regex->url map
|
// build regex->url map
|
||||||
const regex_to_pack = [];
|
const regex_to_url = [];
|
||||||
for(let k in this.custom_nodes) {
|
this.custom_nodes.forEach(node => {
|
||||||
let node = this.custom_nodes[k];
|
|
||||||
|
|
||||||
if(node.nodename_pattern) {
|
if(node.nodename_pattern) {
|
||||||
regex_to_pack.push({
|
regex_to_url.push({
|
||||||
regex: new RegExp(node.nodename_pattern),
|
regex: new RegExp(node.nodename_pattern),
|
||||||
url: node.files[0]
|
url: node.files[0]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
// build name->url map
|
// build name->url map
|
||||||
const name_to_packs = {};
|
const name_to_urls = {};
|
||||||
for (const url in mappings) {
|
for (const url in mappings) {
|
||||||
const names = mappings[url];
|
const names = mappings[url];
|
||||||
|
|
||||||
for(const name in names[0]) {
|
for(const name in names[0]) {
|
||||||
let v = name_to_packs[names[0][name]];
|
let v = name_to_urls[names[0][name]];
|
||||||
if(v == undefined) {
|
if(v == undefined) {
|
||||||
v = [];
|
v = [];
|
||||||
name_to_packs[names[0][name]] = v;
|
name_to_urls[names[0][name]] = v;
|
||||||
}
|
}
|
||||||
v.push(url);
|
v.push(url);
|
||||||
}
|
}
|
||||||
@@ -1416,15 +1112,15 @@ export class CustomNodesManager {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!registered_nodes.has(node_type)) {
|
if (!registered_nodes.has(node_type)) {
|
||||||
const packs = name_to_packs[node_type.trim()];
|
const urls = name_to_urls[node_type.trim()];
|
||||||
if(packs)
|
if(urls)
|
||||||
packs.forEach(url => {
|
urls.forEach(url => {
|
||||||
missing_nodes.add(url);
|
missing_nodes.add(url);
|
||||||
});
|
});
|
||||||
else {
|
else {
|
||||||
for(let j in regex_to_pack) {
|
for(let j in regex_to_url) {
|
||||||
if(regex_to_pack[j].regex.test(node_type)) {
|
if(regex_to_url[j].regex.test(node_type)) {
|
||||||
missing_nodes.add(regex_to_pack[j].url);
|
missing_nodes.add(regex_to_url[j].url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1432,32 +1128,16 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const hashMap = {};
|
const hashMap = {};
|
||||||
for(let k in this.custom_nodes) {
|
this.custom_nodes.forEach(item => {
|
||||||
let item = this.custom_nodes[k];
|
if (item.files.some(file => missing_nodes.has(file))) {
|
||||||
|
|
||||||
if(missing_nodes.has(item.id)) {
|
|
||||||
hashMap[item.hash] = true;
|
hashMap[item.hash] = true;
|
||||||
}
|
}
|
||||||
else if (item.files?.some(file => missing_nodes.has(file))) {
|
});
|
||||||
hashMap[item.hash] = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return hashMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
async getFavorites() {
|
|
||||||
const hashMap = {};
|
|
||||||
for(let k in this.custom_nodes) {
|
|
||||||
let item = this.custom_nodes[k];
|
|
||||||
if(item.is_favorite)
|
|
||||||
hashMap[item.hash] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return hashMap;
|
return hashMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getAlternatives() {
|
async getAlternatives() {
|
||||||
|
|
||||||
const mode = manager_instance.datasrc_combo.value;
|
const mode = manager_instance.datasrc_combo.value;
|
||||||
this.showStatus(`Loading alternatives (${mode}) ...`);
|
this.showStatus(`Loading alternatives (${mode}) ...`);
|
||||||
const res = await fetchData(`/customnode/alternatives?mode=${mode}`);
|
const res = await fetchData(`/customnode/alternatives?mode=${mode}`);
|
||||||
@@ -1467,28 +1147,27 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const hashMap = {};
|
const hashMap = {};
|
||||||
const items = res.data;
|
const { items } = res.data;
|
||||||
|
|
||||||
for(let i in items) {
|
items.forEach(item => {
|
||||||
let item = items[i];
|
|
||||||
let custom_node = this.custom_nodes[i];
|
|
||||||
|
|
||||||
|
const custom_node = this.custom_nodes.find(node => node.files.find(file => file === item.id));
|
||||||
if (!custom_node) {
|
if (!custom_node) {
|
||||||
console.log(`Not found custom node: ${item.id}`);
|
console.log(`Not found custom node: ${item.id}`);
|
||||||
continue;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const tags = `${item.tags}`.split(",").map(tag => {
|
const tags = `${item.tags}`.split(",").map(tag => {
|
||||||
return `<div>${tag.trim()}</div>`;
|
return `<div>${tag.trim()}</div>`;
|
||||||
}).join("");
|
}).join("")
|
||||||
|
|
||||||
hashMap[custom_node.hash] = {
|
hashMap[custom_node.hash] = {
|
||||||
alternatives: `<div class="cn-tag-list">${tags}</div> ${item.description}`
|
alternatives: `<div class="cn-tag-list">${tags}</div> ${item.description}`
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
});
|
||||||
|
|
||||||
return hashMap;
|
return hashMap
|
||||||
}
|
}
|
||||||
|
|
||||||
async loadData(show_mode = ShowMode.NORMAL) {
|
async loadData(show_mode = ShowMode.NORMAL) {
|
||||||
@@ -1510,19 +1189,18 @@ export class CustomNodesManager {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const { channel, node_packs } = res.data;
|
const { channel, custom_nodes} = res.data;
|
||||||
this.channel = channel;
|
this.channel = channel;
|
||||||
this.mode = mode;
|
this.custom_nodes = custom_nodes;
|
||||||
this.custom_nodes = node_packs;
|
|
||||||
|
|
||||||
if(this.channel !== 'default') {
|
if(this.channel !== 'default') {
|
||||||
this.element.querySelector(".cn-manager-channel").innerHTML = `Channel: ${this.channel} (Incomplete list)`;
|
this.element.querySelector(".cn-manager-channel").innerHTML = `Channel: ${this.channel} (Incomplete list)`;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const k in node_packs) {
|
for (const item of custom_nodes) {
|
||||||
let item = node_packs[k];
|
|
||||||
item.originalData = JSON.parse(JSON.stringify(item));
|
item.originalData = JSON.parse(JSON.stringify(item));
|
||||||
item.hash = md5(k);
|
const message = item.title + item.files[0];
|
||||||
|
item.hash = md5(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
const filterItem = this.getFilterItem(this.show_mode);
|
const filterItem = this.getFilterItem(this.show_mode);
|
||||||
@@ -1530,44 +1208,24 @@ export class CustomNodesManager {
|
|||||||
let hashMap;
|
let hashMap;
|
||||||
if(this.show_mode == ShowMode.UPDATE) {
|
if(this.show_mode == ShowMode.UPDATE) {
|
||||||
hashMap = {};
|
hashMap = {};
|
||||||
for (const k in node_packs) {
|
custom_nodes.forEach(it => {
|
||||||
let it = node_packs[k];
|
if (it.installed === "Update") {
|
||||||
if (it['update-state'] === "true") {
|
|
||||||
hashMap[it.hash] = true;
|
hashMap[it.hash] = true;
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
} else if(this.show_mode == ShowMode.MISSING) {
|
} else if(this.show_mode == ShowMode.MISSING) {
|
||||||
hashMap = await this.getMissingNodes();
|
hashMap = await this.getMissingNodes();
|
||||||
} else if(this.show_mode == ShowMode.ALTERNATIVES) {
|
} else if(this.show_mode == ShowMode.ALTERNATIVES) {
|
||||||
hashMap = await this.getAlternatives();
|
hashMap = await this.getAlternatives();
|
||||||
} else if(this.show_mode == ShowMode.FAVORITES) {
|
|
||||||
hashMap = await this.getFavorites();
|
|
||||||
}
|
}
|
||||||
filterItem.hashMap = hashMap;
|
filterItem.hashMap = hashMap;
|
||||||
filterItem.hasData = true;
|
filterItem.hasData = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(let k in node_packs) {
|
custom_nodes.forEach(nodeItem => {
|
||||||
let nodeItem = node_packs[k];
|
|
||||||
|
|
||||||
if (this.restartMap[nodeItem.hash]) {
|
if (this.restartMap[nodeItem.hash]) {
|
||||||
nodeItem.restart = true;
|
nodeItem.restart = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nodeItem['update-state'] == "true") {
|
|
||||||
nodeItem.action = 'updatable';
|
|
||||||
}
|
|
||||||
else if(nodeItem['import-fail']) {
|
|
||||||
nodeItem.action = 'import-fail';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
nodeItem.action = nodeItem.state;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(nodeItem['invalid-installation']) {
|
|
||||||
nodeItem.action = 'invalid-installation';
|
|
||||||
}
|
|
||||||
|
|
||||||
const filterTypes = new Set();
|
const filterTypes = new Set();
|
||||||
this.filterList.forEach(filterItem => {
|
this.filterList.forEach(filterItem => {
|
||||||
const { value, hashMap } = filterItem;
|
const { value, hashMap } = filterItem;
|
||||||
@@ -1576,55 +1234,29 @@ export class CustomNodesManager {
|
|||||||
if (hashData) {
|
if (hashData) {
|
||||||
filterTypes.add(value);
|
filterTypes.add(value);
|
||||||
if (value === ShowMode.UPDATE) {
|
if (value === ShowMode.UPDATE) {
|
||||||
nodeItem['update-state'] = "true";
|
nodeItem.installed = "Update";
|
||||||
}
|
|
||||||
if (value === ShowMode.MISSING) {
|
|
||||||
nodeItem['missing-node'] = "true";
|
|
||||||
}
|
}
|
||||||
if (typeof hashData === "object") {
|
if (typeof hashData === "object") {
|
||||||
Object.assign(nodeItem, hashData);
|
Object.assign(nodeItem, hashData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (nodeItem.state === value) {
|
if (nodeItem.installed === value) {
|
||||||
filterTypes.add(value);
|
filterTypes.add(value);
|
||||||
}
|
}
|
||||||
|
const map = {
|
||||||
switch(nodeItem.state) {
|
"Update": "True",
|
||||||
case "enabled":
|
"Disabled": "True",
|
||||||
filterTypes.add("enabled");
|
"Fail": "True",
|
||||||
case "disabled":
|
"None": "False"
|
||||||
filterTypes.add("installed");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "not-installed":
|
|
||||||
filterTypes.add("not-installed");
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
if (map[nodeItem.installed]) {
|
||||||
if(nodeItem.version != 'unknown') {
|
filterTypes.add(map[nodeItem.installed]);
|
||||||
filterTypes.add("cnr");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
filterTypes.add("unknown");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(nodeItem['update-state'] == 'true') {
|
|
||||||
filterTypes.add("updatable");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(nodeItem['import-fail']) {
|
|
||||||
filterTypes.add("import-fail");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(nodeItem['invalid-installation']) {
|
|
||||||
filterTypes.add("invalid-installation");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
nodeItem.filterTypes = Array.from(filterTypes);
|
nodeItem.filterTypes = Array.from(filterTypes);
|
||||||
}
|
});
|
||||||
|
|
||||||
this.renderGrid();
|
this.renderGrid();
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import TG from "./turbogrid.esm.js";
|
|||||||
const pageCss = `
|
const pageCss = `
|
||||||
.cmm-manager {
|
.cmm-manager {
|
||||||
--grid-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
--grid-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
||||||
z-index: 10001;
|
z-index: 1100;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
height: 80%;
|
height: 80%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -235,7 +235,7 @@ const pageHtml = `
|
|||||||
<div class="cmm-manager-selection"></div>
|
<div class="cmm-manager-selection"></div>
|
||||||
<div class="cmm-manager-message"></div>
|
<div class="cmm-manager-message"></div>
|
||||||
<div class="cmm-manager-footer">
|
<div class="cmm-manager-footer">
|
||||||
<button class="cmm-manager-back">Back</button>
|
<button class="cmm-manager-close">Close</button>
|
||||||
<div class="cmm-flex-auto"></div>
|
<div class="cmm-flex-auto"></div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@@ -365,12 +365,10 @@ export class ModelManager {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
".cmm-manager-back": {
|
".cmm-manager-close": {
|
||||||
click: (e) => {
|
click: (e) => this.close()
|
||||||
this.close()
|
|
||||||
manager_instance.show();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
Object.keys(eventsMap).forEach(selector => {
|
Object.keys(eventsMap).forEach(selector => {
|
||||||
const target = this.element.querySelector(selector);
|
const target = this.element.querySelector(selector);
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ export class SnapshotManager extends ComfyDialog {
|
|||||||
try {
|
try {
|
||||||
this.invalidateControl();
|
this.invalidateControl();
|
||||||
this.element.style.display = "block";
|
this.element.style.display = "block";
|
||||||
this.element.style.zIndex = 10001;
|
this.element.style.zIndex = 1100;
|
||||||
}
|
}
|
||||||
catch(exception) {
|
catch(exception) {
|
||||||
app.ui.dialog.show(`Failed to get external model list. / ${exception}`);
|
app.ui.dialog.show(`Failed to get external model list. / ${exception}`);
|
||||||
|
|||||||
@@ -1,84 +0,0 @@
|
|||||||
/**
|
|
||||||
* Attaches metadata to the workflow on save
|
|
||||||
* - custom node pack version to all custom nodes used in the workflow
|
|
||||||
*
|
|
||||||
* Example metadata:
|
|
||||||
"extra": {
|
|
||||||
"node_versions": {
|
|
||||||
"comfy-core": "v0.3.8-4-g0b2eb7f",
|
|
||||||
"comfyui-easy-use": "1.2.5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { app } from "../../scripts/app.js";
|
|
||||||
import { api } from "../../scripts/api.js";
|
|
||||||
|
|
||||||
class WorkflowMetadataExtension {
|
|
||||||
constructor() {
|
|
||||||
this.name = "Comfy.CustomNodesManager.WorkflowMetadata";
|
|
||||||
this.installedNodeVersions = {};
|
|
||||||
this.comfyCoreVersion = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the installed node versions
|
|
||||||
* @returns {Promise<Record<string, string>>} The mapping from node name to version
|
|
||||||
* version can either be a git commit hash or a semantic version such as "1.0.0"
|
|
||||||
*/
|
|
||||||
async getInstalledNodeVersions() {
|
|
||||||
const res = await api.fetchApi("/customnode/installed");
|
|
||||||
return await res.json();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the node versions for the given graph
|
|
||||||
* @param {LGraph} graph The graph to get the node versions for
|
|
||||||
* @returns {Promise<Record<string, string>>} The mapping from node name to version
|
|
||||||
*/
|
|
||||||
getGraphNodeVersions(graph) {
|
|
||||||
const nodeVersions = {};
|
|
||||||
for (const node of graph.nodes) {
|
|
||||||
const nodeData = node.constructor.nodeData;
|
|
||||||
// Frontend only nodes don't have nodeData
|
|
||||||
if (!nodeData) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
const modules = nodeData.python_module.split(".");
|
|
||||||
|
|
||||||
if (modules[0] === "custom_nodes") {
|
|
||||||
const nodePackageName = modules[1].split("@")[0];
|
|
||||||
const nodeVersion = this.installedNodeVersions[nodePackageName];
|
|
||||||
nodeVersions[nodePackageName] = nodeVersion;
|
|
||||||
} else if (["nodes", "comfy_extras"].includes(modules[0])) {
|
|
||||||
nodeVersions["comfy-core"] = this.comfyCoreVersion;
|
|
||||||
} else {
|
|
||||||
console.warn(`Unknown node source: ${nodeData.python_module}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nodeVersions;
|
|
||||||
}
|
|
||||||
|
|
||||||
async init() {
|
|
||||||
const extension = this;
|
|
||||||
this.installedNodeVersions = await this.getInstalledNodeVersions();
|
|
||||||
this.comfyCoreVersion = (await api.getSystemStats()).system.comfyui_version;
|
|
||||||
|
|
||||||
// Attach metadata when app.graphToPrompt is called.
|
|
||||||
const originalSerialize = LGraph.prototype.serialize;
|
|
||||||
LGraph.prototype.serialize = function () {
|
|
||||||
const workflow = originalSerialize.apply(this, arguments);
|
|
||||||
|
|
||||||
// Add metadata to the workflow
|
|
||||||
if (!workflow.extra) {
|
|
||||||
workflow.extra = {};
|
|
||||||
}
|
|
||||||
const graph = this;
|
|
||||||
workflow.extra["node_versions"] = extension.getGraphNodeVersions(graph);
|
|
||||||
|
|
||||||
return workflow;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
app.registerExtension(new WorkflowMetadataExtension());
|
|
||||||
175
model-list.json
175
model-list.json
@@ -3943,8 +3943,9 @@
|
|||||||
"url": "https://huggingface.co/Kijai/DepthAnythingV2-safetensors/resolve/main/depth_anything_v2_vits_fp32.safetensors",
|
"url": "https://huggingface.co/Kijai/DepthAnythingV2-safetensors/resolve/main/depth_anything_v2_vits_fp32.safetensors",
|
||||||
"size": "99.2MB"
|
"size": "99.2MB"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "PixArt-Sigma-XL-2-1024-MS.pth",
|
"name": "PixArt-Sigma-XL-2-1024-MS.pth (checkpoint)",
|
||||||
"type": "checkpoint",
|
"type": "checkpoint",
|
||||||
"base": "pixart-sigma",
|
"base": "pixart-sigma",
|
||||||
"save_path": "checkpoints/PixArt-Sigma",
|
"save_path": "checkpoints/PixArt-Sigma",
|
||||||
@@ -3955,6 +3956,41 @@
|
|||||||
"size": "2.47GB"
|
"size": "2.47GB"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "PixArt-Sigma-XL-2-512-MS.safetensors (diffusion)",
|
||||||
|
"type": "diffusion_model",
|
||||||
|
"base": "pixart-sigma",
|
||||||
|
"save_path": "diffusion_models/PixArt-Sigma",
|
||||||
|
"description": "PixArt-Sigma Diffusion model",
|
||||||
|
"reference": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-512-MS",
|
||||||
|
"filename": "PixArt-Sigma-XL-2-512-MS.safetensors",
|
||||||
|
"url": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-512-MS/resolve/main/transformer/diffusion_pytorch_model.safetensors",
|
||||||
|
"size": "2.44GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "PixArt-Sigma-XL-2-1024-MS.safetensors (diffusion)",
|
||||||
|
"type": "diffusion_model",
|
||||||
|
"base": "pixart-sigma",
|
||||||
|
"save_path": "diffusion_models/PixArt-Sigma",
|
||||||
|
"description": "PixArt-Sigma Diffusion model",
|
||||||
|
"reference": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS",
|
||||||
|
"filename": "PixArt-Sigma-XL-2-1024-MS.safetensors",
|
||||||
|
"url": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/resolve/main/transformer/diffusion_pytorch_model.safetensors",
|
||||||
|
"size": "2.44GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "PixArt-XL-2-1024-MS.safetensors (diffusion)",
|
||||||
|
"type": "diffusion_model",
|
||||||
|
"base": "pixart-alpha",
|
||||||
|
"save_path": "diffusion_models/PixArt-Alpha",
|
||||||
|
"description": "PixArt-Alpha Diffusion model",
|
||||||
|
"reference": "https://huggingface.co/PixArt-alpha/PixArt-XL-2-1024-MS",
|
||||||
|
"filename": "PixArt-XL-2-1024-MS.safetensors",
|
||||||
|
"url": "https://huggingface.co/PixArt-alpha/PixArt-XL-2-1024-MS/resolve/main/transformer/diffusion_pytorch_model.safetensors",
|
||||||
|
"size": "2.45GB"
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "hunyuan_dit_1.2.safetensors",
|
"name": "hunyuan_dit_1.2.safetensors",
|
||||||
"type": "checkpoint",
|
"type": "checkpoint",
|
||||||
@@ -3989,6 +4025,52 @@
|
|||||||
"size": "8.24GB"
|
"size": "8.24GB"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Comfy-Org/hunyuan_video_t2v_720p_bf16.safetensors",
|
||||||
|
"type": "diffusion_model",
|
||||||
|
"base": "Hunyuan Video",
|
||||||
|
"save_path": "diffusion_models/hunyuan_video",
|
||||||
|
"description": "Huyuan Video diffusion model. repackaged version.",
|
||||||
|
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
|
||||||
|
"filename": "hunyuan_video_t2v_720p_bf16.safetensors",
|
||||||
|
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/diffusion_models/hunyuan_video_t2v_720p_bf16.safetensors",
|
||||||
|
"size": "25.6GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Comfy-Org/hunyuan_video_vae_bf16.safetensors",
|
||||||
|
"type": "VAE",
|
||||||
|
"base": "Hunyuan Video",
|
||||||
|
"save_path": "VAE",
|
||||||
|
"description": "Huyuan Video VAE model. repackaged version.",
|
||||||
|
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
|
||||||
|
"filename": "hunyuan_video_vae_bf16.safetensors",
|
||||||
|
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/vae/hunyuan_video_vae_bf16.safetensors",
|
||||||
|
"size": "493MB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Comfy-Org/llava_llama3_fp8_scaled.safetensors",
|
||||||
|
"type": "clip",
|
||||||
|
"base": "LLaVA-Llama-3",
|
||||||
|
"save_path": "text_encoders",
|
||||||
|
"description": "llava_llama3_fp8_scaled text encoder model. This is required for using Hunyuan Video.",
|
||||||
|
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
|
||||||
|
"filename": "llava_llama3_fp8_scaled.safetensors",
|
||||||
|
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/llava_llama3_fp8_scaled.safetensors",
|
||||||
|
"size": "9.09GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Comfy-Org/llava_llama3_fp16.safetensors",
|
||||||
|
"type": "clip",
|
||||||
|
"base": "LLaVA-Llama-3",
|
||||||
|
"save_path": "text_encoders",
|
||||||
|
"description": "llava_llama3_fp16 text encoder model. This is required for using Hunyuan Video.",
|
||||||
|
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
|
||||||
|
"filename": "llava_llama3_fp16.safetensors",
|
||||||
|
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/llava_llama3_fp16.safetensors",
|
||||||
|
"size": "16.1GB"
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "FLUX.1 [Schnell] Diffusion model",
|
"name": "FLUX.1 [Schnell] Diffusion model",
|
||||||
"type": "diffusion_model",
|
"type": "diffusion_model",
|
||||||
@@ -4552,6 +4634,97 @@
|
|||||||
"filename": "ltx-video-2b-v0.9.safetensors",
|
"filename": "ltx-video-2b-v0.9.safetensors",
|
||||||
"url": "https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltx-video-2b-v0.9.safetensors",
|
"url": "https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltx-video-2b-v0.9.safetensors",
|
||||||
"size": "9.37GB"
|
"size": "9.37GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "LTX-Video 2B v0.9.1 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.1.safetensors",
|
||||||
|
"url": "https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltx-video-2b-v0.9.1.safetensors",
|
||||||
|
"size": "5.72GB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/flux-canny-controlnet-v3.safetensors",
|
||||||
|
"type": "controlnet",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/controlnets",
|
||||||
|
"description": "ControlNet checkpoints for FLUX.1-dev model by Black Forest Labs.",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-controlnet-collections",
|
||||||
|
"filename": "flux-canny-controlnet-v3.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-controlnet-collections/resolve/main/flux-canny-controlnet-v3.safetensors",
|
||||||
|
"size": "1.49GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/flux-depth-controlnet-v3.safetensors",
|
||||||
|
"type": "controlnet",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/controlnets",
|
||||||
|
"description": "ControlNet checkpoints for FLUX.1-dev model by Black Forest Labs.",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-controlnet-collections",
|
||||||
|
"filename": "flux-depth-controlnet-v3.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-controlnet-collections/resolve/main/flux-depth-controlnet-v3.safetensors",
|
||||||
|
"size": "1.49GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/flux-hed-controlnet-v3.safetensors",
|
||||||
|
"type": "controlnet",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/controlnets",
|
||||||
|
"description": "ControlNet checkpoints for FLUX.1-dev model by Black Forest Labs.",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-controlnet-collections",
|
||||||
|
"filename": "flux-hed-controlnet-v3.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-controlnet-collections/resolve/main/flux-hed-controlnet-v3.safetensors",
|
||||||
|
"size": "1.49GB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/realism_lora.safetensors",
|
||||||
|
"type": "lora",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/loras",
|
||||||
|
"description": "A checkpoint with trained LoRAs for FLUX.1-dev model by Black Forest Labs",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-lora-collection",
|
||||||
|
"filename": "realism_lora.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-lora-collection/resolve/main/realism_lora.safetensors",
|
||||||
|
"size": "44.8MB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/art_lora.safetensors",
|
||||||
|
"type": "lora",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/loras",
|
||||||
|
"description": "A checkpoint with trained LoRAs for FLUX.1-dev model by Black Forest Labs",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-lora-collection",
|
||||||
|
"filename": "art_lora.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-lora-collection/resolve/main/scenery_lora.safetensors",
|
||||||
|
"size": "44.8MB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/mjv6_lora.safetensors",
|
||||||
|
"type": "lora",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/loras",
|
||||||
|
"description": "A checkpoint with trained LoRAs for FLUX.1-dev model by Black Forest Labs",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-lora-collection",
|
||||||
|
"filename": "mjv6_lora.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-lora-collection/resolve/main/mjv6_lora.safetensors",
|
||||||
|
"size": "44.8MB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/flux-ip-adapter",
|
||||||
|
"type": "lora",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/ipadapters",
|
||||||
|
"description": "A checkpoint with trained LoRAs for FLUX.1-dev model by Black Forest Labs",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-ip-adapter",
|
||||||
|
"filename": "ip_adapter.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-ip-adapter/resolve/main/ip_adapter.safetensors",
|
||||||
|
"size": "982MB"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,197 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
"author": "ryanontheinside",
|
||||||
|
"title": "ComfyUI_YoloNasObjectDetection_Tensorrt [WIP]",
|
||||||
|
"reference": "https://github.com/ryanontheinside/ComfyUI_YoloNasObjectDetection_Tensorrt",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/ryanontheinside/ComfyUI_YoloNasObjectDetection_Tensorrt"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "ComfyUI YOLO NAS Object Detection with TensorRT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "steelan9199",
|
||||||
|
"title": "ComfyUI-Teeth [UNSAFE]",
|
||||||
|
"reference": "https://github.com/steelan9199/ComfyUI-Teeth",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/steelan9199/ComfyUI-Teeth"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Run Python code, Outline, List, Four-quadrant grid, Nine-square grid[w/This extension poses a risk of executing arbitrary commands through workflow execution. Please be cautious.]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "aiden1020",
|
||||||
|
"title": "ComfyUI_Artcoder [WIP]",
|
||||||
|
"reference": "https://github.com/aiden1020/ComfyUI_Artcoder",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/aiden1020/ComfyUI_Artcoder"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "This project is a custom node for ComfyUI that uses [a/ArtCoder](https://arxiv.org/abs/2011.07815) [CVPR 2021] to refine videos generated by [a/AnimateDiff](https://arxiv.org/abs/2307.04725) [ICLR2024 Spotlight] or the other video. The node is to transform these videos into functional QR code videos that can be scanned.\nNOTE: The files in the repo are not organized."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "A4P7J1N7M05OT",
|
||||||
|
"title": "ComfyUI-ManualSigma",
|
||||||
|
"reference": "https://github.com/A4P7J1N7M05OT/ComfyUI-ManualSigma",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/A4P7J1N7M05OT/ComfyUI-ManualSigma"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "NODES: Manual Sigma"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "neverbiasu",
|
||||||
|
"title": "ComfyUI-StereoCrafter [WIP]",
|
||||||
|
"reference": "https://github.com/neverbiasu/ComfyUI-StereoCrafter",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/neverbiasu/ComfyUI-StereoCrafter"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "NODES: Depth Splatting Model Loader, Depth Splatting Node, Inpainting Inference Node"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "watarika",
|
||||||
|
"title": "ComfyUI-exit [UNSAFE]",
|
||||||
|
"reference": "https://github.com/watarika/ComfyUI-exit",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/watarika/ComfyUI-exit"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Custom node to handle text.[w/This custom node includes a custom node that can terminate ComfyUI.]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "watarika",
|
||||||
|
"title": "ComfyUI-Text-Utility [UNSAFE]",
|
||||||
|
"reference": "https://github.com/watarika/ComfyUI-Text-Utility",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/watarika/ComfyUI-Text-Utility"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Custom node to handle text.[w/This node pack contains a custom node that poses a security risk by providing the ability to read text from arbitrary paths.]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "mehbebe",
|
||||||
|
"title": "ComfyLoraGallery [WIP]",
|
||||||
|
"reference": "https://github.com/mehbebe/ComfyLoraGallery",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/mehbebe/ComfyLoraGallery"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "A custom node for ComfyUI that will provide a gallery style lora selector similar to the 'lora' tab in Automatic1111."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "karthikg-09",
|
||||||
|
"title": "ComfyUI-KG09 [WIP]",
|
||||||
|
"reference": "https://github.com/karthikg-09/ComfyUI-3ncrypt",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/karthikg-09/ComfyUI-3ncrypt"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "NODES: Save Image+[w/The web extension of this node pack modifies part of ComfyUI's asset files.]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "AustinMroz",
|
||||||
|
"title": "ComfyUI-MinCache",
|
||||||
|
"id": "comfyui-mincache",
|
||||||
|
"reference": "https://github.com/AustinMroz/ComfyUI-MinCache",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/AustinMroz/ComfyUI-MinCache"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Modifies execution to minimize RAM at the cost of performance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "glamorfleet0i",
|
||||||
|
"title": "ComfyUI Firewall",
|
||||||
|
"reference": "https://github.com/glamorfleet0i/ComfyUI-Firewall",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/glamorfleet0i/ComfyUI-Firewall"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "A very basic firewall-like middleware that restricts access to your ComfyUI server based on a list of specified IP addresses. As this is configured as middleware, the firewall will restrict both the web UI and any API endpoints."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "warshanks",
|
||||||
|
"title": "Shank-Tools",
|
||||||
|
"reference": "https://github.com/warshanks/Shank-Tools",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/warshanks/Shank-Tools"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "NODES: Tile Calculator"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "BaronVonBoolean",
|
||||||
|
"title": "ComfyUI-FileOps [UNSAFE]",
|
||||||
|
"reference": "https://github.com/BaronVonBoolean/ComfyUI-FileOps",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/BaronVonBoolean/ComfyUI-FileOps"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "NODES: File Mv, File Path, File Dir.\n[w/This is dangerous as it provides the ability to manipulate arbitrary user files.]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "scottmudge",
|
||||||
|
"title": "ComfyUI_BiscuitNodes",
|
||||||
|
"reference": "https://github.com/scottmudge/ComfyUI_BiscuitNodes",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/scottmudge/ComfyUI_BiscuitNodes"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Load Image From Path Using File Selector"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "JissiChoi",
|
||||||
|
"title": "ComfyUI-Jissi-List [WIP]",
|
||||||
|
"reference": "https://github.com/JissiChoi/ComfyUI-Jissi-List",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/JissiChoi/ComfyUI-Jissi-List"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Data List Management for ComfyUI\nNOTE: The files in the repo are not organized."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "Maxim-Dey",
|
||||||
|
"title": "ComfyUI-MS_Tools",
|
||||||
|
"reference": "https://github.com/Maxim-Dey/ComfyUI-MaksiTools",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/Maxim-Dey/ComfyUI-MaksiTools"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "NODES: MS Time Measure Node"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "jammyfu",
|
||||||
|
"title": "ComfyUI PaintingCoderUtils Nodes [WIP]",
|
||||||
|
"reference": "https://github.com/jammyfu/ComfyUI_PaintingCoderUtils",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/jammyfu/ComfyUI_PaintingCoderUtils"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "A collection of utility nodes designed for ComfyUI, offering convenient image processing tools.\nNOTE: The files in the repo are not organized.\nNOTE: The files in the repo are not organized."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "krich-cto",
|
||||||
|
"title": "ComfyUI Flow Control [UNSTABLE]",
|
||||||
|
"reference": "https://github.com/krich-cto/ComfyUI-Flow-Control",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/krich-cto/ComfyUI-Flow-Control"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "This is an Extension for ComfyUI. This project will help you control the flow logic via many controls.[w/Installing this custom node currently causes a conflict with the UnetLoaderGGUF of ComfyUI-GGUF.]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "dihan",
|
||||||
|
"title": "ComfyUI Random Keypoints for InstantID [WIP]",
|
||||||
|
"reference": "https://github.com/dihan/comfyui-random-kps",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/dihan/comfyui-random-kps"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "A custom node for ComfyUI that generates random facial keypoints compatible with InstantID.\nNOTE: The files in the repo are not organized."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"author": "emranemran",
|
"author": "emranemran",
|
||||||
"title": "ComfyUI-FasterLivePortrait",
|
"title": "ComfyUI-FasterLivePortrait",
|
||||||
@@ -82,16 +273,6 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "NODES: AD_BatchImageLoadFromDir, AD_DeleteLocalAny, AD_TextListToString, AD_AnyFileList, AD_ZipSave, AD_ImageSaver, AD_FluxTrainStepMath, AD_TextSaver, AD_PromptReplace.\nNOTE: This node pack includes nodes that can delete arbitrary files."
|
"description": "NODES: AD_BatchImageLoadFromDir, AD_DeleteLocalAny, AD_TextListToString, AD_AnyFileList, AD_ZipSave, AD_ImageSaver, AD_FluxTrainStepMath, AD_TextSaver, AD_PromptReplace.\nNOTE: This node pack includes nodes that can delete arbitrary files."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"author": "jefferyharrell",
|
|
||||||
"title": "ComfyUI_XMPMetadataNodes",
|
|
||||||
"reference": "https://github.com/jefferyharrell/ComfyUI_XMPMetadataNodes",
|
|
||||||
"files": [
|
|
||||||
"https://github.com/jefferyharrell/ComfyUI_XMPMetadataNodes"
|
|
||||||
],
|
|
||||||
"install_type": "git-clone",
|
|
||||||
"description": "NODES: Format Instructions, Path to Stem, Save Image With XMP Metadata, Load Image With XMP Metadata, Get Widget Value (String/Integer/Float), ..."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"author": "backearth1",
|
"author": "backearth1",
|
||||||
"title": "Comfyui-MiniMax-Video [WIP]",
|
"title": "Comfyui-MiniMax-Video [WIP]",
|
||||||
@@ -123,16 +304,6 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "ComfyUI nodes to use [a/MMAudio](https://github.com/hkchengrex/MMAudio)"
|
"description": "ComfyUI nodes to use [a/MMAudio](https://github.com/hkchengrex/MMAudio)"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"author": "Aksaz",
|
|
||||||
"title": "seamless-clone-comfyui",
|
|
||||||
"reference": "https://github.com/Aksaz/seamless-clone-comfyui",
|
|
||||||
"files": [
|
|
||||||
"https://github.com/Aksaz/seamless-clone-comfyui"
|
|
||||||
],
|
|
||||||
"install_type": "git-clone",
|
|
||||||
"description": "NODES: Seamless Cloning"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"author": "kuschanow",
|
"author": "kuschanow",
|
||||||
"title": "ComfyUI-SD-Slicer",
|
"title": "ComfyUI-SD-Slicer",
|
||||||
@@ -213,16 +384,6 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "This repo contains signal processing nodes for ComfyUI allowing for audio manipulation."
|
"description": "This repo contains signal processing nodes for ComfyUI allowing for audio manipulation."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"author": "Aksaz",
|
|
||||||
"title": "seamless-clone-comfyui",
|
|
||||||
"reference": "https://github.com/Aksaz/seamless-clone-comfyui",
|
|
||||||
"files": [
|
|
||||||
"https://github.com/Aksaz/seamless-clone-comfyui"
|
|
||||||
],
|
|
||||||
"install_type": "git-clone",
|
|
||||||
"description": "NODES: Seamless Cloning"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"author": "Junst",
|
"author": "Junst",
|
||||||
"title": "ComfyUI-PNG2SVG2PNG",
|
"title": "ComfyUI-PNG2SVG2PNG",
|
||||||
@@ -251,7 +412,7 @@
|
|||||||
"https://github.com/ShahFaisalWani/ComfyUI-Mojen-Nodeset"
|
"https://github.com/ShahFaisalWani/ComfyUI-Mojen-Nodeset"
|
||||||
],
|
],
|
||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "NODES: MojenLogPercent, MojenTagProcessor, MojenStyleExtractor, MojenAnalyzeProcessor"
|
"description": "A collection of powerful, versatile, and community-driven custom nodes for ComfyUI, designed to elevate AI workflows!"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"author": "kijai",
|
"author": "kijai",
|
||||||
@@ -1603,16 +1764,6 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "ComfyUI_EnvAutopsyAPI is a powerful debugging tool designed for ComfyUI that provides in-depth analysis of your environment and dependencies through an API interface. This tool allows you to inspect environment variables, pip packages, and dependency trees, making it easier to diagnose and resolve issues in your ComfyUI setup.[w/This tool may expose sensitive system information if used on a public server. MUST READ [a/THIS](https://github.com/chrisdreid/ComfyUI_EnvAutopsyAPI#%EF%B8%8F-warning-security-risk-%EF%B8%8F) before install.]"
|
"description": "ComfyUI_EnvAutopsyAPI is a powerful debugging tool designed for ComfyUI that provides in-depth analysis of your environment and dependencies through an API interface. This tool allows you to inspect environment variables, pip packages, and dependency trees, making it easier to diagnose and resolve issues in your ComfyUI setup.[w/This tool may expose sensitive system information if used on a public server. MUST READ [a/THIS](https://github.com/chrisdreid/ComfyUI_EnvAutopsyAPI#%EF%B8%8F-warning-security-risk-%EF%B8%8F) before install.]"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"author": "neuratech-ai",
|
|
||||||
"title": "ComfyUI-MultiGPU",
|
|
||||||
"reference": "https://github.com/neuratech-ai/ComfyUI-MultiGPU",
|
|
||||||
"files": [
|
|
||||||
"https://github.com/neuratech-ai/ComfyUI-MultiGPU"
|
|
||||||
],
|
|
||||||
"install_type": "git-clone",
|
|
||||||
"description": "Experimental nodes for using multiple GPUs in a single ComfyUI workflow.\nThis extension adds new nodes for model loading that allow you to specify the GPU to use for each model. It monkey patches the memory management of ComfyUI in a hacky way and is neither a comprehensive solution nor a well-tested one. Use at your own risk.\nNote that this does not add parallelism. The workflow steps are still executed sequentially just on different GPUs. Any potential speedup comes from not having to constantly load and unload models from VRAM."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"author": "Futureversecom",
|
"author": "Futureversecom",
|
||||||
"title": "ComfyUI-JEN",
|
"title": "ComfyUI-JEN",
|
||||||
|
|||||||
@@ -154,6 +154,14 @@
|
|||||||
"title_aux": "ComfyUI_Fooocus"
|
"title_aux": "ComfyUI_Fooocus"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/A4P7J1N7M05OT/ComfyUI-ManualSigma": [
|
||||||
|
[
|
||||||
|
"ManualSigma"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI-ManualSigma"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/A719689614/ComfyUI_AC_FUNV8Beta1": [
|
"https://github.com/A719689614/ComfyUI_AC_FUNV8Beta1": [
|
||||||
[
|
[
|
||||||
"\u2b1b(TODO)AC_Super_Come_Ckpt",
|
"\u2b1b(TODO)AC_Super_Come_Ckpt",
|
||||||
@@ -319,14 +327,6 @@
|
|||||||
"title_aux": "comfyui-textools [WIP]"
|
"title_aux": "comfyui-textools [WIP]"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"https://github.com/Aksaz/seamless-clone-comfyui": [
|
|
||||||
[
|
|
||||||
"Seamless Cloning"
|
|
||||||
],
|
|
||||||
{
|
|
||||||
"title_aux": "seamless-clone-comfyui"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"https://github.com/AlexXi19/ComfyUI-OpenAINode": [
|
"https://github.com/AlexXi19/ComfyUI-OpenAINode": [
|
||||||
[
|
[
|
||||||
"ImageWithPrompt",
|
"ImageWithPrompt",
|
||||||
@@ -418,6 +418,16 @@
|
|||||||
"title_aux": "execution-inversion-demo-comfyui"
|
"title_aux": "execution-inversion-demo-comfyui"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/BaronVonBoolean/ComfyUI-FileOps": [
|
||||||
|
[
|
||||||
|
"File Mv",
|
||||||
|
"File Path",
|
||||||
|
"Make Dir"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI-FileOps [UNSAFE]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/BenjaMITM/ComfyUI_On_The_Fly_Wildcards": [
|
"https://github.com/BenjaMITM/ComfyUI_On_The_Fly_Wildcards": [
|
||||||
[
|
[
|
||||||
"Display String",
|
"Display String",
|
||||||
@@ -630,12 +640,20 @@
|
|||||||
[
|
[
|
||||||
"AD_AnyFileList",
|
"AD_AnyFileList",
|
||||||
"AD_BatchImageLoadFromDir",
|
"AD_BatchImageLoadFromDir",
|
||||||
|
"AD_CSVPromptStyler",
|
||||||
|
"AD_CSVReader",
|
||||||
|
"AD_CSVTranslator",
|
||||||
"AD_DeleteLocalAny",
|
"AD_DeleteLocalAny",
|
||||||
"AD_FluxTrainStepMath",
|
"AD_FluxTrainStepMath",
|
||||||
|
"AD_HFDownload",
|
||||||
|
"AD_ImageDrawRectangleSimple",
|
||||||
|
"AD_ImageIndexer",
|
||||||
"AD_ImageSaver",
|
"AD_ImageSaver",
|
||||||
|
"AD_LoadImageAdvanced",
|
||||||
"AD_PromptReplace",
|
"AD_PromptReplace",
|
||||||
"AD_TextListToString",
|
"AD_TextListToString",
|
||||||
"AD_TextSaver",
|
"AD_TextSaver",
|
||||||
|
"AD_TxtToCSVCombiner",
|
||||||
"AD_ZipSave"
|
"AD_ZipSave"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
@@ -837,6 +855,21 @@
|
|||||||
"title_aux": "ComfyUI-SaveImagePlus"
|
"title_aux": "ComfyUI-SaveImagePlus"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/JissiChoi/ComfyUI-Jissi-List": [
|
||||||
|
[
|
||||||
|
"JissiFloatList",
|
||||||
|
"JissiList",
|
||||||
|
"JissiMatching",
|
||||||
|
"JissiMultiplePrompts",
|
||||||
|
"JissiText",
|
||||||
|
"JissiTextFileToListDisplay",
|
||||||
|
"JissiTextTemplate",
|
||||||
|
"JissiView"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI-Jissi-List [WIP]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/Jordach/comfy-consistency-vae": [
|
"https://github.com/Jordach/comfy-consistency-vae": [
|
||||||
[
|
[
|
||||||
"Comfy_ConsistencyVAE"
|
"Comfy_ConsistencyVAE"
|
||||||
@@ -1008,6 +1041,14 @@
|
|||||||
"title_aux": "ComfyUI-MoviePy"
|
"title_aux": "ComfyUI-MoviePy"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/Maxim-Dey/ComfyUI-MaksiTools": [
|
||||||
|
[
|
||||||
|
"MT Time Measure Node"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI-MS_Tools"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/MrAdamBlack/CheckProgress": [
|
"https://github.com/MrAdamBlack/CheckProgress": [
|
||||||
[
|
[
|
||||||
"CHECK_PROGRESS"
|
"CHECK_PROGRESS"
|
||||||
@@ -1169,9 +1210,11 @@
|
|||||||
"https://github.com/ShahFaisalWani/ComfyUI-Mojen-Nodeset": [
|
"https://github.com/ShahFaisalWani/ComfyUI-Mojen-Nodeset": [
|
||||||
[
|
[
|
||||||
"MojenAnalyzeProcessor",
|
"MojenAnalyzeProcessor",
|
||||||
|
"MojenImageLoader",
|
||||||
"MojenLogPercent",
|
"MojenLogPercent",
|
||||||
"MojenNSFWClassifier",
|
"MojenNSFWClassifier",
|
||||||
"MojenNSFWClassifierSave",
|
"MojenNSFWClassifierSave",
|
||||||
|
"MojenStringLength",
|
||||||
"MojenStyleExtractor",
|
"MojenStyleExtractor",
|
||||||
"MojenTagProcessor"
|
"MojenTagProcessor"
|
||||||
],
|
],
|
||||||
@@ -1188,8 +1231,11 @@
|
|||||||
"Clip Tokens Encode (Shinsplat)",
|
"Clip Tokens Encode (Shinsplat)",
|
||||||
"Green Box (Shinsplat)",
|
"Green Box (Shinsplat)",
|
||||||
"Hex To Other (Shinsplat)",
|
"Hex To Other (Shinsplat)",
|
||||||
|
"KSampler (Shinsplat)",
|
||||||
"Lora Loader (Shinsplat)",
|
"Lora Loader (Shinsplat)",
|
||||||
|
"Nupoma (Shinsplat)",
|
||||||
"Seed (Shinsplat)",
|
"Seed (Shinsplat)",
|
||||||
|
"Shinsplat_CLIPTextEncodeFlux",
|
||||||
"String Interpolated (Shinsplat)",
|
"String Interpolated (Shinsplat)",
|
||||||
"Sum Wrap (Shinsplat)",
|
"Sum Wrap (Shinsplat)",
|
||||||
"Tensor Toys (Shinsplat)",
|
"Tensor Toys (Shinsplat)",
|
||||||
@@ -1381,6 +1427,14 @@
|
|||||||
"title_aux": "ComfyUI-PuLID-ZHO [WIP]"
|
"title_aux": "ComfyUI-PuLID-ZHO [WIP]"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/aiden1020/ComfyUI_Artcoder": [
|
||||||
|
[
|
||||||
|
"ArtCoder"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI_Artcoder [WIP]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/ainanoha/etm_comfyui_nodes": [
|
"https://github.com/ainanoha/etm_comfyui_nodes": [
|
||||||
[
|
[
|
||||||
"ETM_LoadImageFromLocal",
|
"ETM_LoadImageFromLocal",
|
||||||
@@ -1755,9 +1809,11 @@
|
|||||||
[
|
[
|
||||||
"SignalProcessingBaxandall3BandEQ",
|
"SignalProcessingBaxandall3BandEQ",
|
||||||
"SignalProcessingBaxandallEQ",
|
"SignalProcessingBaxandallEQ",
|
||||||
|
"SignalProcessingCompressor",
|
||||||
"SignalProcessingConvolutionReverb",
|
"SignalProcessingConvolutionReverb",
|
||||||
"SignalProcessingFilter",
|
"SignalProcessingFilter",
|
||||||
"SignalProcessingHarmonicsEnhancer",
|
"SignalProcessingHarmonicsEnhancer",
|
||||||
|
"SignalProcessingLimiter",
|
||||||
"SignalProcessingLoadAudio",
|
"SignalProcessingLoadAudio",
|
||||||
"SignalProcessingLoudness",
|
"SignalProcessingLoudness",
|
||||||
"SignalProcessingMixdown",
|
"SignalProcessingMixdown",
|
||||||
@@ -1766,6 +1822,7 @@
|
|||||||
"SignalProcessingPadSynthChoir",
|
"SignalProcessingPadSynthChoir",
|
||||||
"SignalProcessingPaulStretch",
|
"SignalProcessingPaulStretch",
|
||||||
"SignalProcessingPitchShifter",
|
"SignalProcessingPitchShifter",
|
||||||
|
"SignalProcessingSaturation",
|
||||||
"SignalProcessingSpectrogram",
|
"SignalProcessingSpectrogram",
|
||||||
"SignalProcessingStereoWidening",
|
"SignalProcessingStereoWidening",
|
||||||
"SignalProcessingWaveform"
|
"SignalProcessingWaveform"
|
||||||
@@ -1859,6 +1916,7 @@
|
|||||||
"CLIPTextEncodeControlnet",
|
"CLIPTextEncodeControlnet",
|
||||||
"CLIPTextEncodeFlux",
|
"CLIPTextEncodeFlux",
|
||||||
"CLIPTextEncodeHunyuanDiT",
|
"CLIPTextEncodeHunyuanDiT",
|
||||||
|
"CLIPTextEncodePixArtAlpha",
|
||||||
"CLIPTextEncodeSD3",
|
"CLIPTextEncodeSD3",
|
||||||
"CLIPTextEncodeSDXL",
|
"CLIPTextEncodeSDXL",
|
||||||
"CLIPTextEncodeSDXLRefiner",
|
"CLIPTextEncodeSDXLRefiner",
|
||||||
@@ -1876,6 +1934,7 @@
|
|||||||
"ConditioningSetAreaStrength",
|
"ConditioningSetAreaStrength",
|
||||||
"ConditioningSetMask",
|
"ConditioningSetMask",
|
||||||
"ConditioningSetTimestepRange",
|
"ConditioningSetTimestepRange",
|
||||||
|
"ConditioningStableAudio",
|
||||||
"ConditioningZeroOut",
|
"ConditioningZeroOut",
|
||||||
"ControlNetApply",
|
"ControlNetApply",
|
||||||
"ControlNetApplyAdvanced",
|
"ControlNetApplyAdvanced",
|
||||||
@@ -2181,6 +2240,8 @@
|
|||||||
"BlendStyleGANLatents",
|
"BlendStyleGANLatents",
|
||||||
"GenerateStyleGANLatent",
|
"GenerateStyleGANLatent",
|
||||||
"LoadStyleGAN",
|
"LoadStyleGAN",
|
||||||
|
"LoadStyleGANLatentImg",
|
||||||
|
"SaveStyleGANLatentImg",
|
||||||
"StyleGANInversion",
|
"StyleGANInversion",
|
||||||
"StyleGANLatentFromBatch",
|
"StyleGANLatentFromBatch",
|
||||||
"StyleGANSampler"
|
"StyleGANSampler"
|
||||||
@@ -2189,6 +2250,15 @@
|
|||||||
"title_aux": "comfyui-stylegan"
|
"title_aux": "comfyui-stylegan"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/dihan/comfyui-random-kps": [
|
||||||
|
[
|
||||||
|
"InstantIDFace",
|
||||||
|
"RandomFaceKeypoints"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI Random Keypoints for InstantID [WIP]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/doucx/ComfyUI_WcpD_Utility_Kit": [
|
"https://github.com/doucx/ComfyUI_WcpD_Utility_Kit": [
|
||||||
[
|
[
|
||||||
"BlackImage",
|
"BlackImage",
|
||||||
@@ -2331,7 +2401,9 @@
|
|||||||
[
|
[
|
||||||
"Genera.BatchPreviewer",
|
"Genera.BatchPreviewer",
|
||||||
"Genera.BatchTester",
|
"Genera.BatchTester",
|
||||||
"Genera.GCPStorageNode"
|
"Genera.GCPStorageNode",
|
||||||
|
"Genera.MaskDrawer",
|
||||||
|
"Genera.Utils"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
"title_aux": "ComfyUI-GeneraNodes"
|
"title_aux": "ComfyUI-GeneraNodes"
|
||||||
@@ -2504,7 +2576,9 @@
|
|||||||
"ACE_TextPreview",
|
"ACE_TextPreview",
|
||||||
"ACE_TextSelector",
|
"ACE_TextSelector",
|
||||||
"ACE_TextToResolution",
|
"ACE_TextToResolution",
|
||||||
"ACE_TextTranslate"
|
"ACE_TextTranslate",
|
||||||
|
"ACE_VideoLoad",
|
||||||
|
"ACE_VideoPreview"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
"title_aux": "ComfyUI AceNodes [UNSAFE]"
|
"title_aux": "ComfyUI AceNodes [UNSAFE]"
|
||||||
@@ -2514,7 +2588,8 @@
|
|||||||
[
|
[
|
||||||
"WWAA-BuildString",
|
"WWAA-BuildString",
|
||||||
"WWAA-LineCount",
|
"WWAA-LineCount",
|
||||||
"WWAA_DitherNode"
|
"WWAA_DitherNode",
|
||||||
|
"WWAA_ImageLoader"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
"title_aux": "WWAA-CustomNodes"
|
"title_aux": "WWAA-CustomNodes"
|
||||||
@@ -2676,6 +2751,23 @@
|
|||||||
"title_aux": "ComfyUI-LuminaNext [WIP]"
|
"title_aux": "ComfyUI-LuminaNext [WIP]"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/jammyfu/ComfyUI_PaintingCoderUtils": [
|
||||||
|
[
|
||||||
|
"ClickPopup",
|
||||||
|
"ColorPicker",
|
||||||
|
"DynamicImageCombiner",
|
||||||
|
"ImageResolutionAdjuster",
|
||||||
|
"MaskPreview",
|
||||||
|
"MultilineTextInput",
|
||||||
|
"RemoveEmptyLinesAndLeadingSpaces",
|
||||||
|
"RemoveEmptyLinesAndLeadingSpacesAdvance",
|
||||||
|
"ShowTextPlus",
|
||||||
|
"TextCombiner"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI PaintingCoderUtils Nodes [WIP]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/jgbrblmd/ComfyUI-ComfyFluxSize": [
|
"https://github.com/jgbrblmd/ComfyUI-ComfyFluxSize": [
|
||||||
[
|
[
|
||||||
"ComfyFluxSize"
|
"ComfyFluxSize"
|
||||||
@@ -2790,6 +2882,9 @@
|
|||||||
"https://github.com/jonnydolake/ComfyUI-AIR-Nodes": [
|
"https://github.com/jonnydolake/ComfyUI-AIR-Nodes": [
|
||||||
[
|
[
|
||||||
"ForceMinimumBatchSize",
|
"ForceMinimumBatchSize",
|
||||||
|
"ImageCompositeChained",
|
||||||
|
"MatchImageCountToMaskCount",
|
||||||
|
"RandomCharacterPrompts",
|
||||||
"TargetLocationCrop",
|
"TargetLocationCrop",
|
||||||
"TargetLocationPaste",
|
"TargetLocationPaste",
|
||||||
"string_list_to_prompt_schedule"
|
"string_list_to_prompt_schedule"
|
||||||
@@ -2858,6 +2953,15 @@
|
|||||||
"title_aux": "ComfyUI_Usability (WIP)"
|
"title_aux": "ComfyUI_Usability (WIP)"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/karthikg-09/ComfyUI-3ncrypt": [
|
||||||
|
[
|
||||||
|
"Enhanced Save Image",
|
||||||
|
"Markdown Editor"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI-KG09 [WIP]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/kijai/ComfyUI-CV-VAE": [
|
"https://github.com/kijai/ComfyUI-CV-VAE": [
|
||||||
[
|
[
|
||||||
"CV_VAE_Decode",
|
"CV_VAE_Decode",
|
||||||
@@ -2928,10 +3032,12 @@
|
|||||||
"DownloadAndLoadHyVideoTextEncoder",
|
"DownloadAndLoadHyVideoTextEncoder",
|
||||||
"HyVideoBlockSwap",
|
"HyVideoBlockSwap",
|
||||||
"HyVideoCFG",
|
"HyVideoCFG",
|
||||||
|
"HyVideoContextOptions",
|
||||||
"HyVideoCustomPromptTemplate",
|
"HyVideoCustomPromptTemplate",
|
||||||
"HyVideoDecode",
|
"HyVideoDecode",
|
||||||
"HyVideoEmptyTextEmbeds",
|
"HyVideoEmptyTextEmbeds",
|
||||||
"HyVideoEncode",
|
"HyVideoEncode",
|
||||||
|
"HyVideoEnhanceAVideo",
|
||||||
"HyVideoInverseSampler",
|
"HyVideoInverseSampler",
|
||||||
"HyVideoLatentPreview",
|
"HyVideoLatentPreview",
|
||||||
"HyVideoLoraBlockEdit",
|
"HyVideoLoraBlockEdit",
|
||||||
@@ -3011,6 +3117,33 @@
|
|||||||
"title_aux": "KayTool"
|
"title_aux": "KayTool"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/krich-cto/ComfyUI-Flow-Control": [
|
||||||
|
[
|
||||||
|
"CLIPLoaderGGUF",
|
||||||
|
"DualCLIPLoaderGGUF",
|
||||||
|
"FlowCheckpointPresetLoader",
|
||||||
|
"FlowClipCondition",
|
||||||
|
"FlowClipTextEncode",
|
||||||
|
"FlowConditioningAutoSwitch",
|
||||||
|
"FlowFluxPresetLoader",
|
||||||
|
"FlowGate",
|
||||||
|
"FlowImageAutoBatch",
|
||||||
|
"FlowImageCondition",
|
||||||
|
"FlowKSampler",
|
||||||
|
"FlowLatentAutoBatch",
|
||||||
|
"FlowLatentCondition",
|
||||||
|
"FlowLoraLoader",
|
||||||
|
"FlowLoraLoaderModelOnly",
|
||||||
|
"FlowModelManager",
|
||||||
|
"FlowSaveImage",
|
||||||
|
"TripleCLIPLoaderGGUF",
|
||||||
|
"UnetLoaderGGUF",
|
||||||
|
"UnetLoaderGGUFAdvanced"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI Flow Control [UNSTABLE]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/kuschanow/ComfyUI-SD-Slicer": [
|
"https://github.com/kuschanow/ComfyUI-SD-Slicer": [
|
||||||
[
|
[
|
||||||
"SdSlicer"
|
"SdSlicer"
|
||||||
@@ -3176,7 +3309,18 @@
|
|||||||
],
|
],
|
||||||
"https://github.com/logtd/ComfyUI-HunyuanLoom": [
|
"https://github.com/logtd/ComfyUI-HunyuanLoom": [
|
||||||
[
|
[
|
||||||
"HyVideoFlowEditSampler"
|
"ConfigureModifiedHY",
|
||||||
|
"HYApplyRegionalConds",
|
||||||
|
"HYAttnOverride",
|
||||||
|
"HYCreateRegionalCond",
|
||||||
|
"HYFetaEnhance",
|
||||||
|
"HYFlowEditGuider",
|
||||||
|
"HYFlowEditSampler",
|
||||||
|
"HYForwardODESampler",
|
||||||
|
"HYInverseModelSamplingPred",
|
||||||
|
"HYReverseModelSamplingPred",
|
||||||
|
"HYReverseODESampler",
|
||||||
|
"HyVideoFlowEditSamplerWrapper"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
"title_aux": "ComfyUI-HunyuanLoom [WIP]"
|
"title_aux": "ComfyUI-HunyuanLoom [WIP]"
|
||||||
@@ -3325,6 +3469,14 @@
|
|||||||
"title_aux": "ComfyUI mashb1t nodes"
|
"title_aux": "ComfyUI mashb1t nodes"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/mehbebe/ComfyLoraGallery": [
|
||||||
|
[
|
||||||
|
"LoraGallery"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyLoraGallery [WIP]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/melMass/ComfyUI-Lygia": [
|
"https://github.com/melMass/ComfyUI-Lygia": [
|
||||||
[
|
[
|
||||||
"LygiaProgram",
|
"LygiaProgram",
|
||||||
@@ -3452,19 +3604,6 @@
|
|||||||
"title_aux": "my-comfy-node"
|
"title_aux": "my-comfy-node"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"https://github.com/neuratech-ai/ComfyUI-MultiGPU": [
|
|
||||||
[
|
|
||||||
"CLIPLoaderMultiGPU",
|
|
||||||
"CheckpointLoaderMultiGPU",
|
|
||||||
"ControlNetLoaderMultiGPU",
|
|
||||||
"DualCLIPLoaderMultiGPU",
|
|
||||||
"UNETLoaderMultiGPU",
|
|
||||||
"VAELoaderMultiGPU"
|
|
||||||
],
|
|
||||||
{
|
|
||||||
"title_aux": "ComfyUI-MultiGPU"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"https://github.com/neverbiasu/ComfyUI-ControlNeXt": [
|
"https://github.com/neverbiasu/ComfyUI-ControlNeXt": [
|
||||||
[
|
[
|
||||||
"ControlNextPipelineConfig",
|
"ControlNextPipelineConfig",
|
||||||
@@ -3474,6 +3613,16 @@
|
|||||||
"title_aux": "ComfyUI-ControlNeXt [WIP]"
|
"title_aux": "ComfyUI-ControlNeXt [WIP]"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/neverbiasu/ComfyUI-StereoCrafter": [
|
||||||
|
[
|
||||||
|
"DepthSplattingModelLoader",
|
||||||
|
"DepthSplattingNode",
|
||||||
|
"InpaintingInferenceNode"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI-StereoCrafter [WIP]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/nidefawl/ComfyUI-nidefawl": [
|
"https://github.com/nidefawl/ComfyUI-nidefawl": [
|
||||||
[
|
[
|
||||||
"BlendImagesWithBoundedMasks",
|
"BlendImagesWithBoundedMasks",
|
||||||
@@ -3711,6 +3860,22 @@
|
|||||||
"title_aux": "ComfyUI RukaLib [WIP]"
|
"title_aux": "ComfyUI RukaLib [WIP]"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/ryanontheinside/ComfyUI_YoloNasObjectDetection_Tensorrt": [
|
||||||
|
[
|
||||||
|
"YoloNasDetectionTensorrt"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI_YoloNasObjectDetection_Tensorrt [WIP]"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"https://github.com/scottmudge/ComfyUI_BiscuitNodes": [
|
||||||
|
[
|
||||||
|
"LoadImagePrompted"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI_BiscuitNodes"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/sdfxai/SDFXBridgeForComfyUI": [
|
"https://github.com/sdfxai/SDFXBridgeForComfyUI": [
|
||||||
[
|
[
|
||||||
"SDFXClipTextEncode"
|
"SDFXClipTextEncode"
|
||||||
@@ -3875,6 +4040,23 @@
|
|||||||
"title_aux": "comfyui-lingshang"
|
"title_aux": "comfyui-lingshang"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/steelan9199/ComfyUI-Teeth": [
|
||||||
|
[
|
||||||
|
"teeth FindContours",
|
||||||
|
"teeth Gemini2",
|
||||||
|
"teeth GetFirstSeg",
|
||||||
|
"teeth GetValueByIndexFromList",
|
||||||
|
"teeth ImageGridLines",
|
||||||
|
"teeth LoadTextFile",
|
||||||
|
"teeth RunPythonCode",
|
||||||
|
"teeth SaveTextFile",
|
||||||
|
"teeth SplitGridImage",
|
||||||
|
"teeth TextSplitByDelimiter"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI-Teeth [UNSAFE]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/stutya/ComfyUI-Terminal": [
|
"https://github.com/stutya/ComfyUI-Terminal": [
|
||||||
[
|
[
|
||||||
"Terminal"
|
"Terminal"
|
||||||
@@ -4043,16 +4225,36 @@
|
|||||||
"Calculate Image Contrast",
|
"Calculate Image Contrast",
|
||||||
"Calculate Image Saturation",
|
"Calculate Image Saturation",
|
||||||
"Color Similarity Checker",
|
"Color Similarity Checker",
|
||||||
|
"Crop Mask Util",
|
||||||
"Displace Filter",
|
"Displace Filter",
|
||||||
"Load Image (By Url)"
|
"Load Image (By Url)",
|
||||||
|
"Mask Refine (Aliyun)"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
"title_aux": "ComfyUI-Image-Utils"
|
"title_aux": "ComfyUI-Image-Utils"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/warshanks/Shank-Tools": [
|
||||||
|
[
|
||||||
|
"TileCalculator"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "Shank-Tools"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"https://github.com/watarika/ComfyUI-Text-Utility": [
|
||||||
|
[
|
||||||
|
"LoadTextFile",
|
||||||
|
"SaveTextFile"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI-Text-Utility [UNSAFE]"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/watarika/ComfyUI-exit": [
|
"https://github.com/watarika/ComfyUI-exit": [
|
||||||
[
|
[
|
||||||
"ExitComfyUI"
|
"ExitComfyUI",
|
||||||
|
"FetchApi"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
"title_aux": "ComfyUI-exit [UNSAFE]"
|
"title_aux": "ComfyUI-exit [UNSAFE]"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -11,6 +11,46 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
"author": "daqingliu",
|
||||||
|
"title": "ComfyUI-SaveImageOSS [REMOVED]",
|
||||||
|
"reference": "https://github.com/daqingliu/ComfyUI-SaveImageOSS",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/daqingliu/ComfyUI-SaveImageOSS"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Save images directly to URL, e.g., OSS. Just input the url in the text box!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "shinich39",
|
||||||
|
"title": "comfyui-textarea-keybindings [REMOVED]",
|
||||||
|
"reference": "https://github.com/shinich39/comfyui-textarea-keybindings",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/shinich39/comfyui-textarea-keybindings"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Add keybindings to textarea."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "shinich39",
|
||||||
|
"title": "comfyui-load-image-with-cmd [REMOVED]",
|
||||||
|
"reference": "https://github.com/shinich39/comfyui-load-image-with-cmd",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/shinich39/comfyui-load-image-with-cmd"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Load image and partially workflow with javascript."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "neuratech-ai",
|
||||||
|
"title": "ComfyUI-MultiGPU [NOT MAINTAINED]",
|
||||||
|
"reference": "https://github.com/neuratech-ai/ComfyUI-MultiGPU",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/neuratech-ai/ComfyUI-MultiGPU"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Experimental nodes for using multiple GPUs in a single ComfyUI workflow.\nThis extension adds new nodes for model loading that allow you to specify the GPU to use for each model. It monkey patches the memory management of ComfyUI in a hacky way and is neither a comprehensive solution nor a well-tested one. Use at your own risk.\nNote that this does not add parallelism. The workflow steps are still executed sequentially just on different GPUs. Any potential speedup comes from not having to constantly load and unload models from VRAM."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"author": "jefferyharrell",
|
"author": "jefferyharrell",
|
||||||
"title": "ComfyUI-JHXMP [REMOVED]",
|
"title": "ComfyUI-JHXMP [REMOVED]",
|
||||||
@@ -563,17 +603,6 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "Some simple string tools to modify text and strings in ComfyUI."
|
"description": "Some simple string tools to modify text and strings in ComfyUI."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"author": "zmwv823",
|
|
||||||
"title": "ComfyUI-AnyText [DEPRECATED]",
|
|
||||||
"id": "anytext",
|
|
||||||
"reference": "https://github.com/zmwv823/ComfyUI-AnyText",
|
|
||||||
"files": [
|
|
||||||
"https://github.com/zmwv823/ComfyUI-AnyText"
|
|
||||||
],
|
|
||||||
"install_type": "git-clone",
|
|
||||||
"description": "Unofficial Simple And Rough Implementation Of [a/AnyText](https://github.com/tyxsspa/AnyText)"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"author": "Millyarde",
|
"author": "Millyarde",
|
||||||
"title": "Pomfy - Photoshop and ComfyUI 2-way sync [REMOVED]",
|
"title": "Pomfy - Photoshop and ComfyUI 2-way sync [REMOVED]",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,177 @@
|
|||||||
{
|
{
|
||||||
"models": [
|
"models": [
|
||||||
|
{
|
||||||
|
"name": "Comfy-Org/llava_llama3_fp8_scaled.safetensors",
|
||||||
|
"type": "clip",
|
||||||
|
"base": "LLaVA-Llama-3",
|
||||||
|
"save_path": "text_encoders",
|
||||||
|
"description": "llava_llama3_fp8_scaled text encoder model. This is required for using Hunyuan Video.",
|
||||||
|
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
|
||||||
|
"filename": "llava_llama3_fp8_scaled.safetensors",
|
||||||
|
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/llava_llama3_fp8_scaled.safetensors",
|
||||||
|
"size": "9.09GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Comfy-Org/llava_llama3_fp16.safetensors",
|
||||||
|
"type": "clip",
|
||||||
|
"base": "LLaVA-Llama-3",
|
||||||
|
"save_path": "text_encoders",
|
||||||
|
"description": "llava_llama3_fp16 text encoder model. This is required for using Hunyuan Video.",
|
||||||
|
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
|
||||||
|
"filename": "llava_llama3_fp16.safetensors",
|
||||||
|
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/llava_llama3_fp16.safetensors",
|
||||||
|
"size": "16.1GB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "PixArt-Sigma-XL-2-512-MS.safetensors (diffusion)",
|
||||||
|
"type": "diffusion_model",
|
||||||
|
"base": "pixart-sigma",
|
||||||
|
"save_path": "diffusion_models/PixArt-Sigma",
|
||||||
|
"description": "PixArt-Sigma Diffusion model",
|
||||||
|
"reference": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-512-MS",
|
||||||
|
"filename": "PixArt-Sigma-XL-2-512-MS.safetensors",
|
||||||
|
"url": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-512-MS/resolve/main/transformer/diffusion_pytorch_model.safetensors",
|
||||||
|
"size": "2.44GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "PixArt-Sigma-XL-2-1024-MS.safetensors (diffusion)",
|
||||||
|
"type": "diffusion_model",
|
||||||
|
"base": "pixart-sigma",
|
||||||
|
"save_path": "diffusion_models/PixArt-Sigma",
|
||||||
|
"description": "PixArt-Sigma Diffusion model",
|
||||||
|
"reference": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS",
|
||||||
|
"filename": "PixArt-Sigma-XL-2-1024-MS.safetensors",
|
||||||
|
"url": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/resolve/main/transformer/diffusion_pytorch_model.safetensors",
|
||||||
|
"size": "2.44GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "PixArt-XL-2-1024-MS.safetensors (diffusion)",
|
||||||
|
"type": "diffusion_model",
|
||||||
|
"base": "pixart-alpha",
|
||||||
|
"save_path": "diffusion_models/PixArt-Alpha",
|
||||||
|
"description": "PixArt-Alpha Diffusion model",
|
||||||
|
"reference": "https://huggingface.co/PixArt-alpha/PixArt-XL-2-1024-MS",
|
||||||
|
"filename": "PixArt-XL-2-1024-MS.safetensors",
|
||||||
|
"url": "https://huggingface.co/PixArt-alpha/PixArt-XL-2-1024-MS/resolve/main/transformer/diffusion_pytorch_model.safetensors",
|
||||||
|
"size": "2.45GB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Comfy-Org/hunyuan_video_t2v_720p_bf16.safetensors",
|
||||||
|
"type": "diffusion_model",
|
||||||
|
"base": "Hunyuan Video",
|
||||||
|
"save_path": "diffusion_models/hunyuan_video",
|
||||||
|
"description": "Huyuan Video diffusion model. repackaged version.",
|
||||||
|
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
|
||||||
|
"filename": "hunyuan_video_t2v_720p_bf16.safetensors",
|
||||||
|
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/diffusion_models/hunyuan_video_t2v_720p_bf16.safetensors",
|
||||||
|
"size": "25.6GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Comfy-Org/hunyuan_video_vae_bf16.safetensors",
|
||||||
|
"type": "VAE",
|
||||||
|
"base": "Hunyuan Video",
|
||||||
|
"save_path": "VAE",
|
||||||
|
"description": "Huyuan Video VAE model. repackaged version.",
|
||||||
|
"reference": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged",
|
||||||
|
"filename": "hunyuan_video_vae_bf16.safetensors",
|
||||||
|
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/vae/hunyuan_video_vae_bf16.safetensors",
|
||||||
|
"size": "493MB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "LTX-Video 2B v0.9.1 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.1.safetensors",
|
||||||
|
"url": "https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltx-video-2b-v0.9.1.safetensors",
|
||||||
|
"size": "5.72GB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/flux-canny-controlnet-v3.safetensors",
|
||||||
|
"type": "controlnet",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/controlnets",
|
||||||
|
"description": "ControlNet checkpoints for FLUX.1-dev model by Black Forest Labs.",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-controlnet-collections",
|
||||||
|
"filename": "flux-canny-controlnet-v3.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-controlnet-collections/resolve/main/flux-canny-controlnet-v3.safetensors",
|
||||||
|
"size": "1.49GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/flux-depth-controlnet-v3.safetensors",
|
||||||
|
"type": "controlnet",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/controlnets",
|
||||||
|
"description": "ControlNet checkpoints for FLUX.1-dev model by Black Forest Labs.",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-controlnet-collections",
|
||||||
|
"filename": "flux-depth-controlnet-v3.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-controlnet-collections/resolve/main/flux-depth-controlnet-v3.safetensors",
|
||||||
|
"size": "1.49GB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/flux-hed-controlnet-v3.safetensors",
|
||||||
|
"type": "controlnet",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/controlnets",
|
||||||
|
"description": "ControlNet checkpoints for FLUX.1-dev model by Black Forest Labs.",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-controlnet-collections",
|
||||||
|
"filename": "flux-hed-controlnet-v3.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-controlnet-collections/resolve/main/flux-hed-controlnet-v3.safetensors",
|
||||||
|
"size": "1.49GB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/realism_lora.safetensors",
|
||||||
|
"type": "lora",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/loras",
|
||||||
|
"description": "A checkpoint with trained LoRAs for FLUX.1-dev model by Black Forest Labs",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-lora-collection",
|
||||||
|
"filename": "realism_lora.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-lora-collection/resolve/main/realism_lora.safetensors",
|
||||||
|
"size": "44.8MB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/art_lora.safetensors",
|
||||||
|
"type": "lora",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/loras",
|
||||||
|
"description": "A checkpoint with trained LoRAs for FLUX.1-dev model by Black Forest Labs",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-lora-collection",
|
||||||
|
"filename": "art_lora.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-lora-collection/resolve/main/scenery_lora.safetensors",
|
||||||
|
"size": "44.8MB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/mjv6_lora.safetensors",
|
||||||
|
"type": "lora",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/loras",
|
||||||
|
"description": "A checkpoint with trained LoRAs for FLUX.1-dev model by Black Forest Labs",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-lora-collection",
|
||||||
|
"filename": "mjv6_lora.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-lora-collection/resolve/main/mjv6_lora.safetensors",
|
||||||
|
"size": "44.8MB"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "XLabs-AI/flux-ip-adapter",
|
||||||
|
"type": "lora",
|
||||||
|
"base": "FLUX.1",
|
||||||
|
"save_path": "xlabs/ipadapters",
|
||||||
|
"description": "A checkpoint with trained LoRAs for FLUX.1-dev model by Black Forest Labs",
|
||||||
|
"reference": "https://huggingface.co/XLabs-AI/flux-ip-adapter",
|
||||||
|
"filename": "ip_adapter.safetensors",
|
||||||
|
"url": "https://huggingface.co/XLabs-AI/flux-ip-adapter/resolve/main/ip_adapter.safetensors",
|
||||||
|
"size": "982MB"
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "stabilityai/SD3.5-Large-Controlnet-Blur",
|
"name": "stabilityai/SD3.5-Large-Controlnet-Blur",
|
||||||
"type": "controlnet",
|
"type": "controlnet",
|
||||||
@@ -556,130 +728,6 @@
|
|||||||
"filename": "Hyper-SDXL-12steps-CFG-lora.safetensors",
|
"filename": "Hyper-SDXL-12steps-CFG-lora.safetensors",
|
||||||
"url": "https://huggingface.co/ByteDance/Hyper-SD/resolve/main/Hyper-SDXL-12steps-CFG-lora.safetensors",
|
"url": "https://huggingface.co/ByteDance/Hyper-SD/resolve/main/Hyper-SDXL-12steps-CFG-lora.safetensors",
|
||||||
"size": "787MB"
|
"size": "787MB"
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "Hyper-SD CFG LoRA (4steps) - SD3",
|
|
||||||
"type": "lora",
|
|
||||||
"base": "SD3",
|
|
||||||
"save_path": "loras/HyperSD/SD3",
|
|
||||||
"description": "Hyper-SD CFG LoRA (4steps) - SD3",
|
|
||||||
"reference": "https://huggingface.co/ByteDance/Hyper-SD",
|
|
||||||
"filename": "Hyper-SD3-4steps-CFG-lora.safetensors",
|
|
||||||
"url": "https://huggingface.co/ByteDance/Hyper-SD/resolve/main/Hyper-SD3-4steps-CFG-lora.safetensors",
|
|
||||||
"size": "472MB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Hyper-SD CFG LoRA (8steps) - SD3",
|
|
||||||
"type": "lora",
|
|
||||||
"base": "SD3",
|
|
||||||
"save_path": "loras/HyperSD/SD3",
|
|
||||||
"description": "Hyper-SD CFG LoRA (8steps) - SD3",
|
|
||||||
"reference": "https://huggingface.co/ByteDance/Hyper-SD",
|
|
||||||
"filename": "Hyper-SD3-8steps-CFG-lora.safetensors",
|
|
||||||
"url": "https://huggingface.co/ByteDance/Hyper-SD/resolve/main/Hyper-SD3-8steps-CFG-lora.safetensors",
|
|
||||||
"size": "472MB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Hyper-SD CFG LoRA (16steps) - SD3",
|
|
||||||
"type": "lora",
|
|
||||||
"base": "SD3",
|
|
||||||
"save_path": "loras/HyperSD/SD3",
|
|
||||||
"description": "Hyper-SD CFG LoRA (16steps) - SD3",
|
|
||||||
"reference": "https://huggingface.co/ByteDance/Hyper-SD",
|
|
||||||
"filename": "Hyper-SD3-16steps-CFG-lora.safetensors",
|
|
||||||
"url": "https://huggingface.co/ByteDance/Hyper-SD/resolve/main/Hyper-SD3-16steps-CFG-lora.safetensors",
|
|
||||||
"size": "472MB"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "InstantX/FLUX.1-dev Controlnet (Union)",
|
|
||||||
"type": "controlnet",
|
|
||||||
"base": "FLUX.1",
|
|
||||||
"save_path": "controlnet/FLUX.1/InstantX-FLUX1-Dev-Union",
|
|
||||||
"description": "FLUX.1 [Dev] Union Controlnet. Supports Canny, Depth, Pose, Tile, Blur, Gray Low Quality.",
|
|
||||||
"reference": "https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union",
|
|
||||||
"filename": "diffusion_pytorch_model.safetensors",
|
|
||||||
"url": "https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union/resolve/main/diffusion_pytorch_model.safetensors",
|
|
||||||
"size": "6.6GB"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "city96/flux1-dev-F16.gguf",
|
|
||||||
"type": "diffusion_model",
|
|
||||||
"base": "FLUX.1",
|
|
||||||
"save_path": "diffusion_model/FLUX1",
|
|
||||||
"description": "FLUX.1 [Dev] Diffusion model (f16/.gguf)",
|
|
||||||
"reference": "https://huggingface.co/city96/FLUX.1-dev-gguf",
|
|
||||||
"filename": "flux1-dev-F16.gguf",
|
|
||||||
"url": "https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-F16.gguf",
|
|
||||||
"size": "23.8GB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "city96/flux1-dev-Q2_K.gguf",
|
|
||||||
"type": "diffusion_model",
|
|
||||||
"base": "FLUX.1",
|
|
||||||
"save_path": "diffusion_models/FLUX1",
|
|
||||||
"description": "FLUX.1 [Dev] Diffusion model (Q2_K/.gguf)",
|
|
||||||
"reference": "https://huggingface.co/city96/FLUX.1-dev-gguf",
|
|
||||||
"filename": "flux1-dev-Q2_K.gguf",
|
|
||||||
"url": "https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q2_K.gguf",
|
|
||||||
"size": "4.03GB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "city96/flux1-dev-Q3_K_S.gguf",
|
|
||||||
"type": "diffusion_model",
|
|
||||||
"base": "FLUX.1",
|
|
||||||
"save_path": "diffusion_models/FLUX1",
|
|
||||||
"description": "FLUX.1 [Dev] Diffusion model (Q3_K_S/.gguf)",
|
|
||||||
"reference": "https://huggingface.co/city96/FLUX.1-dev-gguf",
|
|
||||||
"filename": "flux1-dev-Q3_K_S.gguf",
|
|
||||||
"url": "https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q3_K_S.gguf",
|
|
||||||
"size": "5.23GB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "city96/flux1-dev-Q4_0.gguf",
|
|
||||||
"type": "diffusion_model",
|
|
||||||
"base": "FLUX.1",
|
|
||||||
"save_path": "diffusion_models/FLUX1",
|
|
||||||
"description": "FLUX.1 [Dev] Diffusion model (Q4_0/.gguf)",
|
|
||||||
"reference": "https://huggingface.co/city96/FLUX.1-dev-gguf",
|
|
||||||
"filename": "flux1-dev-Q4_0.gguf",
|
|
||||||
"url": "https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_0.gguf",
|
|
||||||
"size": "6.79GB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "city96/flux1-dev-Q4_1.gguf",
|
|
||||||
"type": "diffusion_model",
|
|
||||||
"base": "FLUX.1",
|
|
||||||
"save_path": "diffusion_models/FLUX1",
|
|
||||||
"description": "FLUX.1 [Dev] Diffusion model (Q4_1/.gguf)",
|
|
||||||
"reference": "https://huggingface.co/city96/FLUX.1-dev-gguf",
|
|
||||||
"filename": "flux1-dev-Q4_1.gguf",
|
|
||||||
"url": "https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_1.gguf",
|
|
||||||
"size": "7.53GB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "city96/flux1-dev-Q4_K_S.gguf",
|
|
||||||
"type": "diffusion_model",
|
|
||||||
"base": "FLUX.1",
|
|
||||||
"save_path": "diffusion_models/FLUX1",
|
|
||||||
"description": "FLUX.1 [Dev] Diffusion model (Q4_K_S/.gguf)",
|
|
||||||
"reference": "https://huggingface.co/city96/FLUX.1-dev-gguf",
|
|
||||||
"filename": "flux1-dev-Q4_K_S.gguf",
|
|
||||||
"url": "https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_K_S.gguf",
|
|
||||||
"size": "6.81GB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "city96/flux1-dev-Q5_0.gguf",
|
|
||||||
"type": "diffusion_model",
|
|
||||||
"base": "FLUX.1",
|
|
||||||
"save_path": "diffusion_models/FLUX1",
|
|
||||||
"description": "FLUX.1 [Dev] Diffusion model (Q5_0/.gguf)",
|
|
||||||
"reference": "https://huggingface.co/city96/FLUX.1-dev-gguf",
|
|
||||||
"filename": "flux1-dev-Q5_0.gguf",
|
|
||||||
"url": "https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q5_0.gguf",
|
|
||||||
"size": "8.27GB"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -240,6 +240,26 @@
|
|||||||
],
|
],
|
||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "RAG Demo for LLM"
|
"description": "RAG Demo for LLM"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "FelixTeutsch",
|
||||||
|
"title": "BachelorThesis",
|
||||||
|
"reference": "https://github.com/FelixTeutsch/BachelorThesis",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/FelixTeutsch/BachelorThesis"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "This is a ComfyUi custom node, that build a new UI on top of the already existing AI, to enable the use of custom controllers"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": "jhj0517",
|
||||||
|
"title": "ComfyUI-CustomNodes-Template",
|
||||||
|
"reference": "https://github.com/jhj0517/ComfyUI-CustomNodes-Template",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/jhj0517/ComfyUI-CustomNodes-Template"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "This is the ComfyUI custom node template repository that anyone can use to create their own custom nodes."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import datetime
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
@@ -14,11 +15,8 @@ glob_path = os.path.join(os.path.dirname(__file__), "glob")
|
|||||||
sys.path.append(glob_path)
|
sys.path.append(glob_path)
|
||||||
|
|
||||||
import security_check
|
import security_check
|
||||||
import manager_util
|
from manager_util import PIPFixer, StrictVersion, get_installed_packages, clear_pip_cache
|
||||||
import cm_global
|
import cm_global
|
||||||
import manager_downloader
|
|
||||||
from datetime import datetime
|
|
||||||
import folder_paths
|
|
||||||
|
|
||||||
security_check.security_check()
|
security_check.security_check()
|
||||||
|
|
||||||
@@ -73,20 +71,17 @@ cm_global.register_api('cm.register_message_collapse', register_message_collapse
|
|||||||
cm_global.register_api('cm.is_import_failed_extension', is_import_failed_extension)
|
cm_global.register_api('cm.is_import_failed_extension', is_import_failed_extension)
|
||||||
|
|
||||||
|
|
||||||
comfyui_manager_path = os.path.abspath(os.path.dirname(__file__))
|
comfyui_manager_path = os.path.dirname(__file__)
|
||||||
|
custom_nodes_path = os.path.abspath(os.path.join(comfyui_manager_path, ".."))
|
||||||
custom_nodes_base_path = folder_paths.get_folder_paths('custom_nodes')[0]
|
startup_script_path = os.path.join(comfyui_manager_path, "startup-scripts")
|
||||||
manager_files_path = os.path.abspath(os.path.join(folder_paths.get_user_directory(), 'default', 'ComfyUI-Manager'))
|
restore_snapshot_path = os.path.join(startup_script_path, "restore-snapshot.json")
|
||||||
manager_pip_overrides_path = os.path.join(manager_files_path, "pip_overrides.json")
|
|
||||||
restore_snapshot_path = os.path.join(manager_files_path, "startup-scripts", "restore-snapshot.json")
|
|
||||||
|
|
||||||
git_script_path = os.path.join(comfyui_manager_path, "git_helper.py")
|
git_script_path = os.path.join(comfyui_manager_path, "git_helper.py")
|
||||||
cm_cli_path = os.path.join(comfyui_manager_path, "cm-cli.py")
|
pip_overrides_path = os.path.join(comfyui_manager_path, "pip_overrides.json")
|
||||||
|
|
||||||
|
|
||||||
cm_global.pip_overrides = {}
|
cm_global.pip_overrides = {}
|
||||||
if os.path.exists(manager_pip_overrides_path):
|
if os.path.exists(pip_overrides_path):
|
||||||
with open(manager_pip_overrides_path, 'r', encoding="UTF-8", errors="ignore") as json_file:
|
with open(pip_overrides_path, 'r', encoding="UTF-8", errors="ignore") as json_file:
|
||||||
cm_global.pip_overrides = json.load(json_file)
|
cm_global.pip_overrides = json.load(json_file)
|
||||||
cm_global.pip_overrides['numpy'] = 'numpy<2'
|
cm_global.pip_overrides['numpy'] = 'numpy<2'
|
||||||
cm_global.pip_overrides['ultralytics'] = 'ultralytics==8.3.40' # for security
|
cm_global.pip_overrides['ultralytics'] = 'ultralytics==8.3.40' # for security
|
||||||
@@ -149,18 +144,15 @@ try:
|
|||||||
postfix = ""
|
postfix = ""
|
||||||
|
|
||||||
# Logger setup
|
# Logger setup
|
||||||
log_path_base = None
|
|
||||||
if enable_file_logging:
|
if enable_file_logging:
|
||||||
log_path_base = os.path.join(folder_paths.user_directory, 'comfyui')
|
if os.path.exists(f"comfyui{postfix}.log"):
|
||||||
|
if os.path.exists(f"comfyui{postfix}.prev.log"):
|
||||||
|
if os.path.exists(f"comfyui{postfix}.prev2.log"):
|
||||||
|
os.remove(f"comfyui{postfix}.prev2.log")
|
||||||
|
os.rename(f"comfyui{postfix}.prev.log", f"comfyui{postfix}.prev2.log")
|
||||||
|
os.rename(f"comfyui{postfix}.log", f"comfyui{postfix}.prev.log")
|
||||||
|
|
||||||
if os.path.exists(f"{log_path_base}{postfix}.log"):
|
log_file = open(f"comfyui{postfix}.log", "w", encoding="utf-8", errors="ignore")
|
||||||
if os.path.exists(f"{log_path_base}{postfix}.prev.log"):
|
|
||||||
if os.path.exists(f"{log_path_base}{postfix}.prev2.log"):
|
|
||||||
os.remove(f"{log_path_base}{postfix}.prev2.log")
|
|
||||||
os.rename(f"{log_path_base}{postfix}.prev.log", f"{log_path_base}{postfix}.prev2.log")
|
|
||||||
os.rename(f"{log_path_base}{postfix}.log", f"{log_path_base}{postfix}.prev.log")
|
|
||||||
|
|
||||||
log_file = open(f"{log_path_base}{postfix}.log", "w", encoding="utf-8", errors="ignore")
|
|
||||||
|
|
||||||
log_lock = threading.Lock()
|
log_lock = threading.Lock()
|
||||||
|
|
||||||
@@ -181,7 +173,7 @@ try:
|
|||||||
write_stderr = wrapper_stderr
|
write_stderr = wrapper_stderr
|
||||||
|
|
||||||
pat_tqdm = r'\d+%.*\[(.*?)\]'
|
pat_tqdm = r'\d+%.*\[(.*?)\]'
|
||||||
pat_import_fail = r'seconds \(IMPORT FAILED\):(.*)$'
|
pat_import_fail = r'seconds \(IMPORT FAILED\):.*[/\\]custom_nodes[/\\](.*)$'
|
||||||
|
|
||||||
is_start_mode = True
|
is_start_mode = True
|
||||||
|
|
||||||
@@ -214,7 +206,7 @@ try:
|
|||||||
if is_start_mode:
|
if is_start_mode:
|
||||||
match = re.search(pat_import_fail, message)
|
match = re.search(pat_import_fail, message)
|
||||||
if match:
|
if match:
|
||||||
import_failed_extensions.add(match.group(1).strip())
|
import_failed_extensions.add(match.group(1))
|
||||||
|
|
||||||
if 'Starting server' in message:
|
if 'Starting server' in message:
|
||||||
is_start_mode = False
|
is_start_mode = False
|
||||||
@@ -236,7 +228,7 @@ try:
|
|||||||
|
|
||||||
def sync_write(self, message, file_only=False):
|
def sync_write(self, message, file_only=False):
|
||||||
with log_lock:
|
with log_lock:
|
||||||
timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]
|
timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]
|
||||||
if self.last_char != '\n':
|
if self.last_char != '\n':
|
||||||
log_file.write(message)
|
log_file.write(message)
|
||||||
else:
|
else:
|
||||||
@@ -300,7 +292,7 @@ try:
|
|||||||
if is_start_mode:
|
if is_start_mode:
|
||||||
match = re.search(pat_import_fail, message)
|
match = re.search(pat_import_fail, message)
|
||||||
if match:
|
if match:
|
||||||
import_failed_extensions.add(match.group(1).strip())
|
import_failed_extensions.add(match.group(1))
|
||||||
|
|
||||||
if 'Starting server' in message:
|
if 'Starting server' in message:
|
||||||
is_start_mode = False
|
is_start_mode = False
|
||||||
@@ -339,14 +331,14 @@ except:
|
|||||||
print("## [ERROR] ComfyUI-Manager: GitPython package seems to be installed, but failed to load somehow. Make sure you have a working git client installed")
|
print("## [ERROR] ComfyUI-Manager: GitPython package seems to be installed, but failed to load somehow. Make sure you have a working git client installed")
|
||||||
|
|
||||||
|
|
||||||
print("** ComfyUI startup time:", datetime.now())
|
print("** ComfyUI startup time:", datetime.datetime.now())
|
||||||
print("** Platform:", platform.system())
|
print("** Platform:", platform.system())
|
||||||
print("** Python version:", sys.version)
|
print("** Python version:", sys.version)
|
||||||
print("** Python executable:", sys.executable)
|
print("** Python executable:", sys.executable)
|
||||||
print("** ComfyUI Path:", comfy_path)
|
print("** ComfyUI Path:", comfy_path)
|
||||||
|
|
||||||
if log_path_base is not None:
|
if enable_file_logging:
|
||||||
print("** Log path:", os.path.abspath(f'{log_path_base}.log'))
|
print("** Log path:", os.path.abspath('comfyui.log'))
|
||||||
else:
|
else:
|
||||||
print("** Log path: file logging is disabled")
|
print("** Log path: file logging is disabled")
|
||||||
|
|
||||||
@@ -392,8 +384,8 @@ check_bypass_ssl()
|
|||||||
|
|
||||||
# Perform install
|
# Perform install
|
||||||
processed_install = set()
|
processed_install = set()
|
||||||
script_list_path = os.path.join(folder_paths.user_directory, "default", "ComfyUI-Manager", "startup-scripts", "install-scripts.txt")
|
script_list_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "startup-scripts", "install-scripts.txt")
|
||||||
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages())
|
pip_fixer = PIPFixer(get_installed_packages())
|
||||||
|
|
||||||
|
|
||||||
def is_installed(name):
|
def is_installed(name):
|
||||||
@@ -412,18 +404,18 @@ def is_installed(name):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
if name in cm_global.pip_downgrade_blacklist:
|
if name in cm_global.pip_downgrade_blacklist:
|
||||||
pips = manager_util.get_installed_packages()
|
pips = get_installed_packages()
|
||||||
|
|
||||||
if match is None:
|
if match is None:
|
||||||
if name in pips:
|
if name in pips:
|
||||||
return True
|
return True
|
||||||
elif match.group(2) in ['<=', '==', '<']:
|
elif match.group(2) in ['<=', '==', '<']:
|
||||||
if name in pips:
|
if name in pips:
|
||||||
if manager_util.StrictVersion(pips[name]) >= manager_util.StrictVersion(match.group(3)):
|
if StrictVersion(pips[name]) >= StrictVersion(match.group(3)):
|
||||||
print(f"[ComfyUI-Manager] skip black listed pip installation: '{name}'")
|
print(f"[ComfyUI-Manager] skip black listed pip installation: '{name}'")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
pkg = manager_util.get_installed_packages().get(name.lower())
|
pkg = get_installed_packages().get(name.lower())
|
||||||
if pkg is None:
|
if pkg is None:
|
||||||
return False # update if not installed
|
return False # update if not installed
|
||||||
|
|
||||||
@@ -431,9 +423,9 @@ def is_installed(name):
|
|||||||
return True # don't update if version is not specified
|
return True # don't update if version is not specified
|
||||||
|
|
||||||
if match.group(2) in ['>', '>=']:
|
if match.group(2) in ['>', '>=']:
|
||||||
if manager_util.StrictVersion(pkg) < manager_util.StrictVersion(match.group(3)):
|
if StrictVersion(pkg) < StrictVersion(match.group(3)):
|
||||||
return False
|
return False
|
||||||
elif manager_util.StrictVersion(pkg) > manager_util.StrictVersion(match.group(3)):
|
elif StrictVersion(pkg) > StrictVersion(match.group(3)):
|
||||||
print(f"[SKIP] Downgrading pip package isn't allowed: {name.lower()} (cur={pkg})")
|
print(f"[SKIP] Downgrading pip package isn't allowed: {name.lower()} (cur={pkg})")
|
||||||
|
|
||||||
return True # prevent downgrade
|
return True # prevent downgrade
|
||||||
@@ -465,11 +457,53 @@ if os.path.exists(restore_snapshot_path):
|
|||||||
print(prefix, msg, end="")
|
print(prefix, msg, end="")
|
||||||
|
|
||||||
print("[ComfyUI-Manager] Restore snapshot.")
|
print("[ComfyUI-Manager] Restore snapshot.")
|
||||||
|
cmd_str = [sys.executable, git_script_path, '--apply-snapshot', restore_snapshot_path]
|
||||||
|
|
||||||
new_env = os.environ.copy()
|
new_env = os.environ.copy()
|
||||||
new_env["COMFYUI_PATH"] = comfy_path
|
new_env["COMFYUI_PATH"] = comfy_path
|
||||||
|
exit_code = process_wrap(cmd_str, custom_nodes_path, handler=msg_capture, env=new_env)
|
||||||
|
|
||||||
cmd_str = [sys.executable, cm_cli_path, 'restore-snapshot', restore_snapshot_path]
|
repository_name = ''
|
||||||
exit_code = process_wrap(cmd_str, custom_nodes_base_path, handler=msg_capture, env=new_env)
|
for url in cloned_repos:
|
||||||
|
try:
|
||||||
|
repository_name = url.split("/")[-1].strip()
|
||||||
|
repo_path = os.path.join(custom_nodes_path, repository_name)
|
||||||
|
repo_path = os.path.abspath(repo_path)
|
||||||
|
|
||||||
|
requirements_path = os.path.join(repo_path, 'requirements.txt')
|
||||||
|
install_script_path = os.path.join(repo_path, 'install.py')
|
||||||
|
|
||||||
|
this_exit_code = 0
|
||||||
|
|
||||||
|
if os.path.exists(requirements_path):
|
||||||
|
with open(requirements_path, 'r', encoding="UTF-8", errors="ignore") as file:
|
||||||
|
for line in file:
|
||||||
|
package_name = remap_pip_package(line.strip())
|
||||||
|
if package_name and not is_installed(package_name):
|
||||||
|
if not package_name.startswith('#'):
|
||||||
|
if '--index-url' in package_name:
|
||||||
|
s = package_name.split('--index-url')
|
||||||
|
install_cmd = [sys.executable, "-m", "pip", "install", s[0].strip(), '--index-url', s[1].strip()]
|
||||||
|
else:
|
||||||
|
install_cmd = [sys.executable, "-m", "pip", "install", package_name]
|
||||||
|
|
||||||
|
this_exit_code += process_wrap(install_cmd, repo_path)
|
||||||
|
|
||||||
|
if os.path.exists(install_script_path) and f'{repo_path}/install.py' not in processed_install:
|
||||||
|
processed_install.add(f'{repo_path}/install.py')
|
||||||
|
install_cmd = [sys.executable, install_script_path]
|
||||||
|
print(f">>> {install_cmd} / {repo_path}")
|
||||||
|
|
||||||
|
new_env = os.environ.copy()
|
||||||
|
new_env["COMFYUI_PATH"] = comfy_path
|
||||||
|
this_exit_code += process_wrap(install_cmd, repo_path, env=new_env)
|
||||||
|
|
||||||
|
if this_exit_code != 0:
|
||||||
|
print(f"[ComfyUI-Manager] Restoring '{repository_name}' is failed.")
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
print(f"[ComfyUI-Manager] Restoring '{repository_name}' is failed.")
|
||||||
|
|
||||||
if exit_code != 0:
|
if exit_code != 0:
|
||||||
print("[ComfyUI-Manager] Restore snapshot failed.")
|
print("[ComfyUI-Manager] Restore snapshot failed.")
|
||||||
@@ -513,65 +547,6 @@ def execute_lazy_install_script(repo_path, executable):
|
|||||||
process_wrap(install_cmd, repo_path, env=new_env)
|
process_wrap(install_cmd, repo_path, env=new_env)
|
||||||
|
|
||||||
|
|
||||||
def execute_lazy_cnr_switch(target, zip_url, from_path, to_path, no_deps, custom_nodes_path):
|
|
||||||
import uuid
|
|
||||||
import shutil
|
|
||||||
|
|
||||||
# 1. download
|
|
||||||
archive_name = f"CNR_temp_{str(uuid.uuid4())}.zip" # should be unpredictable name - security precaution
|
|
||||||
download_path = os.path.join(custom_nodes_path, archive_name)
|
|
||||||
manager_downloader.download_url(zip_url, custom_nodes_path, archive_name)
|
|
||||||
|
|
||||||
# 2. extract files into <node_id>@<cur_ver>
|
|
||||||
extracted = manager_util.extract_package_as_zip(download_path, from_path)
|
|
||||||
os.remove(download_path)
|
|
||||||
|
|
||||||
if extracted is None:
|
|
||||||
if len(os.listdir(from_path)) == 0:
|
|
||||||
shutil.rmtree(from_path)
|
|
||||||
|
|
||||||
print(f'Empty archive file: {target}')
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
# 3. calculate garbage files (.tracking - extracted)
|
|
||||||
tracking_info_file = os.path.join(from_path, '.tracking')
|
|
||||||
prev_files = set()
|
|
||||||
with open(tracking_info_file, 'r') as f:
|
|
||||||
for line in f:
|
|
||||||
prev_files.add(line.strip())
|
|
||||||
garbage = prev_files.difference(extracted)
|
|
||||||
garbage = [os.path.join(custom_nodes_path, x) for x in garbage]
|
|
||||||
|
|
||||||
# 4-1. remove garbage files
|
|
||||||
for x in garbage:
|
|
||||||
if os.path.isfile(x):
|
|
||||||
os.remove(x)
|
|
||||||
|
|
||||||
# 4-2. remove garbage dir if empty
|
|
||||||
for x in garbage:
|
|
||||||
if os.path.isdir(x):
|
|
||||||
if not os.listdir(x):
|
|
||||||
os.rmdir(x)
|
|
||||||
|
|
||||||
# 5. rename dir name <node_id>@<prev_ver> ==> <node_id>@<cur_ver>
|
|
||||||
print(f"'{from_path}' is moved to '{to_path}'")
|
|
||||||
shutil.move(from_path, to_path)
|
|
||||||
|
|
||||||
# 6. create .tracking file
|
|
||||||
tracking_info_file = os.path.join(to_path, '.tracking')
|
|
||||||
with open(tracking_info_file, "w", encoding='utf-8') as file:
|
|
||||||
file.write('\n'.join(list(extracted)))
|
|
||||||
|
|
||||||
|
|
||||||
def execute_migration(moves):
|
|
||||||
import shutil
|
|
||||||
for x in moves:
|
|
||||||
if os.path.exists(x[0]) and not os.path.exists(x[1]):
|
|
||||||
shutil.move(x[0], x[1])
|
|
||||||
print(f"[ComfyUI-Manager] MIGRATION: '{x[0]}' -> '{x[1]}'")
|
|
||||||
|
|
||||||
|
|
||||||
# Check if script_list_path exists
|
# Check if script_list_path exists
|
||||||
if os.path.exists(script_list_path):
|
if os.path.exists(script_list_path):
|
||||||
print("\n#######################################################################")
|
print("\n#######################################################################")
|
||||||
@@ -593,13 +568,6 @@ if os.path.exists(script_list_path):
|
|||||||
if script[1] == "#LAZY-INSTALL-SCRIPT":
|
if script[1] == "#LAZY-INSTALL-SCRIPT":
|
||||||
execute_lazy_install_script(script[0], script[2])
|
execute_lazy_install_script(script[0], script[2])
|
||||||
|
|
||||||
elif script[1] == "#LAZY-CNR-SWITCH-SCRIPT":
|
|
||||||
execute_lazy_cnr_switch(script[0], script[2], script[3], script[4], script[5], script[6])
|
|
||||||
execute_lazy_install_script(script[3], script[7])
|
|
||||||
|
|
||||||
elif script[1] == "#LAZY-MIGRATION":
|
|
||||||
execute_migration(script[2])
|
|
||||||
|
|
||||||
elif os.path.exists(script[0]):
|
elif os.path.exists(script[0]):
|
||||||
if script[1] == "#FORCE":
|
if script[1] == "#FORCE":
|
||||||
del script[1]
|
del script[1]
|
||||||
@@ -633,7 +601,7 @@ pip_fixer.fix_broken()
|
|||||||
|
|
||||||
del processed_install
|
del processed_install
|
||||||
del pip_fixer
|
del pip_fixer
|
||||||
manager_util.clear_pip_cache()
|
clear_pip_cache()
|
||||||
|
|
||||||
|
|
||||||
def check_windows_event_loop_policy():
|
def check_windows_event_loop_policy():
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-manager"
|
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."
|
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
|
||||||
version = "3.1"
|
version = "2.56.2"
|
||||||
license = { file = "LICENSE.txt" }
|
license = { file = "LICENSE.txt" }
|
||||||
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user