From f42b100e1b10bf2d7c94e6c032fa95b4781475d6 Mon Sep 17 00:00:00 2001 From: or Date: Wed, 8 Jan 2025 15:23:12 +0200 Subject: [PATCH 01/12] Added modifications to the readme --- Readme.md | 56 ++++++++++++++++++++++++++++---------------- images/Bria Logo.svg | 21 +++++++++++++++++ 2 files changed, 57 insertions(+), 20 deletions(-) create mode 100644 images/Bria Logo.svg diff --git a/Readme.md b/Readme.md index cd60984..f39a76e 100644 --- a/Readme.md +++ b/Readme.md @@ -1,41 +1,57 @@ # BRIA ComfyUI API Nodes -## Overview -This repository contains custom nodes for ComfyUI that allow access to BRIA's API endpoints. You can find our API documentation [here](https://bria-ai-api-docs.redoc.ly/#operation//generation/bria-v2/text-to-image). +

+ BRIA Logo +

-To use the nodes in the workflow, you need a valid BRIA API token. You can get one [here](https://bria.ai/api/) (with 1000 free calls) +This repository provides custom nodes for ComfyUI, enabling direct access to **BRIA's API endpoints** for image generation workflows. **API documentation** is available [**here**](https://bria-ai-api-docs.redoc.ly/#operation//generation/bria-v2/text-to-image). -You can load the different workflows, by importing the compatible workflow.json files in this [folder](workflows). +An API token is required to use the nodes in your workflows. Get started quickly here + + Get Your Token +. -An illustration of our workflows: +To load a workflow, import the compatible workflow.json files from this [folder](workflows). - all workflows example all workflows example -## Available Nodes +Placeholder image of cool workflows. -### Eraser -The **Eraser** node allows users to remove specific objects or areas from an image by providing a mask. -This functionality is powered by BRIA's ControlNet inpainting, available on [this model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting) on Hugging Face. + -You can also try out BRIA's Eraser demo by visiting our Hugging Face space [here](https://huggingface.co/spaces/briaai/BRIA-Eraser-API). -### GenFill -The **GenFill** node allows users to add and modify objects or areas in an image by providing a mask and a prompt. -This functionality is powered by BRIA's ControlNet Generative Fill, available on [this model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Generative-Fill) on Hugging Face. -You can also try out BRIA's Generative Fill demo by visiting our Hugging Face space [here](https://huggingface.co/spaces/briaai/BRIA-Generative-Fill-API). + + +## Available Nodes by Product + +### Image Generation +Coming soon + +### Tailored Generation +Coming soon + +### Image Editing +#### Eraser +The **Eraser** node allows users to remove specific objects or areas from an image by providing a mask. Powered by BRIA's ControlNet inpainting [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Eraser-API)]. + +#### GenFill +The **GenFill** Route enables the generation of objects by prompt in a specific region of an image. This functionality is powered by BRIA's ControlNet Generative Fill. [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Generative-Fill)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Generative-Fill-API)] ### Product Shot Generation -The **ShotByText** node allows users to modify the background in an image by providing a prompt. +#### ShotByText +The **ShotByText** node allows users to modify the background in an image by providing a prompt, This functionality is powered by BRIA's ControlNet Background-Generation.[[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. -The **ShotByImage** node allows users to modify the background in an image by providing a reference image. +#### ShotByImage +The **ShotByImage** node allows users to modify the background in an image by providing a reference image. This functionality is powered by BRIA's ControlNet Background-Generation and BRIA's Image-Prompt. [[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗IP-Adapter model card](https://huggingface.co/briaai/Image-Prompt)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. -This functionality is powered by BRIA's ControlNet Background-Generation and BRIA's Image-Prompt, available on [this model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen) and [this model card](https://huggingface.co/briaai/Image-Prompt) respectively on Hugging Face. -You can also try out BRIA's ShotByText and ShotByImage demos by visiting our Hugging Face space [here](https://huggingface.co/spaces/briaai/Product-Shot-Generation). +### Video Editing +Coming soon + ## Installation There are two methods to install the BRIA ComfyUI API nodes: @@ -55,4 +71,4 @@ There are two methods to install the BRIA ComfyUI API nodes: git clone https://github.com/your-repo-link/ComfyUI-BRIA-API.git ``` -3. Restart ComfyUI and load the workflows. +3. Restart ComfyUI and load the workflows. \ No newline at end of file diff --git a/images/Bria Logo.svg b/images/Bria Logo.svg new file mode 100644 index 0000000..cbc33db --- /dev/null +++ b/images/Bria Logo.svg @@ -0,0 +1,21 @@ + + + + + + From e4ea36e135cf14679f131459d29daef8d53d7fd5 Mon Sep 17 00:00:00 2001 From: or Date: Wed, 8 Jan 2025 15:33:00 +0200 Subject: [PATCH 02/12] Added coming soon --- Readme.md | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/Readme.md b/Readme.md index f39a76e..9bad676 100644 --- a/Readme.md +++ b/Readme.md @@ -19,37 +19,29 @@ Placeholder image of cool workflows. +## Coming soon +- [ ] Image Generation +- [ ] Tailored Generation +- [ ] Video Editing - - - -## Available Nodes by Product - -### Image Generation -Coming soon - -### Tailored Generation -Coming soon +## Available Nodes ### Image Editing -#### Eraser -The **Eraser** node allows users to remove specific objects or areas from an image by providing a mask. Powered by BRIA's ControlNet inpainting [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Eraser-API)]. +#### **Eraser** +This node allows users to remove specific objects or areas from an image by providing a mask. Powered by BRIA's ControlNet inpainting [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Eraser-API)]. -#### GenFill -The **GenFill** Route enables the generation of objects by prompt in a specific region of an image. This functionality is powered by BRIA's ControlNet Generative Fill. [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Generative-Fill)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Generative-Fill-API)] +#### **GenFill** +This node enables the generation of objects by prompt in a specific region of an image. This functionality is powered by BRIA's ControlNet Generative Fill. [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Generative-Fill)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Generative-Fill-API)] ### Product Shot Generation -#### ShotByText -The **ShotByText** node allows users to modify the background in an image by providing a prompt, This functionality is powered by BRIA's ControlNet Background-Generation.[[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. +#### **ShotByText** +This node allows users to modify the background in an image by providing a prompt, This functionality is powered by BRIA's ControlNet Background-Generation.[[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. -#### ShotByImage -The **ShotByImage** node allows users to modify the background in an image by providing a reference image. This functionality is powered by BRIA's ControlNet Background-Generation and BRIA's Image-Prompt. [[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗IP-Adapter model card](https://huggingface.co/briaai/Image-Prompt)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. +#### **ShotByImage** +This node allows users to modify the background in an image by providing a reference image. This functionality is powered by BRIA's ControlNet Background-Generation and BRIA's Image-Prompt. [[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗IP-Adapter model card](https://huggingface.co/briaai/Image-Prompt)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. -### Video Editing -Coming soon - From f50bf3f2edc4b470376596866dd451f522233fd3 Mon Sep 17 00:00:00 2001 From: or Date: Wed, 8 Jan 2025 18:08:37 +0200 Subject: [PATCH 03/12] Added more changes --- Readme.md | 61 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 23 deletions(-) diff --git a/Readme.md b/Readme.md index 9bad676..2ea735a 100644 --- a/Readme.md +++ b/Readme.md @@ -19,32 +19,11 @@ Placeholder image of cool workflows. -## Coming soon +# Coming soon - [ ] Image Generation -- [ ] Tailored Generation - [ ] Video Editing -## Available Nodes - -### Image Editing -#### **Eraser** -This node allows users to remove specific objects or areas from an image by providing a mask. Powered by BRIA's ControlNet inpainting [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Eraser-API)]. - -#### **GenFill** -This node enables the generation of objects by prompt in a specific region of an image. This functionality is powered by BRIA's ControlNet Generative Fill. [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Generative-Fill)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Generative-Fill-API)] - -### Product Shot Generation -#### **ShotByText** -This node allows users to modify the background in an image by providing a prompt, This functionality is powered by BRIA's ControlNet Background-Generation.[[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. - -#### **ShotByImage** -This node allows users to modify the background in an image by providing a reference image. This functionality is powered by BRIA's ControlNet Background-Generation and BRIA's Image-Prompt. [[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗IP-Adapter model card](https://huggingface.co/briaai/Image-Prompt)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. - - - - ## Installation There are two methods to install the BRIA ComfyUI API nodes: @@ -63,4 +42,40 @@ There are two methods to install the BRIA ComfyUI API nodes: git clone https://github.com/your-repo-link/ComfyUI-BRIA-API.git ``` -3. Restart ComfyUI and load the workflows. \ No newline at end of file +3. Restart ComfyUI and load the workflows. + +# Available Nodes + +

Tailored Generation Nodes

+ +Run trained custom models to reproduce unique visual styles, enabling personalized image and vector generation aligned with your brand. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Tailored-Generation)]. + +### **Tailored Model Info** +This node retrieves the **default settings** and **prompt prefix** of a **trained tailored model**. It provides the necessary information to configure and run the model in the **Tailored Gen node**, ensuring consistency with the model's intended behavior. + +### **Tailored Gen** +This node is used to generate using a trained tailored model. It is designed to preserve the visual characteristics and ensure style fidelity established during model training. + +

