meituan-longcat/LongCat-Image 已完整同步
Introduction
We introduce LongCat-Image, a pioneering open-source and bilingual (Chinese-English) foundation model for image generation, designed to address core challenges in multilingual text rendering, photorealism, deployment efficiency, and developer accessibility prevalent in current leading models.
Key Features
- 🌟 Exceptional Efficiency and Performance: With only 6B parameters, LongCat-Image surpasses numerous open-source models that are several times larger across multiple benchmarks, demonstrating the immense potential of efficient model design.
- 🌟 Powerful Chinese Text Rendering: LongCat-Image demonstrates superior accuracy and stability in rendering common Chinese characters compared to existing SOTA open-source models and achieves industry-leading coverage of the Chinese dictionary.
- 🌟 Remarkable Photorealism: Through an innovative data strategy and training framework, LongCat-Image achieves remarkable photorealism in generated images.
🎨 Showcase
Quick Start
Installation
pip install git+https://github.com/huggingface/diffusers
Run Text-to-Image Generation
Tip
Leveraging a stronger LLM for prompt refinement can further enhance image generation quality. Please refer to inference_t2i.py for detailed usage instructions.
Caution
📝 Special Handling for Text Rendering
For both Text-to-Image and Image Editing tasks involving text generation, you must enclose the target text within single or double quotation marks (both English '...' / "..." and Chinese ‘...’ / “...” styles are supported).
Reasoning: The model utilizes a specialized character-level encoding strategy specifically for quoted content. Failure to use explicit quotation marks prevents this mechanism from triggering, which will severely compromise the text rendering capability.
import torch
from diffusers import LongCatImagePipeline
if __name__ == '__main__':
device = torch.device('cuda')
pipe = LongCatImagePipeline.from_pretrained
36 个文件
浏览文件数据集版权信息
本数据集的许可证为 Apache License 2.0。如有违反相关条款,请联系 WEHUB,我们将及时处理。 查看许可证
通过 WeHub CLI 下载当前数据集快照。下列命令会固定为当前页面展示的数据版本(如果页面提供版本)。文件字节由本机直连存储下载,浏览器不会签发或保存下载链接。
前置要求
需要 Node.js 18 及以上,以及 npm(或 npx)。
1. 安装 CLI
npm install -g wehub-cli@latest
2. 下载此数据集
wehub datasets download ds_ext_4195_7e65684c30 --revision d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 --output ./ds_ext_4195_7e65684c30
若中断或部分失败,在同一目录重新执行同一命令即可续传。默认会校验 SHA-256。
免全局安装
npx --yes wehub-cli@latest datasets download ds_ext_4195_7e65684c30 --revision d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 --output ./ds_ext_4195_7e65684c30
高级选项
以下为 wehub datasets download 已支持的参数示例:
强制重新下载,不复用已校验的本地文件
wehub datasets download ds_ext_4195_7e65684c30 --revision d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 --output ./ds_ext_4195_7e65684c30 --overwrite
仅包含匹配路径
wehub datasets download ds_ext_4195_7e65684c30 --revision d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 --output ./ds_ext_4195_7e65684c30 --include "*.jsonl"
排除匹配路径
wehub datasets download ds_ext_4195_7e65684c30 --revision d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 --output ./ds_ext_4195_7e65684c30 --exclude "*.md"
提高并发下载数
wehub datasets download ds_ext_4195_7e65684c30 --revision d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 --output ./ds_ext_4195_7e65684c30 --jobs 8
完整帮助:wehub datasets download --help