From c4d04983fdf9eef6e497b65ddfed7cecf321beba Mon Sep 17 00:00:00 2001 From: snomiao Date: Fri, 14 Jun 2024 13:01:57 +0000 Subject: [PATCH 1/5] chore(publish): Add Github Action for Publishing to Comfy Registry --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a4fd892 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + - master + paths: + - "pyproject.toml" + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@main + with: + ## Add your own personal access token to your Github Repository secrets and reference it here. + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} From 3c7e95364d0e6d053e01b2394b3974a506396618 Mon Sep 17 00:00:00 2001 From: snomiao Date: Fri, 14 Jun 2024 13:01:58 +0000 Subject: [PATCH 2/5] chore(pyproject): Add pyproject.toml for Custom Node Registry --- pyproject.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..28c3cbf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,15 @@ +[project] +name = "comfyui-brushnet" +description = "Custom nodes for ComfyUI allow to inpaint using Brushnet: '[a/BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion](https://arxiv.org/abs/2403.06976)'." +version = "1.0.0" +license = "LICENSE" +dependencies = ["diffusers>=0.27.0", "accelerate>=0.29.0", "peft>=0.7.0"] + +[project.urls] +Repository = "https://github.com/nullquant/ComfyUI-BrushNet" +# Used by Comfy Registry https://comfyregistry.org + +[tool.comfy] +PublisherId = "" +DisplayName = "ComfyUI-BrushNet" +Icon = "" From 4a2483224e45fc28d4d2ecfd0903c0b6d7114763 Mon Sep 17 00:00:00 2001 From: nullquant <81931994+nullquant@users.noreply.github.com> Date: Fri, 14 Jun 2024 21:19:42 +0300 Subject: [PATCH 3/5] Update pyproject.toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 28c3cbf..cceb498 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "comfyui-brushnet" description = "Custom nodes for ComfyUI allow to inpaint using Brushnet: '[a/BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion](https://arxiv.org/abs/2403.06976)'." version = "1.0.0" -license = "LICENSE" +license = "Apache-2.0" dependencies = ["diffusers>=0.27.0", "accelerate>=0.29.0", "peft>=0.7.0"] [project.urls] @@ -10,6 +10,6 @@ Repository = "https://github.com/nullquant/ComfyUI-BrushNet" # Used by Comfy Registry https://comfyregistry.org [tool.comfy] -PublisherId = "" +PublisherId = "nullquant" DisplayName = "ComfyUI-BrushNet" Icon = "" From c6c7448d970c596846d27c535c79c49af3bf47b5 Mon Sep 17 00:00:00 2001 From: nullquant <81931994+nullquant@users.noreply.github.com> Date: Fri, 14 Jun 2024 21:24:16 +0300 Subject: [PATCH 4/5] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a4fd892..2c6f490 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,4 +19,4 @@ jobs: uses: Comfy-Org/publish-node-action@main with: ## Add your own personal access token to your Github Repository secrets and reference it here. - personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} + personal_access_token: ${{ secrets.COMFY_REGISTRY_KEY }} From 73d03c1aa5eb20071097f0f916af81edc45e88f0 Mon Sep 17 00:00:00 2001 From: nullquant <81931994+nullquant@users.noreply.github.com> Date: Fri, 14 Jun 2024 21:35:12 +0300 Subject: [PATCH 5/5] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cceb498..25c51ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "comfyui-brushnet" -description = "Custom nodes for ComfyUI allow to inpaint using Brushnet: '[a/BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion](https://arxiv.org/abs/2403.06976)'." +description = "These are custom nodes for ComfyUI native implementation of BrushNet (inpaint), PowerPaint (inpaint, object removal) and HiDiffusion (higher resolution for SD15 and SDXL)" version = "1.0.0" license = "Apache-2.0" dependencies = ["diffusers>=0.27.0", "accelerate>=0.29.0", "peft>=0.7.0"]