diff --git a/README.md b/README.md index 4f7616f..66901ad 100644 --- a/README.md +++ b/README.md @@ -279,6 +279,21 @@ NODE_CLASS_MAPPINGS.update({ 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 * 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`. diff --git a/custom-node-list.json b/custom-node-list.json index 399e546..6b742f9 100644 --- a/custom-node-list.json +++ b/custom-node-list.json @@ -2559,6 +2559,16 @@ "install_type": "git-clone", "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", "title": "Comfyui-Lama", diff --git a/extension-node-map.json b/extension-node-map.json index 50acb99..06c0083 100644 --- a/extension-node-map.json +++ b/extension-node-map.json @@ -7850,6 +7850,15 @@ "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": [ [ "CCSR_Model_Select", diff --git a/github-stats.json b/github-stats.json index 9ec10e8..f55cb63 100644 --- a/github-stats.json +++ b/github-stats.json @@ -2826,5 +2826,9 @@ "https://github.com/pamparamm/sd-perturbed-attention": { "stars": 6, "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" } } \ No newline at end of file diff --git a/node_db/new/custom-node-list.json b/node_db/new/custom-node-list.json index c2d5d30..64a17bf 100644 --- a/node_db/new/custom-node-list.json +++ b/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", "title": "Perturbed-Attention Guidance", @@ -681,16 +691,6 @@ ], "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" - }, - { - "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." } ] } diff --git a/node_db/new/extension-node-map.json b/node_db/new/extension-node-map.json index 50acb99..06c0083 100644 --- a/node_db/new/extension-node-map.json +++ b/node_db/new/extension-node-map.json @@ -7850,6 +7850,15 @@ "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": [ [ "CCSR_Model_Select", diff --git a/scanner.py b/scanner.py index 6fc473e..c23bb5f 100644 --- a/scanner.py +++ b/scanner.py @@ -14,7 +14,6 @@ import sys from urllib.parse import urlparse from github import Github -g = Github(os.environ.get('GITHUB_TOKEN')) # prepare temp dir if len(sys.argv) > 1: @@ -25,7 +24,15 @@ else: if not os.path.exists(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}") @@ -301,7 +308,9 @@ def update_custom_nodes(): # pass with concurrent.futures.ThreadPoolExecutor(11) as executor: - executor.submit(process_git_stats, git_url_titles_preemptions) # One single thread for `process_git_stats()`. Runs concurrently with `process_git_url_title()`. + 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()`. + for url, title, preemptions, node_pattern in git_url_titles_preemptions: executor.submit(process_git_url_title, url, title, preemptions, node_pattern)