CivArchive
    自拍、生活照、写实 - v1.0
    Preview 1
    # 自拍、生活照、写实 ## 模型介绍 本模型由模型 [DiffSynth-Studio/ZImage-i2L-v2](https://modelscope.ai/models/DiffSynth-Studio/ZImage-i2L-v2) 生成 ## 推理代码 安装 [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio): ```bash pip install diffsynth ``` 开始推理: ```python from diffsynth.pipelines.z_image import ZImagePipeline, ModelConfig import torch pipe = ZImagePipeline.from_pretrained( torch_dtype=torch.bfloat16, device="cuda", model_configs=[ ModelConfig(model_id="Tongyi-MAI/Z-Image", origin_file_pattern="transformer/*.safetensors"), ModelConfig(model_id="Tongyi-MAI/Z-Image", origin_file_pattern="text_encoder/*.safetensors"), ModelConfig(model_id="Tongyi-MAI/Z-Image", origin_file_pattern="vae/diffusion_pytorch_model.safetensors"), ], tokenizer_config=ModelConfig(model_id="Tongyi-MAI/Z-Image", origin_file_pattern="tokenizer/"), ) pipe.load_lora(pipe.dit, ModelConfig(model_id="diffsynth-i2L-gallery/Z-Image-selfie-lifestyle-realistic-e61f1c", origin_file_pattern="1781730029.610156-977552bb-2dc5-4dfc-a159-407944b5ab4f.safetensors")) prompt = "a cat" image = pipe(prompt=prompt, num_inference_steps=50, cfg_scale=4) image.save("image.jpg") ```

    Description

    LoRA
    Z-Image

    Details

    Downloads
    9
    Platform
    Civision
    Platform Status
    Available
    Created
    6/17/2026
    Updated
    6/17/2026
    Deleted
    -

    Files

    1781730029.610156-977552bb-2dc5-4dfc-a159-407944b5ab4f.safetensors