wealthykasim commited on
Commit
f7c8b4e
Β·
verified Β·
1 Parent(s): 40b9abf

Upload 22 files

Browse files
.gitattributes CHANGED
@@ -44,3 +44,7 @@ gradio_cache/4/textured_mesh.glb filter=lfs diff=lfs merge=lfs -text
44
  gradio_cache/5/textured_mesh.glb filter=lfs diff=lfs merge=lfs -text
45
  *.whl filter=lfs diff=lfs merge=lfs -text
46
  gradio_cache/1/textured_mesh.glb filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
44
  gradio_cache/5/textured_mesh.glb filter=lfs diff=lfs merge=lfs -text
45
  *.whl filter=lfs diff=lfs merge=lfs -text
46
  gradio_cache/1/textured_mesh.glb filter=lfs diff=lfs merge=lfs -text
47
+ docs/source/_static/brand.png filter=lfs diff=lfs merge=lfs -text
48
+ docs/source/_static/image/example_deconv.png filter=lfs diff=lfs merge=lfs -text
49
+ docs/source/_static/image/optic_results.png filter=lfs diff=lfs merge=lfs -text
50
+ docs/source/_static/image/psf.png filter=lfs diff=lfs merge=lfs -text
docs/Makefile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = source
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
docs/README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Documentation
2
+
3
+ Source of the documentation.
4
+
5
+ - Build html.
6
+
7
+ ```bash
8
+ make html
9
+ ```
10
+
11
+ - Preview at `build/html/index.html`
12
+
docs/make.bat ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=source
11
+ set BUILDDIR=build
12
+
13
+ if "%1" == "" goto help
14
+
15
+ %SPHINXBUILD% >NUL 2>NUL
16
+ if errorlevel 9009 (
17
+ echo.
18
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19
+ echo.installed, then set the SPHINXBUILD environment variable to point
20
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
21
+ echo.may add the Sphinx directory to PATH.
22
+ echo.
23
+ echo.If you don't have Sphinx installed, grab it from
24
+ echo.https://www.sphinx-doc.org/
25
+ exit /b 1
26
+ )
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
docs/requirements.txt ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ myst-parser
2
+ sphinx-rtd-theme
3
+ furo
4
+ sphinx-copybutton
5
+ sphinx-inline-tabs
6
+ nbsphinx
7
+ nbsphinx_link
8
+ linkify-it-py
9
+ linkify
10
+ ipython
11
+
12
+ torch
13
+ imageio
14
+ scikit_image
15
+ matplotlib
16
+ munch
17
+ tfpnp
18
+ cvxpy
19
+ torchlights
20
+ tensorboardX
21
+ termcolor
22
+ proximal
23
+ opencv-python
24
+ huggingface_hub
25
+ torchvision
docs/source/_static/brand.png ADDED

Git LFS Details

  • SHA256: 09ddeed035d8e77ef2f775059b0d83caa80b1ea54959f4411ae9eb5fe6383aab
  • Pointer size: 132 Bytes
  • Size of remote file: 1.09 MB
docs/source/_static/css/custom.css ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /*.sidebar-logo {*/
3
+ /* display: block;*/
4
+ /* margin: 0;*/
5
+ /* max-width: 50%;*/
6
+ /*}*/
7
+
8
+ .nbsphinx-gallery {
9
+ display: grid;
10
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
11
+ gap: 5px;
12
+ margin-top: 1em;
13
+ margin-bottom: 1em;
14
+ }
15
+
16
+ h1 {
17
+ font-size: 2em
18
+ }
19
+
20
+ h2 {
21
+ font-size: 1.3em
22
+ }
23
+
24
+ h3 {
25
+ font-size: 1.25em
26
+ }
27
+
28
+ h4 {
29
+ font-size: 1.125em
30
+ }
31
+
32
+ h5 {
33
+ font-size: 1.07em
34
+ }
35
+
36
+ h6 {
37
+ font-size: 1em
38
+ }
docs/source/_static/favicon.ico ADDED
docs/source/_static/image/example_deconv.png ADDED

Git LFS Details

  • SHA256: 88db2977fb2c9895cd2342e5d8ce6d00902a5c288312017f5b36d58e9a6d8be7
  • Pointer size: 131 Bytes
  • Size of remote file: 360 kB
