Downloads · 30 days
505
1% of all-time downloads
Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers
HunyuanDiT-v1.2-Diffusers is a text-to-image model from Tencent-Hunyuan. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
<p align="center" <img src="https://raw.githubusercontent.com/Tencent/HunyuanDiT/main/asset/logo.png" height=100 </p
Downloads · 30 days
505
1% of all-time downloads
All-time downloads
38.1K
Public
Parameters
1.5B
14.4 GB on disk
Likes
31
Public
Click a slice to open those files.
.safetensors14.4 GB · 100%
From the Hugging Face model README
[Arxiv] [project page] [github]
This repo contains the pre-trained text-to-image model in 🤗 Diffusers format.
Please install PyTorch first, following the instruction in https://pytorch.org
Install the latest version of transformers with pip:
pip install --upgrade transformers
Then install the latest github version of 🤗 Diffusers with pip:
pip install git+https://github.com/huggingface/diffusers.git
import torch
from diffusers import HunyuanDiTPipeline
pipe = HunyuanDiTPipeline.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers", torch_dtype=torch.float16)
pipe.to("cuda")
# You may also use English prompt as HunyuanDiT supports both English and Chinese
# prompt = "An astronaut riding a horse"
prompt = "一个宇航员在骑马"
image = pipe(prompt).images[0]

In order to comprehensively compare the generation capabilities of HunyuanDiT and other models, we constructed a 4-dimensional test set, including Text-Image Consistency, Excluding AI Artifacts, Subject Clarity, Aesthetic. More than 50 professional evaluators performs the evaluation.
<p align="center"> <table> <thead> <tr> <th rowspan="2">Model</th> <th rowspan="2">Open Source</th> <th>Text-Image Consistency (%)</th> <th>Excluding AI Artifacts (%)</th> <th>Subject Clarity (%)</th> <th rowspan="2">Aesthetics (%)</th> <th rowspan="2">Overall (%)</th> </tr> </thead> <tbody> <tr> <td>SDXL</td> <td> ✔ </td> <td>64.3</td> <td>60.6</td> <td>91.1</td> <td>76.3</td> <td>42.7</td> </tr> <tr> <td>PixArt-α</td> <td> ✔</td> <td>68.3</td> <td>60.9</td> <td>93.2</td> <td>77.5</td> <td>45.5</td> </tr> <tr> <td>Playground 2.5</td> <td>✔</td> <td>71.9</td> <td>70.8</td> <td>94.9</td> <td>83.3</td> <td>54.3</td> </tr> <tr> <td>SD 3</td> <td>✘</td> <td>77.1</td> <td>69.3</td> <td>94.6</td> <td>82.5</td> <td>56.7</td> </tr> <tr> <td>MidJourney v6</td><td>✘</td> <td>73.5</td> <td>80.2</td> <td>93.5</td> <td>87.2</td> <td>63.3</td> </tr> <tr> <td>DALL-E 3</td><td>✘</td> <td>83.9</td> <td>80.3</td> <td>96.5</td> <td>89.4</td> <td>71.0</td> </tr> <tr style="font-weight: bold; background-color: #f2f2f2;"> <td>Hunyuan-DiT</td><td>✔</td> <td>74.2</td> <td>74.3</td> <td>95.4</td> <td>86.6</td> <td>59.0</td> </tr> </tbody> </table> </p>Welcome to Tencent Hunyuan Bot, where you can explore our innovative products in multi-round conversation!