davidvgilmore commited on
Commit
e93274e
·
verified ·
1 Parent(s): c5efce8

Upload README_zh_cn.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README_zh_cn.md +160 -0
README_zh_cn.md ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [Read in English](README.md)
2
+
3
+ <p align="center">
4
+ <img src="./assets/images/teaser.jpg">
5
+
6
+ </p>
7
+
8
+ <div align="center">
9
+ <a href=https://3d.hunyuan.tencent.com target="_blank"><img src=https://img.shields.io/badge/Hunyuan3D-black.svg?logo=homepage height=22px></a>
10
+ <a href=https://huggingface.co/spaces/tencent/Hunyuan3D-2 target="_blank"><img src=https://img.shields.io/badge/%F0%9F%A4%97%20Demo-276cb4.svg height=22px></a>
11
+ <a href=https://huggingface.co/tencent/Hunyuan3D-2 target="_blank"><img src=https://img.shields.io/badge/%F0%9F%A4%97%20Models-d96902.svg height=22px></a>
12
+ <a href=https://3d-models.hunyuan.tencent.com/ target="_blank"><img src= https://img.shields.io/badge/Page-bb8a2e.svg?logo=github height=22px></a>
13
+ <a href=https://discord.gg/GuaWYwzKbX target="_blank"><img src= https://img.shields.io/badge/Page-white.svg?logo=discord height=22px></a>
14
+ </div>
15
+
16
+ <br>
17
+ <p align="center">
18
+ “通过 3D 创作与编辑让每个人的想象变成现实。”
19
+ </p>
20
+
21
+ ## 🔥 最新消息
22
+
23
+ - Jan 21, 2025: 💬 我们发布了 [Hunyuan3D 2.0](https://huggingface.co/spaces/tencent/Hunyuan3D-2). 快来试试吧!
24
+
25
+ ## 概览
26
+
27
+ 混元 3D 2.0 是一款先进的大规模 3D 资产创作系统,它可以用于生成高分辨率的 3D 白膜以及带纹理的 3D
28
+ 模型。该系统包含两个基础组件:一个大规模几何生成模型 — 混元 3D-DiT,以及一个大规模纹理合成模型 — 混元 3D-Paint。
29
+ 几何生成模型基于基于流扩散的扩散模型构建,旨在生成与给定条件图像精确匹配的几何模型,为下游应用奠定坚实基础。
30
+ 纹理合成模型得益于强大的几何和扩散模型先验知识,能够为AI生成的或手工制作的网格模型生成高分辨率且生动逼真的纹理贴图。
31
+ 此外,我们打造了混元 3D 功能矩阵,一个功能多样、易于使用的创作平台,简化了 3D 模型的制作以及修改过程。它使专业用户和业余爱好者都能高效地对3D模型进行操作,甚至制作动画。
32
+ 我们对该系统进行了系统评估,结果表明混元 3D 2.0 在几何细节、条件匹配、纹理质量等方面均优于以往的最先进的开源以及闭源模型。
33
+
34
+ <p align="center">
35
+ <img src="assets/images/system.jpg">
36
+ </p>
37
+
38
+ ## ☯️ **Hunyuan3D 2.0**
39
+
40
+ ### 模型架构
41
+
42
+ 混元 3D 2.0 采用了一个两阶段的生成过程,它首先创建一个无纹理的几何模型,然后为该几何模型合成纹理贴图。这种策略有效地将形状生成和纹理生成的难点分离开来,同时也为生成的几何模型或手工制作的几何模型进行纹理处理提供了灵活性。
43
+
44
+ <p align="left">
45
+ <img src="assets/images/arch.jpg">
46
+ </p>
47
+
48
+ ### 性能评估
49
+
50
+ 我们将混元 3D 2.0 与其他开源及闭源的 3D 生成方法进行了评估对比。
51
+ 数值结果表明,在生成的带纹理 3D 模型的质量以及对给定条件的遵循能力方面,混元 3D 2.0 超越了所有的基准模型。
52
+
53
+ | Model | CMMD(⬇) | FID_CLIP(⬇) | FID(⬇) | CLIP-score(⬆) |
54
+ |-------------------------|-----------|-------------|-------------|---------------|
55
+ | Top Open-source Model1 | 3.591 | 54.639 | 289.287 | 0.787 |
56
+ | Top Close-source Model1 | 3.600 | 55.866 | 305.922 | 0.779 |
57
+ | Top Close-source Model2 | 3.368 | 49.744 | 294.628 | 0.806 |
58
+ | Top Close-source Model3 | 3.218 | 51.574 | 295.691 | 0.799 |
59
+ | Hunyuan3D 2.0 | **3.193** | **49.165** | **282.429** | **0.809** |
60
+
61
+ 一些 Hunyuan3D 2.0 的生成结果:
62
+ <p align="left">
63
+ <img src="assets/images/e2e-1.gif" height=300>
64
+ <img src="assets/images/e2e-2.gif" height=300>
65
+ </p>
66
+
67
+ ### 预训练模型
68
+
69
+ | 模型名称 | 发布日期 | Huggingface |
70
+ |----------------------|------------|--------------------------------------------------|
71
+ | Hunyuan3D-DiT-v2-0 | 2025-01-21 | [下载](https://huggingface.co/tencent/Hunyuan3D-2) |
72
+ | Hunyuan3D-Paint-v2-0 | 2025-01-21 | [下载](https://huggingface.co/tencent/Hunyuan3D-2) |
73
+
74
+ ## 🤗快速入门 Hunyuan3D 2.0
75
+
76
+ 你可以按照以下步骤,通过代码或 Gradio 来使用混元 3D 2.0。
77
+
78
+ ### 依赖包安装
79
+
80
+ 请通过官方网站安装 PyTorch。然后通过以下方式安装其他所需的依赖项。
81
+
82
+ ```bash
83
+ pip install -r assets/requirements.txt
84
+ ```
85
+
86
+ ### API 使用方法
87
+
88
+ 我们设计了一个类似于 diffusers 的 API 来使用我们的几何生成模型 — 混元 3D-DiT 和纹理合成模型 — 混元 3D-Paint。
89
+ 你可以通过以下方式使用 混元 3D-DiT:
90
+
91
+ ```python
92
+ from hy3dgen.shapegen import Hunyuan3DDiTFlowMatchingPipeline
93
+
94
+ pipeline = Hunyuan3DDiTFlowMatchingPipeline.from_pretrained('tencent/Hunyuan3D-2')
95
+ mesh = pipeline(image='assets/demo.png')[0]
96
+ ```
97
+
98
+ 输出的网格是一个 Trimesh 对象,你可以将其保存为 glb/obj(或其他格式)文件。
99
+ 对于 混元 3D-Paint,请执行以下操作:
100
+
101
+ ```python
102
+ from hy3dgen.texgen import Hunyuan3DPaintPipeline
103
+ from hy3dgen.shapegen import Hunyuan3DDiTFlowMatchingPipeline
104
+
105
+ # let's generate a mesh first
106
+ pipeline = Hunyuan3DDiTFlowMatchingPipeline.from_pretrained('tencent/Hunyuan3D-2')
107
+ mesh = pipeline(image='assets/demo.png')[0]
108
+
109
+ pipeline = Hunyuan3DPaintPipeline.from_pretrained('tencent/Hunyuan3D-2')
110
+ mesh = pipeline(mesh, image='assets/demo.png')
111
+ ```
112
+
113
+ 请访问 [minimal_demo.py](minimal_demo.py) 以了解更多高级用法,例如 文本转 3D 以及 为手工制作的网格生成纹理。
114
+
115
+ ### Gradio App 使用方法
116
+
117
+ 你也可以通过以下方式在自己的计算机上托管一个Gradio应用程序:
118
+
119
+ ```bash
120
+ pip3 install gradio==3.39.0
121
+ python3 gradio_app.py
122
+ ```
123
+
124
+ 如果你不想自己托管,别忘了访问[混元 3D](https://3d.hunyuan.tencent.com)进行快速使用。
125
+
126
+ ## 📑 开源计划
127
+
128
+ - [x] 推理代码
129
+ - [x] 模型权重
130
+ - [ ] 技术报告
131
+ - [ ] ComfyUI
132
+ - [ ] TensorRT 量化
133
+
134
+ ## 🔗 引用
135
+
136
+ 如果你发现我们的工作有帮助,你可以以下面的方式引用我们的报告:
137
+
138
+ ```bibtex
139
+ @misc{hunyuan3d22025tencent,
140
+ title={Hunyuan3D 2.0: Scaling Diffusion Models for High Resolution Textured 3D Assets Generation},
141
+ author={Tencent Hunyuan3D Team},
142
+ year={2025},
143
+ }
144
+ ```
145
+
146
+ ## 致谢
147
+
148
+ We would like to thank the contributors to
149
+ the [DINOv2](https://github.com/facebookresearch/dinov2), [Stable Diffusion](https://github.com/Stability-AI/stablediffusion), [FLUX](https://github.com/black-forest-labs/flux), [diffusers](https://github.com/huggingface/diffusers)
150
+ and [HuggingFace](https://huggingface.co) repositories, for their open research and exploration.
151
+
152
+ ## Star 历史
153
+
154
+ <a href="https://star-history.com/#Tencent/Hunyuan3D-2&Date">
155
+ <picture>
156
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Tencent/Hunyuan3D-2&type=Date&theme=dark" />
157
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Tencent/Hunyuan3D-2&type=Date" />
158
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Tencent/Hunyuan3D-2&type=Date" />
159
+ </picture>
160
+ </a>