ComfyUI > Nodes > ComfyUI-B-LoRA

ComfyUI Extension: ComfyUI-B-LoRA

Repo Name

ComfyUI-B-LoRA

Author
Sida Liu (Account age: 3236 days)
Nodes
View all nodes(1)
Latest Updated
2024-06-18
Github Stars
0.06K

How to Install ComfyUI-B-LoRA

Install this extension via the ComfyUI Manager by searching for ComfyUI-B-LoRA
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-B-LoRA in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI-B-LoRA Description

ComfyUI-B-LoRA enables the loading and application of B-LoRA models, specifically designed to work with SDXL (sdxl_base_1.0).

ComfyUI-B-LoRA Introduction

ComfyUI-B-LoRA is a custom node extension for ComfyUI that allows you to load and apply B-LoRA models. B-LoRA stands for "By implicitly decomposing a single image into its style and content representation," which means it can separate the style and content of an image. This extension is particularly useful for AI artists who want to mix and match styles and content between different images, creating unique and high-quality stylized artworks.

Figure

By using ComfyUI-B-LoRA, you can easily apply different styles or content to your images, making it a powerful tool for creative projects. Whether you want to transfer the style of a famous painting to your own photo or create a new piece of art by combining different elements, ComfyUI-B-LoRA can help you achieve your artistic vision.

How ComfyUI-B-LoRA Works

ComfyUI-B-LoRA works by loading B-LoRA models, which are trained to separate the style and content of an image. Think of it like having two layers in an image: one for the style (like the brush strokes and colors) and one for the content (like the shapes and objects). B-LoRA models can be trained using just one image and in a short amount of time, making them very efficient.

When you load a B-LoRA model in ComfyUI, you can choose to apply the style, the content, or both to your image. This flexibility allows you to experiment with different combinations and create unique results. For example, you can take the style of a Van Gogh painting and apply it to a photo of a cityscape, or you can mix the content of a landscape with the style of a pencil sketch.

ComfyUI-B-LoRA Features

Load B-LoRA Node

The Load B-LoRA node is the main feature of this extension. Here are the options you can customize:

  • lora_name: Select the B-LoRA model you want to use. The extension will look for models in the models/loras/ folder by default.
  • load_style: Choose whether to apply the style from the B-LoRA model.
  • load_content: Choose whether to apply the content from the B-LoRA model.
  • strength: Adjust the strength of the B-LoRA effect on your image. A higher value means a stronger influence of the model. Load B-LoRA Node

Workflow Examples

Single Load B-LoRA Node

In this example, a single B-LoRA model is used to apply both style and content to an image.

Single Load B-LoRA Node

Separate Style and Content B-LoRA Nodes

In this example, one B-LoRA model is used for style and another for content, allowing for more complex and customized results.

Separate Style and Content B-LoRA Nodes

ComfyUI-B-LoRA Models

Currently, B-LoRA models are compatible with SDXL (sdxl_base_1.0). While they may work with SDXL-based fine-tuned models, compatibility is not guaranteed. You can find and download various B-LoRA models from the following links:

Troubleshooting ComfyUI-B-LoRA

Here are some common issues you might encounter while using ComfyUI-B-LoRA and how to solve them:

Common Issues and Solutions

  1. Model Not Loading: Ensure that the B-LoRA model is placed in the models/loras/ folder and that the lora_name is correctly specified.
  2. Weak or No Effect: Increase the strength parameter to see a more pronounced effect of the B-LoRA model.
  3. Compatibility Issues: Make sure you are using SDXL (sdxl_base_1.0) as the base model. Compatibility with other models is not guaranteed.

Frequently Asked Questions

  • Can I use multiple B-LoRA models at once? Yes, you can use different B-LoRA models for style and content to create more complex images.

  • How long does it take to train a B-LoRA model? Training a B-LoRA model takes about 15 minutes on a single RTX 4090 GPU.

  • Where can I share my B-LoRA models? You can share your models on platforms like Civit.ai or HuggingFace.

Learn More about ComfyUI-B-LoRA

To learn more about ComfyUI-B-LoRA and how to use it effectively, check out the following resources:

ComfyUI-B-LoRA Related Nodes

RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.