Files
2025-11-29 04:28:44 +01:00

2.6 KiB

Knowledge Transfer - Z-Image & ComfyUI Integration

Essential Reference Documentation

Z-Image Pipeline (Diffusers)

Official ZImagePipeline Implementation

ComfyUI Z-Image Support

Z-Image Model Configuration in ComfyUI

ComfyUI ↔ Diffusers Conversion

Diffusers State Dict Conversion

Use Cases

When to Reference These Docs

  1. pipeline_z_image.py

    • Debugging pipeline call issues
    • Understanding Z-Image's unique architecture
    • Implementing advanced features (e.g., custom schedulers)
  2. supported_models.py

    • Comparing native ComfyUI vs diffusers approach
    • Understanding model loading patterns
    • Potential migration to native ComfyUI format
  3. diffusers_convert.py

    • Converting between diffusers and ComfyUI checkpoints
    • Understanding weight compatibility
    • Troubleshooting model loading issues

Current Implementation Notes

Our SDNQ nodes use the diffusers library directly rather than ComfyUI's native model handling. This approach:

  • ✅ Simpler for using diffusers-specific features (SDNQ quantization)
  • ✅ Access to official pipeline updates
  • ⚠️ Requires understanding diffusers conventions
  • ⚠️ Less integrated with ComfyUI's model management