Browse Source

update DB

update script
pull/560/head
Dr.Lt.Data 7 months ago
parent
commit
2907c8b4fc
  1. 15
      README.md
  2. 10
      custom-node-list.json
  3. 9
      extension-node-map.json
  4. 4
      github-stats.json
  5. 20
      node_db/new/custom-node-list.json
  6. 9
      node_db/new/extension-node-map.json
  7. 13
      scanner.py

15
README.md

@ -279,6 +279,21 @@ NODE_CLASS_MAPPINGS.update({
downgrade_blacklist = diffusers, kornia downgrade_blacklist = diffusers, kornia
``` ```
## Scanner
When you run the `scan.sh` script:
* It updates the `extension-node-map.json`.
* To do this, it pulls or clones the custom nodes listed in `custom-node-list.json` into `~/.tmp/default`.
* To skip this step, add the `--skip-update` option.
* If you want to specify a different path instead of `~/.tmp/default`, run `python scanner.py [path]` directly instead of `scan.sh`.
* It updates the `github-stats.json`.
* This uses the GitHub API, so set your token with `export GITHUB_TOKEN=your_token_here` to avoid quickly reaching the rate limit and malfunctioning.
* To skip this step, add the `--skip-update-stat` option.
* The `--skip-all` option applies both `--skip-update` and `--skip-stat-update`.
## Troubleshooting ## Troubleshooting
* If your `git.exe` is installed in a specific location other than system git, please install ComfyUI-Manager and run ComfyUI. Then, specify the path including the file name in `git_exe = ` in the ComfyUI-Manager/config.ini file that is generated. * If your `git.exe` is installed in a specific location other than system git, please install ComfyUI-Manager and run ComfyUI. Then, specify the path including the file name in `git_exe = ` in the ComfyUI-Manager/config.ini file that is generated.
* If updating ComfyUI-Manager itself fails, please go to the **ComfyUI-Manager** directory and execute the command `git update-ref refs/remotes/origin/main a361cc1 && git fetch --all && git pull`. * If updating ComfyUI-Manager itself fails, please go to the **ComfyUI-Manager** directory and execute the command `git update-ref refs/remotes/origin/main a361cc1 && git fetch --all && git pull`.

10
custom-node-list.json

@ -2559,6 +2559,16 @@
"install_type": "git-clone", "install_type": "git-clone",
"description": "ComfyUI wrapper node to test LaVi-Bridge using Diffusers" "description": "ComfyUI wrapper node to test LaVi-Bridge using Diffusers"
}, },
{
"author": "kijai",
"title": "ComfyUI-BrushNet-Wrapper",
"reference": "https://github.com/kijai/ComfyUI-BrushNet-Wrapper",
"files": [
"https://github.com/kijai/ComfyUI-BrushNet-Wrapper"
],
"install_type": "git-clone",
"description": "ComfyUI wrapper nodes to use the Diffusers implementation of BrushNet"
},
{ {
"author": "hhhzzyang", "author": "hhhzzyang",
"title": "Comfyui-Lama", "title": "Comfyui-Lama",

9
extension-node-map.json

@ -7850,6 +7850,15 @@
"title_aux": "Animatediff MotionLoRA Trainer" "title_aux": "Animatediff MotionLoRA Trainer"
} }
], ],
"https://github.com/kijai/ComfyUI-BrushNet-Wrapper": [
[
"brushnet_model_loader",
"brushnet_sampler"
],
{
"title_aux": "ComfyUI-BrushNet-Wrapper"
}
],
"https://github.com/kijai/ComfyUI-CCSR": [ "https://github.com/kijai/ComfyUI-CCSR": [
[ [
"CCSR_Model_Select", "CCSR_Model_Select",

4
github-stats.json

@ -2826,5 +2826,9 @@
"https://github.com/pamparamm/sd-perturbed-attention": { "https://github.com/pamparamm/sd-perturbed-attention": {
"stars": 6, "stars": 6,
"last_update": "2024-04-12 02:02:23" "last_update": "2024-04-12 02:02:23"
},
"https://github.com/kijai/ComfyUI-BrushNet-Wrapper": {
"stars": 0,
"last_update": "2024-04-12 12:23:24"
} }
} }

20
node_db/new/custom-node-list.json

@ -11,6 +11,16 @@
{
"author": "kijai",
"title": "ComfyUI-BrushNet-Wrapper",
"reference": "https://github.com/kijai/ComfyUI-BrushNet-Wrapper",
"files": [
"https://github.com/kijai/ComfyUI-BrushNet-Wrapper"
],
"install_type": "git-clone",
"description": "ComfyUI wrapper nodes to use the Diffusers implementation of BrushNet"
},
{ {
"author": "pamparamm", "author": "pamparamm",
"title": "Perturbed-Attention Guidance", "title": "Perturbed-Attention Guidance",
@ -681,16 +691,6 @@
], ],
"install_type": "git-clone", "install_type": "git-clone",
"description": "This extension provides a ComfyUI Custom Node implementation of the [a/Depth-Anything-Tensorrt](https://github.com/spacewalk01/depth-anything-tensorrt) in Python for ultra fast depth map generation" "description": "This extension provides a ComfyUI Custom Node implementation of the [a/Depth-Anything-Tensorrt](https://github.com/spacewalk01/depth-anything-tensorrt) in Python for ultra fast depth map generation"
},
{
"author": "Extraltodeus",
"title": "Vector_Sculptor_ComfyUI",
"reference": "https://github.com/Extraltodeus/Vector_Sculptor_ComfyUI",
"files": [
"https://github.com/Extraltodeus/Vector_Sculptor_ComfyUI"
],
"install_type": "git-clone",
"description": "The main node makes your conditioning go towards similar concepts so to enrich your composition or further away so to make it more precise. It gathers similar pre-cond vectors for as long as the cosine similarity score diminishes. If it climbs back it stops. This allows to set a relative direction to similar concepts.\nThere are examples at the end but [a/you can also check this imgur album](https://imgur.com/a/WvPd81Y) which demonstrates the capability of improving variety."
} }
] ]
} }

