ComfyUI > Nodes > ComfyUI-piFlow

ComfyUI Extension: ComfyUI-piFlow

Repo Name

ComfyUI-piFlow

Author
lakonik (Account age: 2329 days)
Nodes
View all nodes(1)
Latest Updated
2025-12-18
Github Stars
0.13K

How to Install ComfyUI-piFlow

Install this extension via the ComfyUI Manager by searching for ComfyUI-piFlow
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-piFlow 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI-piFlow Description

ComfyUI-piFlow enhances ComfyUI with pi-Flow nodes, enabling rapid few-step sampling for efficient processing.

ComfyUI-piFlow Introduction

ComfyUI-piFlow is an extension for ComfyUI that introduces a set of custom nodes designed to implement the pi-Flow few-step sampling workflow. This innovative method allows for the generation of high-quality and diverse images using as few as four sampling steps. The pi-Flow technique is particularly beneficial for AI artists who seek to create varied and detailed artworks efficiently. By leveraging flow-based few-step generation, pi-Flow aligns closely with the base model's outputs while offering significantly higher diversity compared to traditional DMD models like Qwen-Image Lightning.

How ComfyUI-piFlow Works

At its core, pi-Flow utilizes a policy-based flow model that outputs a fast policy to achieve a denoised state through multiple ODE substeps. This approach, known as policy-based imitation distillation (pi-ID), simplifies the generation process by using a single L2 loss between the policy and the teacher model, eliminating the need for complex auxiliary networks or GANs. This method allows for the creation of diverse and high-quality images while maintaining alignment with the teacher model's style.

ComfyUI-piFlow Features

  • Few-Step Sampling: Generate images with as few as four sampling steps, significantly reducing the time and computational resources required.
  • High Diversity: Achieve a wide range of image variations, enhancing creativity and exploration in your artwork.
  • Texture Detail Enhancement: When using photorealistic style LoRAs, pi-Flow excels in producing fine-grained texture details, surpassing traditional DMD models.
  • Compatibility with Various Models: Supports multiple base models, including Qwen-Image and FLUX, allowing for flexibility in artistic expression.

ComfyUI-piFlow Models

pi-Qwen-Image

  • Base Model: Qwen-Image text-to-image base model.
  • Adapter: 4-step adapter for efficient sampling.
  • Use Case: Ideal for generating diverse and high-quality images with minimal steps.

pi-Flux

  • Base Model: FLUX.1 dev text-to-image base model.
  • Adapters: 4-step and 8-step adapters available.
  • Use Case: Suitable for artists looking to explore different sampling settings and achieve varied artistic effects.

pi-Flux.2

  • Base Model: FLUX.2 dev base model.
  • Adapter: 4-step adapter for both image generation and multi-image editing tasks.
  • Use Case: Perfect for artists interested in both creating new images and editing existing ones.

What's New with ComfyUI-piFlow

  • v1.1.4: Fixed a bug in the pi-Flux.2 editing workflow.
  • v1.1.3: Introduced pi-Flux.2 models and workflow, added GGUF support, and improved compatibility with ComfyUI v0.4.0.
  • v1.0.5: Added experimental support for polynomial-based DX policy and updated the pi-Flux workflow.

Troubleshooting ComfyUI-piFlow

  • Common Issues: If you encounter issues with model loading or sampling steps, ensure that all required models and adapters are correctly placed in their respective directories.
  • Sampler Steps: Ensure that the number of sampling steps is set to at least four for optimal performance.
  • Guidance Settings: Adapters require specific guidance settings (e.g., 3.5 for pi-Flux) to function correctly. Do not modify these values.

Learn More about ComfyUI-piFlow

For further exploration and support, consider visiting the following resources:

  • pi-Flow Official Repository for detailed information on training your own pi-Flow models.
  • ComfyUI Community for discussions and support from fellow AI artists.
  • Hugging Face Demos for interactive demonstrations of pi-Qwen and pi-FLUX models. By utilizing ComfyUI-piFlow, you can enhance your creative process, achieve greater diversity in your artworks, and streamline your image generation workflow.

ComfyUI-piFlow Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.