Skip to content

Z-Image workflow with predefined styles for high-quality image generation and a user-friendly experience. Includes pre-configured versions for GGUF and SAFETENSORS checkpoint formats.

License

Notifications You must be signed in to change notification settings

martin-rizzo/AmazingZImageWorkflow

Repository files navigation

Amazing Z-Image Workflow v2.1

Platform License Version Last

A workflow for Z-Image-Turbo extending the ComfyUI base workflow with additional features, particularly focused on high-quality image styles and ease of use. The repository includes pre-configured workflows for GGUF and SAFETENSORS formats.

Table of Contents

  1. Features
  2. Workflows Overview
  3. Required Custom Nodes
  4. Required Checkpoints Files
  5. License

Features

  • Style Selector: Choose from fifteen customizable image styles for experimentation.
  • Alternative Sampler Switch: Easily test generation with an alternative sampler.
  • Landscape Orientation Switch: Change to horizontal image generation with a single click.
  • Preconfigured workflows for each checkpoint format (GGUF / SAFETENSORS).
  • Custom sigma values fine-tuned to my personal preference (subjectivity 100%)
  • Generated images are saved in the "ZImage" folder, organized by date.
  • Incorporates a trick to enable automatic CivitAI prompt detection.

The 15 Predefined Styles in "amazing-z-image"

The 15 Predefined Styles in "amazing-z-comics"

Workflows Overview

The available styles are organized into workflows based on artistic focus:

  • amazing-z-image : The original general-purpose workflow with a variety of image styles.
  • amazing-z-comics : Includes comics, anime, and illustration styles.

Each of these workflows comes in two versions, one for GGUF checkpoints and another for SafeTensors.
This is reflected in the filenames:

  • amazing-z-###_GGUF.json : Recommended for GPUs with 12GB or less VRAM.
  • amazing_z-###_SAFETENSORS.json : Based directly on the ComfyUI example.

When using ComfyUI, you may encounter debates about the best checkpoint format. From my experience, GGUF quantized models provide a better balance between size and prompt response quality compared to SafeTensors versions. However, it's worth noting that ComfyUI includes optimizations that work more efficiently with SafeTensors files, which might make them preferable for some users despite their larger size. The optimal choice depends on factors like your ComfyUI version, PyTorch setup, CUDA configuration, GPU model, and available VRAM and RAM. To help you find the best fit for your system, I've included links to various checkpoint versions below.

Required Custom Nodes

These nodes can be installed via ComfyUI-Manager or downloaded from their respective repositories.

  • rgthree: Required for both workflows.
  • ComfyUI-GGUF: Required if you are using the workflow preconfigured for GGUF checkpoints.

Required Checkpoints Files

For "amazing-z-###_GGUF.json"

Workflows with checkpoint in GGUF format. (recommended)
Using Q5_K_S quants, you will likely achieve the best balance between file size and prompt response.

For "amazing-z-###_SAFETENSORS.json"

Based directly on the official ComfyUI example.
While it may require more than 12GB of VRAM to run smoothly, ComfyUI's optimizations may allow it to work well on your system.

For Low-VRAM Systems

If neither of the two provided versions nor their associated checkpoints perform adequately on your system, you can find links to several alternative checkpoint files below. Feel free to experiment with these options to determine which works best for you.

Diffusion Models (ComfyUI/models/diffusion_models/)

  • Z-Image-Turbo (GGUF Quantizations) This repository hosts various quantized versions of the z_image_turbo model (e.g., Q4_K_S, Q4_K_M, Q3_K_S). While some of these quantizations offer significantly reduced file sizes, this often comes at the expense of final output quality.

  • Z-Image-Turbo (FP8 SafeTensors) Similar to the GGUF options, this repository provides two z_image_turbo models quantized to FP8 (8-bit floating point) in SafeTensors format. These can serve as replacements for the original SafeTensors model, but in my opinion, they degrade quality quite a bit.

Text Encoders (ComfyUI/models/text_encoders/)

  • Qwen3-4B (Various GGUF Quantizations) This repository offers various quantized versions of the Qwen3-4B text encoder in GGUF format (e.g., Q2_K, Q3_K_M). Note: Quantizations beginning with "IQ" might not work, as the GGUF node did not support them during my testing.

License

This project is licensed under the Unlicense license.
See the "LICENSE" file for details.

About

Z-Image workflow with predefined styles for high-quality image generation and a user-friendly experience. Includes pre-configured versions for GGUF and SAFETENSORS checkpoint formats.

Topics

Resources

License

Stars

Watchers

Forks