Image Editing Nodes

+ +Edit and enhance images with tools for resizing, cropping, background editing, and object removal, with support for masks and captions.[[API docs](https://bria-ai-api-docs.redoc.ly/tag/Image-Editing)] + +### **Eraser** +This node is used to remove specific objects or areas from an image by providing a mask. Powered by BRIA's ControlNet inpainting [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Eraser-API)]. + +### **GenFill** +This node is used to generate objects by prompt in a specific region of an image. This functionality is powered by BRIA's ControlNet Generative Fill. [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Generative-Fill)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Generative-Fill-API)] + +

Product Shot Generation Nodes

+ +Create high-quality product images, including cutouts, packshots, shadows, and lifestyle scenes, for catalogs and online stores. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Product-Shots-Generation)] + +### **ShotByText** +This node is used to modify the background in an image by providing a prompt, This functionality is powered by BRIA's ControlNet Background-Generation.[[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. + +### **ShotByImage** +This node is used to modify the background in an image by providing a reference image. This functionality is powered by BRIA's ControlNet Background-Generation and BRIA's Image-Prompt. [[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗IP-Adapter model card](https://huggingface.co/briaai/Image-Prompt)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. + + + \ No newline at end of file From 1d10365fe126217fe455ba89a264ae1d327c058a Mon Sep 17 00:00:00 2001 From: or Date: Wed, 8 Jan 2025 18:22:02 +0200 Subject: [PATCH 04/12] V1 of the documentation --- Readme.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Readme.md b/Readme.md index 2ea735a..7115293 100644 --- a/Readme.md +++ b/Readme.md @@ -46,9 +46,8 @@ There are two methods to install the BRIA ComfyUI API nodes: # Available Nodes -

