iconben/z-image-studio 是一个从 https://github.com/iconben/z-image-studio. 导入的 MCP 服务器候选。
概览
iconben/z-image-studio 是一个从 https://github.com/iconben/z-image-studio. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个 CLI、一个 webUI 和一个 MCP 服务器,用于 Z-Image-Turbo 文本转图像生成模型(Tongyi-MAI/Z-Image-Turbo 及其变体)。
该工具旨在为Windows/Mac/Linux用户在本地机器上高效运行。它针对NVIDIA(CUDA)、AMD(在Linux(ROCm)、**Intel(XPU)和Apple Silicon(MPS)**进行了优化,若检测到无兼容GPU则退回到CPU。
特色
混合接口:
- CLI:从终端快速、直接生成图像。
- Web UI:现代交互生成网页界面。
- MCP 服务器:AI 代理调用的能力。
CLI与核心功能
- Z-Image-Turbo 模型:采用高质量的
Tongyi-MAI/Z-Image-Turbo模型及通过diffusers的量化变体。 - MPS 加速:针对 Mac 用户和苹果硅芯片优化。
- ROCm 支持:在 AMD GPU 的 Linux 上明确支持
- Intel XPU 支持:运行 Intel 支持的 PyTorch 构建时支持英特尔 XPU。
- 注意力切片自动检测:自动管理内存使用(例如:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Z-Image Studio
A Cli, a webUI, and a MCP server for the Z-Image-Turbo text-to-image generation model (Tongyi-MAI/Z-Image-Turbo and its variants).
This tool is designed to run efficiently on local machines for Windows/Mac/Linux users. It features specific optimizations for NVIDIA (CUDA), AMD on Linux (ROCm), Intel (XPU), and Apple Silicon (MPS), falling back to CPU if no compatible GPU is detected.
Features
Hybrid Interfaces:
- CLI: Fast, direct image generation from the terminal.
- Web UI: Modern web interface for interactive generation.
- MCP Server: Capability to be called by AI agents.
CLI and core features
- Z-Image-Turbo Model: Utilizes the high-quality
Tongyi-MAI/Z-Image-Turbomodel and quatized variants viadiffusers. - MPS Acceleration: Optimized for Mac users with Apple Silicon.
- ROCm Support: Explicitly supported on Linux for AMD GPUs.
- Intel XPU Support: Supports Intel XPU when running an Intel-enabled PyTorch build.
- Attention Slicing Auto-detection: Automatically manages memory usage (e.g., enables attention slicing for systems with lower RAM/VRAM) to prevent Out-of-Memory errors and optimize performance.
- Seed Control: Reproducible image generation via CLI or Web UI.
- Multiple LoRA Support: Upload/manage LoRAs in the web UI, apply up to 4 with per-LoRA strengths in a single generation; CLI supports multiple
--loraentries with optional strengths. - Automatic Dimension Adjustment: Ensures image dimensions are compatible (multiples of 16).
- Customizable Output Directory: Image output directory can be customized via config file and environment variable.
安装
docker run -d \配置
{
"mcpServers": {
"z-image-studio": {
"command": "zimg-mcp",
"args": [],
"env": {}
}
}
}