ComfyUI-FluxRegionAttention

Implement Region Attention for Flux model. Add node RegionAttention that takes a regions - mask + condition, mask could be set from comfyui masks or bbox in FluxRegionBBOX node. This code is not optimized and has a memory leak. If you caught a OOM just try run a query againg - works on my RTX3080. For generation it uses a usual prompt that have influence to all picture and a regions that have their own prompts. Base prompt good for setup background and style of image. This is train-free technique and results not always stable - sometimes need to try several seeds or change prompt.

VRAM Requirements

Direct Answer: The ComfyUI node ComfyUI-FluxRegionAttention requires a minimum base VRAM of 12288MB and is optimized for GPUs with at least 24GB of VRAM. Low VRAM mode is not supported for this node.

Extreme (>8GB)
Base VRAM:
12288MB (12.0GB)
Recommended GPU:
24GB+ VRAM
Low VRAM Mode:
✗ Not supported
Estimation Confidence:
HIGH

🧮 Interactive VRAM Compatibility Estimator

Estimated Total VRAM: 3.00 GBTarget: 8 GB
✅ Comfortable Fit

Your GPU has plenty of headroom. You can run this node safely with your active configurations!

Deploy on High-Performance GPUs

Need more VRAM to run ComfyUI with this node? Rent low-cost, high-performance GPUs on Vast.ai instantly.

🚀 Deploy on Vast.ai

Deploy on Cloud GPUs

Need more VRAM to run ComfyUI with this node? Rent low-cost, high-performance cloud GPUs on RunPod instantly.

🚀 Deploy on RunPod

Python Dependencies

Direct Answer: Running ComfyUI-FluxRegionAttention requires installing the following Python package dependencies: torch, xformers. Ensure your ComfyUI environment has these packages active before launching.

requirements.txt
torch
xformers

🛠️ Interactive Setup & Dependency Resolver

Operating System:
Environment Type:
Run this terminal command in your ComfyUI root folder:
# Loading command...

Compatible Foundations

This node is verified to support or optimize workflows for the following foundation model families: