Instructions to use alfredplpl/z-image-modern-anime with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use alfredplpl/z-image-modern-anime with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("alfredplpl/z-image-modern-anime", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Z-Image Modern Anime Model Card
This is an experimental model. I full-finetune Z-Image by Quality Tuning only.
Usage
- ComfyUI
- Download the model.
- Enjoy! (trigger word: Japanese modern anime style, )
- diffusers
- Run the code:
import torch
from diffusers import ZImagePipeline
# Load the pipeline
pipe = ZImagePipeline.from_pretrained(
"alfredplpl/z-image-modern-anime",
torch_dtype=torch.bfloat16,
low_cpu_mem_usage=False,
)
pipe.to("cuda")
# Generate image
prompt = "Japanese modern anime style, an upper body shot of an woman standing on the rainy street. She watches the sky. "
negative_prompt = "photo, cg, 3d, blurry"
image = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
height=1280,
width=720,
cfg_normalization=False,
num_inference_steps=30,
guidance_scale=4,
generator=torch.Generator("cuda").manual_seed(42),
).images[0]
image.save("example.png")
- Downloads last month
- 47
Model tree for alfredplpl/z-image-modern-anime
Base model
Tongyi-MAI/Z-Image