Nodes Browser
ComfyDeploy: How ComfyUI-PixArt_XL works in ComfyUI?
What is ComfyUI-PixArt_XL?
A ComfyUI extension that integrates PixArt-Alpha models directly into ComfyUI with advanced memory management.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI-PixArt_XL
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
ComfyUI-PixArt_XL
Support My Work
If you find this project helpful, consider buying me a coffee:
A ComfyUI extension that integrates PixArt-Alpha models directly into ComfyUI with advanced memory management.
Features
- Use PixArt-Alpha XL models directly in ComfyUI
- Smart memory management using both GPU and system RAM
- Automatic fallback to lower resolutions with high-quality upscaling
- Support for both DPM-Solver and SA-Solver schedulers
- Full precision processing for maximum stability
Installation
- Clone this repository into your ComfyUI custom nodes folder:
cd ComfyUI/custom_nodes
git clone https://github.com/ShmuelRonen/ComfyUI-PixArt_XL.git
- Install dependencies:
pip install sentencepiece
- Restart ComfyUI
Usage
After installation, you'll have access to two new nodes:
PixArtAlpha ModelLoader
Automatic loads a PixArt-Alpha model from Hugging Face.
Inputs:
base_model_path
: Path to the model (default: "PixArt-alpha/PixArt-XL-2-1024-MS")
Outputs:
model
: The loaded model
PixArtAlpha Generation
Generates images using the PixArt-Alpha model.
Inputs:
model
: The PixArt-Alpha modelpositive
: Positive promptnegative
: Negative promptwidth
,height
: Image dimensionssteps
: Number of sampling stepsguidance_scale
: How closely to follow the promptschedule
: Sampling schedulerseed
: Random seed
Outputs:
image
: The generated image
Memory Optimization
This implementation includes several advanced techniques to maximize memory efficiency:
- CPU component offloading
- Attention slicing
- VAE optimization
- Periodic CUDA cache clearing
- Resolution fallback with quality-preserving upscaling