docs/source/_static/image/optic_results.png ADDED

Git LFS Details

  • SHA256: ce1b754e128a2a5c9187f45ebfcc16b9b1c6222ca05db6d943f281b70872943d
  • Pointer size: 131 Bytes
  • Size of remote file: 176 kB
docs/source/_static/image/psf.png ADDED

Git LFS Details

  • SHA256: 9ada8ee20e61c4186f39982c2de40ad72d482e6c74067f3a6378f988194cec0a
  • Pointer size: 131 Bytes
  • Size of remote file: 155 kB
docs/source/citation.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Citation
2
+
3
+ The following publications discuss the ideas behind Hunyuan3D-2:
4
+
5
+ > **Unleashing Vecset Diffusion Model for Fast Shape Generation** </br>
6
+ > Technical Report, 2025.
7
+
8
+ > **Hunyuan3D 2.0: Scaling Diffusion Models for High Resolution Textured 3D Assets Generation** </br>
9
+ > Technical Report, 2024.
10
+
11
+ > **Hunyuan3D 1.0: A Unified Framework for Text-to-3D and Image-to-3D Generation** </br>
12
+ > Technical Report, 2024.
13
+
14
+ If you found this repository helpful, please cite our reports:
15
+
16
+ ```bibtex
17
+ @misc{lai2025flashvdm,
18
+ title={Unleashing Vecset Diffusion Model for Fast Shape Generation},
19
+ author={Zeqiang Lai and Yunfei Zhao and Zibo Zhao and Haolin Liu and Fuyun Wang and Huiwen Shi and Xianghui Yang and Qinxiang Lin and Jinwei Huang and Yuhong Liu and Jie Jiang and Chunchao Guo and Xiangyu Yue},
20
+ year={2025},
21
+ eprint={2503.16302},
22
+ archivePrefix={arXiv},
23
+ primaryClass={cs.CV},
24
+ url={https://arxiv.org/abs/2503.16302},
25
+ }
26
+ @misc{hunyuan3d22025tencent,
27
+ title={Hunyuan3D 2.0: Scaling Diffusion Models for High Resolution Textured 3D Assets Generation},
28
+ author={Tencent Hunyuan3D Team},
29
+ year={2025},
30
+ eprint={2501.12202},
31
+ archivePrefix={arXiv},
32
+ primaryClass={cs.CV}
33
+ }
34
+
35
+ @misc{yang2024hunyuan3d,
36
+ title={Hunyuan3D 1.0: A Unified Framework for Text-to-3D and Image-to-3D Generation},
37
+ author={Tencent Hunyuan3D Team},
38
+ year={2024},
39
+ eprint={2411.02293},
40
+ archivePrefix={arXiv},
41
+ primaryClass={cs.CV}
42
+ }
43
+ ```
docs/source/conf.py ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Configuration file for the Sphinx documentation builder.
2
+ #
3
+ # This file only contains a selection of the most common options. For a full
4
+ # list see the documentation:
5
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
6
+
7
+ # -- Path setup --------------------------------------------------------------
8
+
9
+ # If extensions (or modules to document with autodoc) are in another directory,
10
+ # add these directories to sys.path here. If the directory is relative to the
11
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
12
+
13
+ import os
14
+ import sys
15
+
16
+ sys.path.insert(0, os.path.abspath("."))
17
+ sys.path.insert(0, os.path.abspath("../../"))
18
+
19
+ # -- Project information -----------------------------------------------------
20
+
21
+ project = 'Hunyuan3D-2'
22
+ copyright = '2025, Tencent Hunyuan3D'
23
+ author = 'Hunyuan3D Team'
24
+
25
+ # The full version, including alpha/beta/rc tags
26
+ release = '0.0.1'
27
+
28
+ # -- General configuration ---------------------------------------------------
29
+
30
+ # Add any Sphinx extension module names here, as strings. They can be
31
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32
+ # ones.
33
+ extensions = [
34
+ 'myst_parser',
35
+ 'nbsphinx',
36
+ 'nbsphinx_link',
37
+ # "myst_nb",
38
+ 'sphinx_copybutton',
39
+ # "sphinx_inline_tabs",
40
+ # https://sphinx-codeautolink.readthedocs.io/en/latest/examples.html
41
+ 'sphinx.ext.autodoc',
42
+ "sphinx.ext.intersphinx",
43
+ "sphinx.ext.extlinks",
44
+ 'sphinx.ext.autosummary',
45
+ 'sphinx.ext.doctest',
46
+ 'sphinx.ext.todo',
47
+ 'sphinx.ext.coverage',
48
+ 'sphinx.ext.mathjax',
49
+ 'sphinx.ext.viewcode',
50
+ 'sphinx.ext.napoleon',
51
+ ]
52
+
53
+ # -- Options for extlinks ----------------------------------------------------
54
+ #
55
+
56
+ extlinks = {
57
+ "pypi": ("https://pypi.org/project/%s/", "%s"),
58
+ }
59
+
60
+ # -- Options for intersphinx -------------------------------------------------
61
+ #
62
+
63
+ intersphinx_mapping = {
64
+ "python": ("https://docs.python.org/3", None),
65
+ "sphinx": ("https://www.sphinx-doc.org/en/master", None),
66
+ 'torch': ('https://pytorch.org/docs/master/', None)
67
+ }
68
+
69
+ napoleon_preprocess_types = True
70
+
71
+ myst_enable_extensions = [
72
+ "amsmath",
73
+ "colon_fence",
74
+ "deflist",
75
+ "dollarmath",
76
+ "fieldlist",
77
+ "html_admonition",
78
+ "html_image",
79
+ "linkify",
80
+ "replacements",
81
+ "smartquotes",
82
+ "strikethrough",
83
+ "substitution",
84
+ "tasklist",
85
+ ]
86
+
87
+ # Add any paths that contain templates here, relative to this directory.
88
+ templates_path = ['_templates']
89
+
90
+ # List of patterns, relative to source directory, that match files and
91
+ # directories to ignore when looking for source files.
92
+ # This pattern also affects html_static_path and html_extra_path.
93
+ exclude_patterns = []
94
+
95
+ # The name of the Pygments (syntax highlighting) style to use.
96
+ pygments_style = 'sphinx'
97
+
98
+ # -- Options for HTML output -------------------------------------------------
99
+
100
+ # The theme to use for HTML and HTML Help pages. See the documentation for
101
+ # a list of builtin themes.
102
+ #
103
+ # html_theme = 'alabaster'
104
+ # html_theme = 'sphinx_rtd_theme'
105
+ html_theme = "furo"
106
+ html_title = "Hunyuan3D-2"
107
+ language = "en"
108
+
109
+ # Add any paths that contain custom static files (such as style sheets) here,
110
+ # relative to this directory. They are copied after the builtin static files,
111
+ # so a file named "default.css" will overwrite the builtin "default.css".
112
+ html_static_path = ['_static']
113
+
114
+ html_theme_options = {
115
+ "light_css_variables": {
116
+ "font-stack": "Arial,Noto Sans,sans-serif",
117
+ "font-stack--monospace": "IBM Plex Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",
118
+ },
119
+ "announcement": 'Release πŸ€—<a href="https://huggingface.co/spaces/tencent/Hunyuan3D-2mini-Turbo">Turbo Series</a> and <a href="https://github.com/Tencent/FlashVDM">FlashVDM</a>, Fast Shape Generation within 1 Second Right Now!',
120
+ }
121
+
122
+ #
123
+ # -- Options for TODOs -------------------------------------------------------
124
+ #
125
+ todo_include_todos = True
126
+
127
+ #
128
+ # -- Options for Markdown files ----------------------------------------------
129
+ #
130
+ myst_admonition_enable = True
131
+ myst_deflist_enable = True
132
+ myst_heading_anchors = 3
133
+
134
+ html_favicon = '_static/favicon.ico'
135
+
136
+ pygments_style = "default"
137
+ pygments_dark_style = "github-dark"
138
+
139
+ html_css_files = [
140
+ 'css/custom.css',
141
+ ]
docs/source/index.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ hide-toc: true
3
+ ---
4
+
5
+ # Welcome to Hunyuan3D
6
+
7
+ ```{toctree}
8
+ :maxdepth: 3
9
+ :hidden:
10
+
11
+ Installation <installation/index>
12
+ Get Started <started/index>
13
+ Model Zoo <modelzoo>
14
+ citation
15
+ ```
16
+
17
+ ```{toctree}
18
+ :caption: Useful Links
19
+ :hidden:
20
+ PyPI Page <https://pypi.org/project/hy3dgen/>
21
+ GitHub Repository <https://github.com/Tencent/Hunyuan3D-2>
22
+ Paper <https://arxiv.org/abs/2501.12202>
23
+ ```
24
+
25
+ <br/>
26
+
27
+ ☯️ Hunyuan3D 2.0 is an advanced large-scale 3D synthesis system for generating high-resolution textured 3D assets.
28
+
29
+ The system includes the following foundation components:
30
+
31
+ 1. [Hunyuan3D-DiT](): a large-scale shape generation model.
32
+ 2. [Hunyuan3D-Paint](): a large-scale texture synthesis model.
33
+ 3. [Hunyuan3D-Studio](): a versatile, user-friendly production platform that simplifies the re-creation process of 3D
34
+ assets. It allows both professional and amateur users to manipulate or even animate their meshes efficiently.
35
+ 4. [FlashVDM](): a universal acceleration framework.
36
+
37
+ ```{nbgallery}
38
+ ```
39
+
40
+ <div class="toctree-wrapper compound">
41
+ <div class="nbsphinx-gallery">
42
+ <a class="reference internal" href="started/quicktour.html">
43
+ <b>Quicktour</b>
44
+ <p style="color:var(--color-content-foreground)">Learn the fundamentals of using βˆ‡-Prox. We recommend starting here if you are using πŸŽ‰ βˆ‡-Prox for the first time! </p>
45
+ </a>
46
+ <a class="reference internal" href="tutorials/index.html">
47
+ <b>Tutorials</b>
48
+ <p style="color:var(--color-content-foreground)">Understand the design of the library and the mathematics behind the code. </p>
49
+ </a>
50
+ <a class="reference internal" href="api/index.html">
51
+ <b>API Documentation</b>
52
+ <p style="color:var(--color-content-foreground)">Explore the complete reference guide. Useful if you want to develop programs with βˆ‡-Prox. </p>
53
+ </a>
54
+ </div>
55
+ </div>
docs/source/installation/index.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+
3
+ ```{toctree}
4
+ :hidden:
5
+ ```
6
+
7
+ βˆ‡-Prox works with PyTorch. To install Pytorch, please follow the [PyTorch installation instructions](https://pytorch.org/get-started/locally/).
8
+
9
+
10
+ **Install with pip**
11
+
12
+ ```bash
13
+ pip install dprox
14
+ ```
15
+
16
+ **Install from source**
17
+
18
+ ```bash
19
+ pip install git+https://github.com/princeton-computational-imaging/Delta-Prox.git
20
+ ```
21
+
22
+ **Editable installation**
23
+
24
+ You will need an editable install if you would like to:
25
+
26
+ 1. Use the main version of the source code.
27
+ 2. Need to test changes in the code.
28
+
29
+ To do so, clone the repository and install πŸŽ‰ Delta Prox with the following commands:
30
+
31
+ ```
32
+ git clone git+https://github.com/princeton-computational-imaging/Delta-Prox.git
33
+ cd DeltaProx
34
+ pip install -e .
35
+ ```
36
+
37
+ ```{caution}
38
+ Note that you must keep the DeltaProx folder for editable installation if you want to keep using the library.
39
+ ```
40
+
docs/source/modelzoo.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Model Zoo
2
+
3
+ It takes 6 GB VRAM for shape generation and 24.5 GB for shape and texture generation in total.
4
+
5
+ ## Hunyuan3D-2mini Series
6
+
7
+ | Model | Description | Date | Size | Huggingface |
8
+ |-----------------------------|-------------------------------|------------|------|--------------------------------------------------------------------------------------------------|
9
+ | Hunyuan3D-DiT-v2-mini-Turbo | Step Distillation Version | 2025-03-19 | 0.6B | [Download](https://huggingface.co/tencent/Hunyuan3D-2mini/tree/main/hunyuan3d-dit-v2-mini-turbo) |
10
+ | Hunyuan3D-DiT-v2-mini-Fast | Guidance Distillation Version | 2025-03-18 | 0.6B | [Download](https://huggingface.co/tencent/Hunyuan3D-2mini/tree/main/hunyuan3d-dit-v2-mini-fast) |
11
+ | Hunyuan3D-DiT-v2-mini | Mini Image to Shape Model | 2025-03-18 | 0.6B | [Download](https://huggingface.co/tencent/Hunyuan3D-2mini/tree/main/hunyuan3d-dit-v2-mini) |
12
+
13
+
14
+ ## Hunyuan3D-2mv Series
15
+
16
+ | Model | Description | Date | Size | Huggingface |
17
+ |---------------------------|--------------------------------|------------|------|----------------------------------------------------------------------------------------------|
18
+ | Hunyuan3D-DiT-v2-mv-Turbo | Step Distillation Version | 2025-03-19 | 1.1B | [Download](https://huggingface.co/tencent/Hunyuan3D-2mv/tree/main/hunyuan3d-dit-v2-mv-turbo) |
19
+ | Hunyuan3D-DiT-v2-mv-Fast | Guidance Distillation Version | 2025-03-18 | 1.1B | [Download](https://huggingface.co/tencent/Hunyuan3D-2mv/tree/main/hunyuan3d-dit-v2-mv-fast) |
20
+ | Hunyuan3D-DiT-v2-mv | Multiview Image to Shape Model | 2025-03-18 | 1.1B | [Download](https://huggingface.co/tencent/Hunyuan3D-2mv/tree/main/hunyuan3d-dit-v2-mv) |
21
+
22
+ ## Hunyuan3D-2 Series
23
+
24
+ | Model | Description | Date | Size | Huggingface |
25
+ |--------------------------|-----------------------------|------------|------|-------------------------------------------------------------------------------------------|
26
+ | Hunyuan3D-DiT-v2-0-Turbo | Step Distillation Model | 2025-03-19 | 1.1B | [Download](https://huggingface.co/tencent/Hunyuan3D-2/tree/main/hunyuan3d-dit-v2-0-turbo) |
27
+ | Hunyuan3D-DiT-v2-0-Fast | Guidance Distillation Model | 2025-02-03 | 1.1B | [Download](https://huggingface.co/tencent/Hunyuan3D-2/tree/main/hunyuan3d-dit-v2-0-fast) |
28
+ | Hunyuan3D-DiT-v2-0 | Image to Shape Model | 2025-01-21 | 1.1B | [Download](https://huggingface.co/tencent/Hunyuan3D-2/tree/main/hunyuan3d-dit-v2-0) |
29
+ | Hunyuan3D-Paint-v2-0 | Texture Generation Model | 2025-01-21 | 1.3B | [Download](https://huggingface.co/tencent/Hunyuan3D-2/tree/main/hunyuan3d-paint-v2-0) |
30
+ | Hunyuan3D-Delight-v2-0 | Image Delight Model | 2025-01-21 | 1.3B | [Download](https://huggingface.co/tencent/Hunyuan3D-2/tree/main/hunyuan3d-delight-v2-0) |
docs/source/started/api.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # API
2
+
3
+ You could launch an API server locally, which you could post web request for Image/Text to 3D, Texturing existing mesh,
4
+ and e.t.c.
5
+
6
+ ```bash
7
+ python api_server.py --host 0.0.0.0 --port 8080
8
+ ```
9
+
10
+ A demo post request for image to 3D without texture.
11
+
12
+ ```bash
13
+ img_b64_str=$(base64 -i assets/demo.png)
14
+ curl -X POST "http://localhost:8080/generate" \
15
+ -H "Content-Type: application/json" \
16
+ -d '{
17
+ "image": "'"$img_b64_str"'",
18
+ }' \
19
+ -o test2.glb
20
+ ```
docs/source/started/blender.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Blender Addon
2
+
3
+
4
+ With an API server launched, you could also directly use Hunyuan3D 2.0 in your blender with
5
+ our [Blender Addon](blender_addon.py). Please follow our tutorial to install and use.
6
+
7
+ https://github.com/user-attachments/assets/8230bfb5-32b1-4e48-91f4-a977c54a4f3e
docs/source/started/code.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Code
2
+
3
+
4
+ We designed a diffusers-like API to use our shape generation model - Hunyuan3D-DiT and texture synthesis model -
5
+ Hunyuan3D-Paint.
6
+
7
+ You could assess **Hunyuan3D-DiT** via:
8
+
9
+ ```python
10
+ from hy3dgen.shapegen import Hunyuan3DDiTFlowMatchingPipeline
11
+
12
+ pipeline = Hunyuan3DDiTFlowMatchingPipeline.from_pretrained('tencent/Hunyuan3D-2')
13
+ mesh = pipeline(image='assets/demo.png')[0]
14
+ ```
15
+
16
+ The output mesh is a [trimesh object](https://trimesh.org/trimesh.html), which you could save to glb/obj (or other
17
+ format) file.
18
+
19
+ For **Hunyuan3D-Paint**, do the following:
20
+
21
+ ```python
22
+ from hy3dgen.texgen import Hunyuan3DPaintPipeline
23
+ from hy3dgen.shapegen import Hunyuan3DDiTFlowMatchingPipeline
24
+
25
+ # let's generate a mesh first
26
+ pipeline = Hunyuan3DDiTFlowMatchingPipeline.from_pretrained('tencent/Hunyuan3D-2')
27
+ mesh = pipeline(image='assets/demo.png')[0]
28
+
29
+ pipeline = Hunyuan3DPaintPipeline.from_pretrained('tencent/Hunyuan3D-2')
30
+ mesh = pipeline(mesh, image='assets/demo.png')
31
+ ```
32
+
33
+ Please visit [examples](examples) folder for more advanced usage, such as **multiview image to 3D generation** and *
34
+ *texture generation
35
+ for handcrafted mesh**.
docs/source/started/comfyui.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Comfyui
2
+
3
+ comfyui
docs/source/started/gradio.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gradio APP
2
+
3
+ You could also host a [Gradio](https://www.gradio.app/) App in your own computer via:
4
+
5
+ Standard Version
6
+
7
+ ```bash
8
+ # Hunyuan3D-2mini
9
+ python3 gradio_app.py --model_path tencent/Hunyuan3D-2mini --subfolder hunyuan3d-dit-v2-mini --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode
10
+ # Hunyuan3D-2mv
11
+ python3 gradio_app.py --model_path tencent/Hunyuan3D-2mv --subfolder hunyuan3d-dit-v2-mv --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode
12
+ # Hunyuan3D-2
13
+ python3 gradio_app.py --model_path tencent/Hunyuan3D-2 --subfolder hunyuan3d-dit-v2-0 --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode
14
+ ```
15
+
16
+ Turbo Version
17
+
18
+ ```bash
19
+ # Hunyuan3D-2mini
20
+ python3 gradio_app.py --model_path tencent/Hunyuan3D-2mini --subfolder hunyuan3d-dit-v2-mini-turbo --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode --enable_flashvdm
21
+ # Hunyuan3D-2mv
22
+ python3 gradio_app.py --model_path tencent/Hunyuan3D-2mv --subfolder hunyuan3d-dit-v2-mv-turbo --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode --enable_flashvdm
23
+ # Hunyuan3D-2
24
+ python3 gradio_app.py --model_path tencent/Hunyuan3D-2 --subfolder hunyuan3d-dit-v2-0-turbo --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode --enable_flashvdm
25
+ ```
docs/source/started/index.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Get Started
2
+
3
+ ```{toctree}
4
+ :hidden:
5
+
6
+ gradio
7
+ comfyui
8
+ api
9
+ blender
10
+ code
11
+ studio
12
+ ```
13
+
14
+ ## Installation
15
+
16
+ To get started with βˆ‡-Prox, please follow the [Installation Documentation](install) for detailed instructions on how to install the library.
17
+
18
+ ## Quick Tour
19
+
20
+ - Take a [Quick Tour](quicktour) to get familiar with the features and functionalities of βˆ‡-Prox.
21
+
22
+ - Explore the [API Reference](../api/index) for a complete list of classes and functions.
23
+
24
+ - For advanced topics and best practices, refer to the [tutorials](../tutorials/index).
25
+
26
+
27
+ Happy coding with βˆ‡-Prox! πŸŽ‰
docs/source/started/studio.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Official Website
2
+
3
+ Don't forget to visit [Hunyuan3D](https://3d.hunyuan.tencent.com) for quick use, if you don't want to host yourself.