Tailored Generation Nodes

- -Run trained custom models to reproduce unique visual styles, enabling personalized image and vector generation aligned with your brand. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Tailored-Generation)]. +## Tailored Generation Nodes +These nodes use pre-trained tailored models to generate images in a specific visual style based on provided samples. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Tailored-Generation)]. ### **Tailored Model Info** This node retrieves the **default settings** and **prompt prefix** of a **trained tailored model**. It provides the necessary information to configure and run the model in the **Tailored Gen node**, ensuring consistency with the model's intended behavior. @@ -56,9 +55,8 @@ This node retrieves the **default settings** and **prompt prefix** of a **traine ### **Tailored Gen** This node is used to generate using a trained tailored model. It is designed to preserve the visual characteristics and ensure style fidelity established during model training. -

Image Editing Nodes

- -Edit and enhance images with tools for resizing, cropping, background editing, and object removal, with support for masks and captions.[[API docs](https://bria-ai-api-docs.redoc.ly/tag/Image-Editing)] +## Image Editing Nodes +These nodes modify specific parts of images, enabling adjustments, while maintaining the integrity of the rest of the image.[[API docs](https://bria-ai-api-docs.redoc.ly/tag/Image-Editing)] ### **Eraser** This node is used to remove specific objects or areas from an image by providing a mask. Powered by BRIA's ControlNet inpainting [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Eraser-API)]. @@ -66,9 +64,8 @@ This node is used to remove specific objects or areas from an image by providing ### **GenFill** This node is used to generate objects by prompt in a specific region of an image. This functionality is powered by BRIA's ControlNet Generative Fill. [[🤗model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Generative-Fill)] [[🤗HF demo](https://huggingface.co/spaces/briaai/BRIA-Generative-Fill-API)] -

Product Shot Generation Nodes

- -Create high-quality product images, including cutouts, packshots, shadows, and lifestyle scenes, for catalogs and online stores. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Product-Shots-Generation)] +## Product Shot Generation Nodes +These nodes create high-quality product images for eCommerce workflows. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Product-Shots-Generation)] ### **ShotByText** This node is used to modify the background in an image by providing a prompt, This functionality is powered by BRIA's ControlNet Background-Generation.[[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. From 3af0cc43410cabc401c4e6138ebd9f98ef9ff6c3 Mon Sep 17 00:00:00 2001 From: or Date: Thu, 9 Jan 2025 11:02:26 +0200 Subject: [PATCH 05/12] new doc version updated --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 7115293..74ec28a 100644 --- a/Readme.md +++ b/Readme.md @@ -14,7 +14,7 @@ An API token is required to use the nodes in your workflows. Get started quickly To load a workflow, import the compatible workflow.json files from this [folder](workflows). -Placeholder image of cool workflows. + From 8cf75db231def3a00c87a0641b58f252fb3c8b72 Mon Sep 17 00:00:00 2001 From: BriaOr <161630175+BriaOr@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:30:25 +0200 Subject: [PATCH 06/12] Update Readme.md --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 74ec28a..20e21f8 100644 --- a/Readme.md +++ b/Readme.md @@ -24,7 +24,7 @@ To load a workflow, import the compatible workflow.json files from this [folder] - [ ] Image Generation - [ ] Video Editing -## Installation +# Installation There are two methods to install the BRIA ComfyUI API nodes: ### Method 1: Using ComfyUI's Custom Node Manager @@ -75,4 +75,4 @@ This node is used to modify the background in an image by providing a reference \ No newline at end of file +Coming soon --> From c5193119cf81d081f364a2e1cd49bed822365ddb Mon Sep 17 00:00:00 2001 From: BriaOr <161630175+BriaOr@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:30:31 +0200 Subject: [PATCH 07/12] Update Readme.md --- Readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 20e21f8..95d377f 100644 --- a/Readme.md +++ b/Readme.md @@ -49,12 +49,12 @@ There are two methods to install the BRIA ComfyUI API nodes: ## Tailored Generation Nodes These nodes use pre-trained tailored models to generate images in a specific visual style based on provided samples. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Tailored-Generation)]. -### **Tailored Model Info** -This node retrieves the **default settings** and **prompt prefix** of a **trained tailored model**. It provides the necessary information to configure and run the model in the **Tailored Gen node**, ensuring consistency with the model's intended behavior. - ### **Tailored Gen** This node is used to generate using a trained tailored model. It is designed to preserve the visual characteristics and ensure style fidelity established during model training. +### **Tailored Model Info** +This node retrieves the **default settings** and **prompt prefix** of a **trained tailored model**. It provides the necessary information to configure and run the model in the **Tailored Gen node**, ensuring consistency with the model's intended behavior. + ## Image Editing Nodes These nodes modify specific parts of images, enabling adjustments, while maintaining the integrity of the rest of the image.[[API docs](https://bria-ai-api-docs.redoc.ly/tag/Image-Editing)] From 731b03634ab775452e56868501e8be0c498740b4 Mon Sep 17 00:00:00 2001 From: or Date: Thu, 9 Jan 2025 13:50:31 +0200 Subject: [PATCH 08/12] Added T2I node to documentation --- Readme.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 95d377f..e5ef904 100644 --- a/Readme.md +++ b/Readme.md @@ -21,7 +21,6 @@ To load a workflow, import the compatible workflow.json files from this [folder] # Coming soon -- [ ] Image Generation - [ ] Video Editing # Installation @@ -46,6 +45,11 @@ There are two methods to install the BRIA ComfyUI API nodes: # Available Nodes +## Image Generation Nodes + +### **Text2Image Base Node** +This node generates images from text prompts, serving as the foundation for creating visuals based on descriptive input. [[🤗model card](https://huggingface.co/briaai/BRIA-2.3)] + ## Tailored Generation Nodes These nodes use pre-trained tailored models to generate images in a specific visual style based on provided samples. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Tailored-Generation)]. From c72754d15b53a13ee0c0419d70401232c56b7fdb Mon Sep 17 00:00:00 2001 From: BriaOr <161630175+BriaOr@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:51:14 +0200 Subject: [PATCH 09/12] Update Readme.md --- Readme.md | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/Readme.md b/Readme.md index e5ef904..7f80ee1 100644 --- a/Readme.md +++ b/Readme.md @@ -23,26 +23,6 @@ To load a workflow, import the compatible workflow.json files from this [folder] - [ ] Video Editing -# Installation -There are two methods to install the BRIA ComfyUI API nodes: - -### Method 1: Using ComfyUI's Custom Node Manager -1. Open ComfyUI. -2. Navigate to the [**Custom Node Manager**](https://github.com/ltdrdata/ComfyUI-Manager). -3. Click on 'Install Missing Nodes' or search for BRIA API and install the node from the manager. - -### Method 2: Git Clone -1. Navigate to the `custom_nodes` directory of your ComfyUI installation: - ```bash - cd path_to_comfyui/custom_nodes - ``` -2. Clone this repository: - ```bash - git clone https://github.com/your-repo-link/ComfyUI-BRIA-API.git - ``` - -3. Restart ComfyUI and load the workflows. - # Available Nodes ## Image Generation Nodes @@ -77,6 +57,25 @@ This node is used to modify the background in an image by providing a prompt, Th ### **ShotByImage** This node is used to modify the background in an image by providing a reference image. This functionality is powered by BRIA's ControlNet Background-Generation and BRIA's Image-Prompt. [[🤗ContrlNet model card](https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting)] [[🤗IP-Adapter model card](https://huggingface.co/briaai/Image-Prompt)] [[🤗HF demo](https://huggingface.co/spaces/briaai/Product-Shot-Generation)]. +# Installation +There are two methods to install the BRIA ComfyUI API nodes: + +### Method 1: Using ComfyUI's Custom Node Manager +1. Open ComfyUI. +2. Navigate to the [**Custom Node Manager**](https://github.com/ltdrdata/ComfyUI-Manager). +3. Click on 'Install Missing Nodes' or search for BRIA API and install the node from the manager. + +### Method 2: Git Clone +1. Navigate to the `custom_nodes` directory of your ComfyUI installation: + ```bash + cd path_to_comfyui/custom_nodes + ``` +2. Clone this repository: + ```bash + git clone https://github.com/your-repo-link/ComfyUI-BRIA-API.git + ``` + +3. Restart ComfyUI and load the workflows. From eaca630863ff5ba62d700e41ff1c7e594e528e53 Mon Sep 17 00:00:00 2001 From: or Date: Thu, 9 Jan 2025 14:48:48 +0200 Subject: [PATCH 10/12] updated tailored workflow --- workflows/tailored_workflow.json | 315 +------------------------------ 1 file changed, 1 insertion(+), 314 deletions(-) diff --git a/workflows/tailored_workflow.json b/workflows/tailored_workflow.json index 317b824..ba475e6 100644 --- a/workflows/tailored_workflow.json +++ b/workflows/tailored_workflow.json @@ -1,314 +1 @@ -{ - "last_node_id": 18, - "last_link_id": 49, - "nodes": [ - { - "id": 2, - "type": "TailoredModelInfoNode", - "pos": [ - 480.2208557128906, - 641.4290161132812 - ], - "size": [ - 315, - 122 - ], - "flags": {}, - "order": 0, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "generation_prefix", - "type": "STRING", - "links": [ - 2 - ], - "slot_index": 0 - }, - { - "name": "default_fast", - "type": "INT", - "links": [ - 46 - ], - "slot_index": 1 - }, - { - "name": "default_steps_num", - "type": "INT", - "links": [ - 40 - ], - "slot_index": 2 - } - ], - "properties": { - "Node name for S&R": "TailoredModelInfoNode" - }, - "widgets_values": [ - "", - "" - ] - }, - { - "id": 3, - "type": "PreviewImage", - "pos": [ - 1728.9140625, - 688.2759399414062 - ], - "size": [ - 210, - 246 - ], - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 41 - } - ], - "outputs": [], - "properties": { - "Node name for S&R": "PreviewImage" - }, - "widgets_values": [] - }, - { - "id": 11, - "type": "LoadImage", - "pos": [ - 693.87060546875, - 831.6130981445312 - ], - "size": [ - 315, - 314 - ], - "flags": {}, - "order": 1, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 48 - ], - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": null - } - ], - "properties": { - "Node name for S&R": "LoadImage" - }, - "widgets_values": [ - "example.png", - "image" - ] - }, - { - "id": 5, - "type": "JjkShowText", - "pos": [ - 847.2867431640625, - 591.890625 - ], - "size": [ - 315, - 76 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "text", - "type": "STRING", - "link": 2, - "widget": { - "name": "text" - } - } - ], - "outputs": [ - { - "name": "text", - "type": "STRING", - "links": [ - 49 - ], - "shape": 6, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "JjkShowText" - }, - "widgets_values": [ - "A photo of a character named Sami, a siamese cat with blue eyes, " - ] - }, - { - "id": 15, - "type": "BriaTailoredGen", - "pos": [ - 1207.595947265625, - 645.6781005859375 - ], - "size": [ - 456, - 438 - ], - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [ - { - "name": "guidance_method_1_image", - "type": "IMAGE", - "link": 48, - "shape": 7 - }, - { - "name": "guidance_method_2_image", - "type": "IMAGE", - "link": null, - "shape": 7 - }, - { - "name": "generation_prefix", - "type": "STRING", - "link": 49, - "widget": { - "name": "generation_prefix" - }, - "shape": 7 - }, - { - "name": "fast", - "type": "INT", - "link": 46, - "widget": { - "name": "fast" - }, - "shape": 7 - }, - { - "name": "steps_num", - "type": "INT", - "link": 40, - "widget": { - "name": "steps_num" - }, - "shape": 7 - } - ], - "outputs": [ - { - "name": "output_image", - "type": "IMAGE", - "links": [ - 41 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "BriaTailoredGen" - }, - "widgets_values": [ - "", - "", - "a cat", - "", - "4:3", - -1, - "randomize", - 1, - "", - "", - 1, - "controlnet_canny", - 1, - "controlnet_canny", - 1 - ] - } - ], - "links": [ - [ - 2, - 2, - 0, - 5, - 0, - "STRING" - ], - [ - 40, - 2, - 2, - 15, - 4, - "INT" - ], - [ - 41, - 15, - 0, - 3, - 0, - "IMAGE" - ], - [ - 46, - 2, - 1, - 15, - 3, - "INT" - ], - [ - 48, - 11, - 0, - 15, - 0, - "IMAGE" - ], - [ - 49, - 5, - 0, - 15, - 2, - "STRING" - ] - ], - "groups": [], - "config": {}, - "extra": { - "ds": { - "scale": 1.1000000000000005, - "offset": [ - -364.273414711815, - -462.01869857932076 - ] - }, - "node_versions": { - "comfy-core": "v0.3.10-35-g916d1e1", - "ComfyUI-Jjk-Nodes": "b3c99bb78a99551776b5eab1a820e1cd58f84f31" - } - }, - "version": 0.4 -} \ No newline at end of file +{"last_node_id":21,"last_link_id":49,"nodes":[{"id":2,"type":"TailoredModelInfoNode","pos":[480.2208557128906,641.4290161132812],"size":[315,122],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"generation_prefix","type":"STRING","links":[2],"slot_index":0,"localized_name":"generation_prefix"},{"name":"default_fast","type":"INT","links":[46],"slot_index":1,"localized_name":"default_fast"},{"name":"default_steps_num","type":"INT","links":[40],"slot_index":2,"localized_name":"default_steps_num"}],"properties":{"Node name for S&R":"TailoredModelInfoNode"},"widgets_values":["",""]},{"id":3,"type":"PreviewImage","pos":[1728.9140625,688.2759399414062],"size":[210,246],"flags":{},"order":6,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":41,"localized_name":"images"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":11,"type":"LoadImage","pos":[693.87060546875,831.6130981445312],"size":[315,314],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[48],"slot_index":0,"localized_name":"IMAGE"},{"name":"MASK","type":"MASK","links":null,"localized_name":"MASK"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["example.png","image"]},{"id":5,"type":"JjkShowText","pos":[847.2867431640625,591.890625],"size":[315,76],"flags":{},"order":4,"mode":0,"inputs":[{"name":"text","type":"STRING","link":2,"widget":{"name":"text"}}],"outputs":[{"name":"text","type":"STRING","links":[49],"slot_index":0,"shape":6,"localized_name":"text"}],"properties":{"Node name for S&R":"JjkShowText"},"widgets_values":["A photo of a character named Sami, a siamese cat with blue eyes, "]},{"id":15,"type":"BriaTailoredGen","pos":[1207.595947265625,645.6781005859375],"size":[456,438],"flags":{},"order":5,"mode":0,"inputs":[{"name":"guidance_method_1_image","type":"IMAGE","link":48,"shape":7,"localized_name":"guidance_method_1_image"},{"name":"guidance_method_2_image","type":"IMAGE","link":null,"shape":7,"localized_name":"guidance_method_2_image"},{"name":"generation_prefix","type":"STRING","link":49,"widget":{"name":"generation_prefix"},"shape":7},{"name":"fast","type":"INT","link":46,"widget":{"name":"fast"},"shape":7},{"name":"steps_num","type":"INT","link":40,"widget":{"name":"steps_num"},"shape":7}],"outputs":[{"name":"output_image","type":"IMAGE","links":[41],"slot_index":0,"localized_name":"output_image"}],"properties":{"Node name for S&R":"BriaTailoredGen"},"widgets_values":["","","a cat","","4:3",-1,"randomize",1,"","",1,"controlnet_canny",1,"controlnet_canny",1]},{"id":21,"type":"Note","pos":[1215.2469482421875,522.4407348632812],"size":[449.75360107421875,58],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["You can get your BRIA API token at: https://bria.ai/api/"],"color":"#432","bgcolor":"#653"},{"id":19,"type":"Note","pos":[484.5993957519531,486.4328918457031],"size":[306.0655212402344,89.87609100341797],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["This node is used to retrieve default settings and prompt prefixes for the chosen tailored model."],"color":"#432","bgcolor":"#653"}],"links":[[2,2,0,5,0,"STRING"],[40,2,2,15,4,"INT"],[41,15,0,3,0,"IMAGE"],[46,2,1,15,3,"INT"],[48,11,0,15,0,"IMAGE"],[49,5,0,15,2,"STRING"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.7627768444385483,"offset":[-122.90473166350671,-300.2018923615813]},"node_versions":{"comfyui-bria-api":"c72754d15b53a13ee0c0419d70401232c56b7fdb","comfy-core":"v0.3.8-1-gc441048","ComfyUI-Jjk-Nodes":"b3c99bb78a99551776b5eab1a820e1cd58f84f31"}},"version":0.4} \ No newline at end of file From 02ead854bf21d4143d7ae0473e01f7f869e6ae43 Mon Sep 17 00:00:00 2001 From: BriaOr <161630175+BriaOr@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:41:28 +0200 Subject: [PATCH 11/12] Update Readme.md --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 7f80ee1..ca81559 100644 --- a/Readme.md +++ b/Readme.md @@ -31,10 +31,10 @@ To load a workflow, import the compatible workflow.json files from this [folder] This node generates images from text prompts, serving as the foundation for creating visuals based on descriptive input. [[🤗model card](https://huggingface.co/briaai/BRIA-2.3)] ## Tailored Generation Nodes -These nodes use pre-trained tailored models to generate images in a specific visual style based on provided samples. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Tailored-Generation)]. +These nodes use pre-trained tailored models to generate images that faithfully reproduce specific visual IP elements or guidelines. [[API docs](https://bria-ai-api-docs.redoc.ly/tag/Tailored-Generation)]. ### **Tailored Gen** -This node is used to generate using a trained tailored model. It is designed to preserve the visual characteristics and ensure style fidelity established during model training. +This node generates images using a trained tailored model, faithfully reproducing specific visual IP elements or guidelines established during model training. ### **Tailored Model Info** This node retrieves the **default settings** and **prompt prefix** of a **trained tailored model**. It provides the necessary information to configure and run the model in the **Tailored Gen node**, ensuring consistency with the model's intended behavior. From cdc1e52076c5545d249d2d458f5cb82547febbb3 Mon Sep 17 00:00:00 2001 From: Alexey Bogomolov Date: Wed, 15 Jan 2025 22:28:44 +0300 Subject: [PATCH 12/12] fix api url handling --- nodes/shot_by_image_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/shot_by_image_node.py b/nodes/shot_by_image_node.py index 6ee1647..eaeb282 100644 --- a/nodes/shot_by_image_node.py +++ b/nodes/shot_by_image_node.py @@ -21,7 +21,7 @@ class ShotByImageNode(): FUNCTION = "execute" # This is the method that will be executed def __init__(self): - super().__init__("https://engine.prod.bria-api.com/v1/product/lifestyle_shot_by_image") # Eraser API URL + self.api_url = "https://engine.prod.bria-api.com/v1/product/lifestyle_shot_by_image" # Eraser API URL # Define the execute method as expected by ComfyUI def execute(self, image, ref_image, api_key, enhance_ref_image, ):