Install this extension via the ComfyUI Manager by searching
for ComfyUI-LBM
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter ComfyUI-LBM 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
ComfyUI-LBM integrates Latent Bridge Matching into ComfyUI for efficient image relighting, enabling single-step image-to-image translation tailored for relighting tasks.
ComfyUI-LBM Introduction
ComfyUI-LBM is an extension designed to enhance your image editing capabilities by implementing the Latent Bridge Matching (LBM) algorithm. This tool is particularly useful for AI artists who want to perform efficient image relighting, which involves changing the lighting conditions of an image to achieve a desired effect. The extension simplifies this process by allowing you to perform image-to-image translation in a single step, making it both fast and user-friendly. Whether you're looking to adjust the lighting of a portrait or create dramatic effects in a landscape, ComfyUI-LBM can help you achieve professional results with minimal effort.
How ComfyUI-LBM Works
At the core of ComfyUI-LBM is the Latent Bridge Matching (LBM) algorithm, which operates in a latent space to facilitate fast image-to-image translation. Imagine the latent space as a hidden layer where images are transformed and manipulated before being rendered in their final form. The LBM algorithm acts like a bridge, connecting the original image to its relighted version by adjusting the lighting conditions seamlessly. This process is akin to applying a filter that changes the mood and atmosphere of an image without altering its core elements. By using this method, ComfyUI-LBM ensures that you can achieve high-quality relighting effects quickly and efficiently.
ComfyUI-LBM Features
ComfyUI-LBM offers a range of features designed to enhance your image editing experience:
Fast Image Relighting: Achieve desired lighting effects in a single inference step, saving time and effort.
Simplified Workflow: With just one node, you can easily integrate the extension into your existing projects.
Optimized Memory Usage: The extension is designed to be memory-efficient, allowing you to work with high-resolution images without performance issues.
Automatic Model Download: Models are automatically downloaded and renamed on first use, ensuring a smooth setup process.
Depth and Normal Map Generation: Generate depth and normal maps to add more dimension and detail to your images.
Mask Support: Apply selective processing to specific areas of an image using masks.
Multiple Precision Options: Choose from fp32, bf16, or fp16 precision to balance quality and performance according to your needs.
ComfyUI-LBM Models
ComfyUI-LBM includes several models, each tailored for specific tasks:
LBM Relighting Model: This is the primary model used for changing the lighting conditions of an image. It's ideal for tasks where you want to enhance or alter the lighting to create a specific mood or effect.
LBM Depth Model: Use this model to generate depth maps, which can be used to add a sense of three-dimensionality to your images.
LBM Normals Model: This model is designed for creating normal maps, which are useful for adding texture and detail to surfaces in your images.
Each model can be automatically downloaded or manually obtained from the Hugging Face Model Hub.
What's New with ComfyUI-LBM
The latest update, version 1.1.0, introduces support for generating depth and normal maps, expanding the extension's capabilities beyond relighting. This update allows you to create more detailed and dynamic images by adding depth and texture, enhancing the overall quality of your work. These new features are particularly beneficial for artists looking to add more realism or artistic flair to their projects.
Troubleshooting ComfyUI-LBM
Here are some common issues you might encounter while using ComfyUI-LBM, along with solutions:
Issue: The model does not download automatically.
Solution: Ensure you have a stable internet connection and sufficient disk space. You can also manually download the models from the provided links and place them in the appropriate directory.
Issue: Memory errors when processing high-resolution images.
Solution: Try reducing the image resolution or switching to a lower precision setting, such as fp16, to decrease memory usage.
Issue: The relighting effect is not as expected.
Solution: Adjust the "Bridge Noise Sigma" parameter to control the diversity of results. Lower values are recommended for subtle relighting, while higher values can be used for more pronounced effects.
Learn More about ComfyUI-LBM
To further explore the capabilities of ComfyUI-LBM, you can access additional resources such as:
LBM Paper: Dive into the technical details of the Latent Bridge Matching algorithm.
Hugging Face Demo: Try out the extension in a live demo environment.
Community Forums: Join discussions with other AI artists to share tips, ask questions, and get support.
These resources will help you make the most of ComfyUI-LBM and enhance your creative projects.
RunComfy is the
premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.
RunComfy also provides AI Playground,
enabling artists to harness the latest AI tools to create incredible art.