9
node_db/new/extension-node-map.json

@ -7850,6 +7850,15 @@
"title_aux": "Animatediff MotionLoRA Trainer" "title_aux": "Animatediff MotionLoRA Trainer"
} }
], ],
"https://github.com/kijai/ComfyUI-BrushNet-Wrapper": [
[
"brushnet_model_loader",
"brushnet_sampler"
],
{
"title_aux": "ComfyUI-BrushNet-Wrapper"
}
],
"https://github.com/kijai/ComfyUI-CCSR": [ "https://github.com/kijai/ComfyUI-CCSR": [
[ [
"CCSR_Model_Select", "CCSR_Model_Select",

13
scanner.py

@ -14,7 +14,6 @@ import sys
from urllib.parse import urlparse from urllib.parse import urlparse
from github import Github from github import Github
g = Github(os.environ.get('GITHUB_TOKEN'))
# prepare temp dir # prepare temp dir
if len(sys.argv) > 1: if len(sys.argv) > 1:
@ -25,7 +24,15 @@ else:
if not os.path.exists(temp_dir): if not os.path.exists(temp_dir):
os.makedirs(temp_dir) os.makedirs(temp_dir)
skip_update = '--skip-update' in sys.argv
skip_update = '--skip-update' in sys.argv or '--skip-all' in sys.argv
skip_stat_update = '--skip-stat-update' in sys.argv or '--skip-all' in sys.argv
if not skip_stat_update:
g = Github(os.environ.get('GITHUB_TOKEN'))
else:
g = None
print(f"TEMP DIR: {temp_dir}") print(f"TEMP DIR: {temp_dir}")
@ -301,7 +308,9 @@ def update_custom_nodes():
# pass # pass
with concurrent.futures.ThreadPoolExecutor(11) as executor: with concurrent.futures.ThreadPoolExecutor(11) as executor:
if not skip_stat_update:
executor.submit(process_git_stats, git_url_titles_preemptions) # One single thread for `process_git_stats()`. Runs concurrently with `process_git_url_title()`. executor.submit(process_git_stats, git_url_titles_preemptions) # One single thread for `process_git_stats()`. Runs concurrently with `process_git_url_title()`.
for url, title, preemptions, node_pattern in git_url_titles_preemptions: for url, title, preemptions, node_pattern in git_url_titles_preemptions:
executor.submit(process_git_url_title, url, title, preemptions, node_pattern) executor.submit(process_git_url_title, url, title, preemptions, node_pattern)

Loading…
Cancel
Save