ChrisColeTech commited on
Commit
3264705
·
1 Parent(s): 5b9aaea

Copy files from models/TencentARC/Pixal3D

Browse files
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tencent.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
NOTICE ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Pixal3D
2
+ Copyright (c) 2026 Tencent.
3
+
4
+ Tencent is pleased to support the community by making Pixal3D available.
5
+
6
+ The open-source software and/or models included in this distribution may have
7
+ been modified by Tencent (“Tencent Modifications”). All Tencent Modifications
8
+ are Copyright (c) Tencent.
9
+
10
+ For the avoidance of doubt, Pixal3D refers solely to code, parameters, weights,
11
+ and associated documentation made publicly available by Tencent in accordance
12
+ with the MIT License (see the LICENSE file).
13
+
14
+
15
+ ================================================================================
16
+ Third-Party Components
17
+ ================================================================================
18
+
19
+ This product includes software developed by third parties. The third-party
20
+ components listed below remain licensed under their respective original terms.
21
+ Pixal3D does not impose any additional restrictions beyond those specified in
22
+ the original licenses of these third-party components. Users are required to
23
+ comply with all applicable terms and conditions of the original licenses and
24
+ to ensure that the use of these third-party components conforms to all
25
+ relevant laws and regulations.
26
+
27
+ In case you believe there have been errors in the attribution below, you may
28
+ submit the concerns to us for review and correction.
29
+
30
+
31
+ ================================================================================
32
+ Open Model Licensed under Apache-2.0
33
+ ================================================================================
34
+
35
+ 1. dinov2
36
+ Copyright (c) 2025 dinov2 original author and authors
37
+
38
+
39
+ ================================================================================
40
+ Open Source Software Licensed under the MIT License
41
+ ================================================================================
42
+
43
+ 2. TRELLIS.2
44
+ Copyright (c) Microsoft Corporation.
45
+
46
+ 3. Direct3D-S2
47
+ Copyright (c) DreamTech.
48
+
49
+ 4. MoGe
50
+ Copyright (c) Microsoft Corporation.
51
+
52
+
53
+ ================================================================================
54
+ Terms of the MIT License
55
+ ================================================================================
56
+
57
+ Permission is hereby granted, free of charge, to any person obtaining a copy
58
+ of this software and associated documentation files (the "Software"), to deal
59
+ in the Software without restriction, including without limitation the rights
60
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
61
+ copies of the Software, and to permit persons to whom the Software is
62
+ furnished to do so, subject to the following conditions:
63
+
64
+ The above copyright notice and this permission notice shall be included in all
65
+ copies or substantial portions of the Software.
66
+
67
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
68
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
69
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
70
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
71
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
72
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
73
+ SOFTWARE.
74
+
75
+
76
+ ================================================================================
77
+ Terms of the Apache License, Version 2.0
78
+ ================================================================================
79
+
80
+ Apache License
81
+ Version 2.0, January 2004
82
+ http://www.apache.org/licenses/
83
+
84
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
85
+
86
+ Definitions.
87
+
88
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
89
+
90
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
91
+
92
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
93
+
94
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
95
+
96
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
97
+
98
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
99
+
100
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
101
+
102
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
103
+
104
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
105
+
106
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
107
+
108
+ Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
109
+
110
+ Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
111
+
112
+ Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
113
+
114
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
115
+
116
+ Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
117
+
118
+ Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
119
+
120
+ Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
121
+
122
+ Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
123
+
124
+ Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
125
+
126
+ END OF TERMS AND CONDITIONS
README.md CHANGED
@@ -1,3 +1,302 @@
1
  ---
2
- license: unknown
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ license_link: LICENSE
4
+ extra_gated_eu_disallowed: true
5
+ pipeline_tag: image-to-3d
6
  ---
7
+
8
+
9
+ <div align="center">
10
+
11
+ # Pixal3D: Pixel-Aligned 3D Generation from Images
12
+
13
+ <h3>SIGGRAPH 2026</h3>
14
+
15
+ <small>[Dong-Yang Li](https://ldyang694.github.io/)¹ · [Wang Zhao](https://thuzhaowang.github.io/)²* · [Yuxin Chen](https://orcid.org/0000-0002-7854-1072)² · [Wenbo Hu](https://wbhu.github.io/)² · [Meng-Hao Guo](https://menghaoguo.github.io/)¹ · [Fang-Lue Zhang](https://fanglue.github.io/)³ · [Ying Shan](https://www.linkedin.com/in/YingShanProfile)² · [Shi-Min Hu](https://cg.cs.tsinghua.edu.cn/shimin.htm)¹✉</small>
16
+
17
+ ¹Tsinghua University (BNRist) &nbsp;&nbsp; ²Tencent ARC Lab &nbsp;&nbsp; ³Victoria University of Wellington
18
+
19
+ *Project lead &nbsp;&nbsp; ✉Corresponding author
20
+
21
+ </div>
22
+
23
+ <div align="center">
24
+ <a href="https://ldyang694.github.io/projects/pixal3d/"><img src=https://img.shields.io/badge/Project%20Page-333399.svg?logo=googlehome height=22px></a>
25
+ <a href="https://github.com/TencentARC/Pixal3D"><img src=https://img.shields.io/badge/GitHub-181717.svg?logo=github&logoColor=white height=22px></a>
26
+ <a href="https://huggingface.co/spaces/TencentARC/Pixal3D"><img src=https://img.shields.io/badge/%F0%9F%A4%97%20Demo-276cb4.svg height=22px></a>
27
+ <a href="https://huggingface.co/TencentARC/Pixal3D"><img src=https://img.shields.io/badge/%F0%9F%A4%97%20Models-d96902.svg height=22px></a>
28
+ <a href="https://arxiv.org/abs/2605.10922"><img src=https://img.shields.io/badge/Arxiv-b5212f.svg?logo=arxiv height=22px></a>
29
+ <a href="LICENSE"><img src=https://img.shields.io/badge/License-MIT-yellow.svg height=22px></a>
30
+ </div>
31
+
32
+
33
+ **Pixal3D** generates high-fidelity 3D assets from a single image. Unlike previous methods that loosely inject image features via attention, Pixal3D explicitly lifts pixel features into 3D through back-projection, establishing direct pixel-to-3D correspondences. This enables near-reconstruction-level fidelity with detailed geometry and PBR textures.
34
+
35
+ ---
36
+
37
+ ## ✨ News
38
+
39
+ - **May 2026**: Release training code and data preparation toolkit. 🔧
40
+ - **May 2026**: Release the improved version based on [Trellis.2](https://github.com/microsoft/TRELLIS.2) backbone. 💪
41
+ - **May 2026**: Release inference code and online demo. 🤗
42
+ - **Apr 2026**: Our paper is accepted to SIGGRAPH 2026! 🎉
43
+
44
+ ## 📌 Branches
45
+
46
+ | Branch | Description |
47
+ |--------|-------------|
48
+ | `main` | **Latest version** — improved implementation based on [Trellis.2](https://github.com/microsoft/TRELLIS.2) backbone with better performance. |
49
+ | `paper` | **Paper version** — original implementation based on [Direct3D-S2](https://github.com/DreamTechAI/Direct3D-S2), corresponding to results reported in our SIGGRAPH 2026 paper. |
50
+
51
+ > If you want to reproduce the results in our paper, please switch to the `paper` branch.
52
+
53
+ ## 🎮 Try It Online
54
+
55
+ You can try Pixal3D directly in your browser without any installation via our Hugging Face Gradio demo:
56
+
57
+ 👉 [**Launch Demo**](https://huggingface.co/spaces/TencentARC/Pixal3D)
58
+
59
+ ## 🚀 Getting Started
60
+
61
+ ### Installation
62
+
63
+ #### Step 1: Follow TRELLIS.2 Installation
64
+
65
+ Please first follow the installation guide of [TRELLIS.2](https://github.com/microsoft/TRELLIS.2) to set up the base environment.
66
+
67
+ #### Step 2: Install Additional Dependencies
68
+
69
+ ```bash
70
+ pip install -r requirements.txt
71
+ ```
72
+
73
+ #### Step 3: Install natten
74
+
75
+ ```bash
76
+ NATTEN_CUDA_ARCH="xx" NATTEN_N_WORKERS=xx pip install natten==0.21.0 --no-build-isolation
77
+ ```
78
+
79
+ Please replace `xx` with the CUDA architecture and the number of build workers suitable for your machine.
80
+
81
+ #### Step 4: Install utils3d
82
+
83
+ ```bash
84
+ pip install https://github.com/LDYang694/Storages/releases/download/20260430/utils3d-0.0.2-py3-none-any.whl
85
+ ```
86
+
87
+ > **Note**: `requirements-hfdemo.txt` is for the Hugging Face Spaces demo (H-series GPU architecture) and may not be compatible with other architectures.
88
+
89
+ ### Usage
90
+
91
+ #### Inference
92
+
93
+ Generate a GLB mesh from a single image:
94
+
95
+ ```bash
96
+ python inference.py --image assets/images/0_img.png --output ./output.glb
97
+ ```
98
+
99
+ **Low-VRAM mode** (reduces peak VRAM by loading models on-demand):
100
+
101
+ ```bash
102
+ python inference.py --image assets/images/0_img.png --output ./output.glb --low_vram
103
+ ```
104
+
105
+ By default, the pipeline resolution is **1536** (standard mode) or **1024** (low-VRAM mode). You can override this with `--resolution`:
106
+
107
+ ```bash
108
+ # Force 1536 even in low-VRAM mode
109
+ python inference.py --image assets/images/0_img.png --output ./output.glb --low_vram --resolution 1536
110
+
111
+ # Force 1024 in standard mode
112
+ python inference.py --image assets/images/0_img.png --output ./output.glb --resolution 1024
113
+ ```
114
+
115
+ **Tip**: If you don't have `flash_attn` installed, you can use PyTorch's built-in SDPA backend instead:
116
+ > ```bash
117
+ > ATTN_BACKEND=sdpa python inference.py --image assets/images/0_img.png --output ./output.glb --low_vram
118
+ > ```
119
+
120
+ ### Web Demo
121
+
122
+ We provide a Gradio web demo for Pixal3D, which allows you to generate 3D meshes from images interactively.
123
+
124
+ ```bash
125
+ python app.py
126
+ ```
127
+
128
+ Low-VRAM mode is also available for the web demo. The frontend default resolution will automatically switch to 1024 in low-VRAM mode (1536 otherwise), but can be changed manually in the UI.
129
+
130
+ ```bash
131
+ python app.py --low_vram
132
+ # or via environment variable:
133
+ LOW_VRAM=1 python app.py
134
+ ```
135
+ ## 🔧 Training
136
+
137
+ We provide the full training codebase for reproducing Pixal3D from scratch.
138
+
139
+ ### Data Preparation
140
+
141
+ Prepare view-aligned O-Voxel data and rendered condition images by following the data toolkit instructions:
142
+
143
+ > 📂 **[data_toolkit/README.md](data_toolkit/README.md)**
144
+
145
+ ### Overview
146
+
147
+ Pixal3D is trained as a three-stage cascade, each progressively increasing resolution:
148
+
149
+ | Stage | Model | Resolutions | Config Prefix |
150
+ |-------|-------|-------------|---------------|
151
+ | 1 | Sparse Structure | 32 → 64 | `ss_flow_img_dit_*_proj_finetune` |
152
+ | 2 | Shape | 256 → 512 → 1024 | `slat_flow_img2shape_*_proj_finetune` |
153
+ | 3 | Texture | 256 → 512 → 1024 | `slat_flow_imgshape2tex_*_proj_finetune` |
154
+
155
+ All stages use **pixel-aligned projection conditioning** and **view-aligned latents** (2 views by default). Within each stage, start from the lowest resolution and progressively fine-tune to higher resolutions by setting `finetune_ckpt` in the config.
156
+
157
+ ### Quick Start
158
+
159
+ ```sh
160
+ python train.py \
161
+ --config <CONFIG_JSON> \
162
+ --output_dir <OUTPUT_DIR> \
163
+ --data_dir '<DATA_DIR_JSON>'
164
+ ```
165
+
166
+ `--data_dir` is a JSON string describing the dataset layout. Different stages require different keys:
167
+
168
+ | Stage | Required keys |
169
+ |-------|---------------|
170
+ | Sparse Structure | `base`, `ss_latent`, `render_cond` |
171
+ | Shape | `base`, `shape_latent`, `render_cond` |
172
+ | Texture | `base`, `shape_latent`, `pbr_latent`, `render_cond` |
173
+
174
+ ### Example: Training All Three Stages
175
+
176
+ Below we show the full training sequence using ObjaverseXL as an example. Each higher-resolution step requires updating `finetune_ckpt` in its config JSON to point to the previous checkpoint.
177
+
178
+ <details>
179
+ <summary><b>Stage 1: Sparse Structure (32 → 64)</b></summary>
180
+
181
+ ```sh
182
+ # Resolution 32
183
+ python train.py \
184
+ --config configs/gen/ss_flow_img_dit_1_3B_32_bf16_proj_finetune.json \
185
+ --output_dir results/ss_32 \
186
+ --data_dir '{"ObjaverseXL_sketchfab": {"base": "datasets/ObjaverseXL_sketchfab", "ss_latent": "datasets/ObjaverseXL_sketchfab/ss_latents/ss_enc_conv3d_16l8_fp16_64_view", "render_cond": "datasets/ObjaverseXL_sketchfab/renders_cond"}}'
187
+
188
+ # Resolution 64 (set finetune_ckpt → results/ss_32 checkpoint)
189
+ python train.py \
190
+ --config configs/gen/ss_flow_img_dit_1_3B_32_bf16_proj_finetune_ft64.json \
191
+ --output_dir results/ss_ft64 \
192
+ --data_dir '{"ObjaverseXL_sketchfab": {"base": "datasets/ObjaverseXL_sketchfab", "ss_latent": "datasets/ObjaverseXL_sketchfab/ss_latents/ss_enc_conv3d_16l8_fp16_64_view", "render_cond": "datasets/ObjaverseXL_sketchfab/renders_cond"}}'
193
+ ```
194
+ </details>
195
+
196
+ <details>
197
+ <summary><b>Stage 2: Shape (256 → 512 → 1024)</b></summary>
198
+
199
+ ```sh
200
+ # Resolution 256
201
+ python train.py \
202
+ --config configs/gen/slat_flow_img2shape_dit_1_3B_256_bf16_proj_finetune.json \
203
+ --output_dir results/shape_256 \
204
+ --data_dir '{"ObjaverseXL_sketchfab": {"base": "datasets/ObjaverseXL_sketchfab", "shape_latent": "datasets/ObjaverseXL_sketchfab/shape_latents/shape_enc_next_dc_f16c32_fp16_256_view", "render_cond": "datasets/ObjaverseXL_sketchfab/renders_cond"}}'
205
+
206
+ # Resolution 512
207
+ python train.py \
208
+ --config configs/gen/slat_flow_img2shape_dit_1_3B_256_bf16_proj_finetune_ft512.json \
209
+ --output_dir results/shape_ft512 \
210
+ --data_dir '{"ObjaverseXL_sketchfab": {"base": "datasets/ObjaverseXL_sketchfab", "shape_latent": "datasets/ObjaverseXL_sketchfab/shape_latents/shape_enc_next_dc_f16c32_fp16_512_view", "render_cond": "datasets/ObjaverseXL_sketchfab/renders_cond"}}'
211
+
212
+ # Resolution 1024
213
+ python train.py \
214
+ --config configs/gen/slat_flow_img2shape_dit_1_3B_512_bf16_proj_finetune_ft1024.json \
215
+ --output_dir results/shape_ft1024 \
216
+ --data_dir '{"ObjaverseXL_sketchfab": {"base": "datasets/ObjaverseXL_sketchfab", "shape_latent": "datasets/ObjaverseXL_sketchfab/shape_latents/shape_enc_next_dc_f16c32_fp16_1024_view", "render_cond": "datasets/ObjaverseXL_sketchfab/renders_cond"}}'
217
+ ```
218
+ </details>
219
+
220
+ <details>
221
+ <summary><b>Stage 3: Texture (256 → 512 → 1024)</b></summary>
222
+
223
+ ```sh
224
+ # Resolution 256
225
+ python train.py \
226
+ --config configs/gen/slat_flow_imgshape2tex_dit_1_3B_256_bf16_proj_finetune.json \
227
+ --output_dir results/tex_256 \
228
+ --data_dir '{"ObjaverseXL_sketchfab": {"base": "datasets/ObjaverseXL_sketchfab", "shape_latent": "datasets/ObjaverseXL_sketchfab/shape_latents/shape_enc_next_dc_f16c32_fp16_256_view", "pbr_latent": "datasets/ObjaverseXL_sketchfab/pbr_latents/tex_enc_next_dc_f16c32_fp16_256_view", "render_cond": "datasets/ObjaverseXL_sketchfab/renders_cond"}}'
229
+
230
+ # Resolution 512
231
+ python train.py \
232
+ --config configs/gen/slat_flow_imgshape2tex_dit_1_3B_512_bf16_proj_finetune.json \
233
+ --output_dir results/tex_512 \
234
+ --data_dir '{"ObjaverseXL_sketchfab": {"base": "datasets/ObjaverseXL_sketchfab", "shape_latent": "datasets/ObjaverseXL_sketchfab/shape_latents/shape_enc_next_dc_f16c32_fp16_512_view", "pbr_latent": "datasets/ObjaverseXL_sketchfab/pbr_latents/tex_enc_next_dc_f16c32_fp16_512_view", "render_cond": "datasets/ObjaverseXL_sketchfab/renders_cond"}}'
235
+
236
+ # Resolution 1024
237
+ python train.py \
238
+ --config configs/gen/slat_flow_imgshape2tex_dit_1_3B_512_bf16_proj_finetune_ft1024.json \
239
+ --output_dir results/tex_ft1024 \
240
+ --data_dir '{"ObjaverseXL_sketchfab": {"base": "datasets/ObjaverseXL_sketchfab", "shape_latent": "datasets/ObjaverseXL_sketchfab/shape_latents/shape_enc_next_dc_f16c32_fp16_1024_view", "pbr_latent": "datasets/ObjaverseXL_sketchfab/pbr_latents/tex_enc_next_dc_f16c32_fp16_1024_view", "render_cond": "datasets/ObjaverseXL_sketchfab/renders_cond"}}'
241
+ ```
242
+ </details>
243
+
244
+ ### Additional Options
245
+
246
+ <details>
247
+ <summary><b>All command-line arguments</b></summary>
248
+
249
+ | Argument | Description | Default |
250
+ |----------|-------------|---------|
251
+ | `--config` | Config JSON path | *required* |
252
+ | `--output_dir` | Output directory | *required* |
253
+ | `--data_dir` | Dataset JSON string | `./data/` |
254
+ | `--load_dir` | Checkpoint load directory | `output_dir` |
255
+ | `--ckpt` | Resume from step | `latest` |
256
+ | `--auto_retry` | Retries on failure | `3` |
257
+ | `--tryrun` | Dry run | `false` |
258
+ | `--profile` | Profiling | `false` |
259
+ | `--num_nodes` | Number of nodes | `1` |
260
+ | `--node_rank` | Current node rank | `0` |
261
+ | `--num_gpus` | GPUs per node | all |
262
+ | `--master_addr` | Master address | `localhost` |
263
+ | `--master_port` | Master port | `12666` |
264
+ | `--use_wandb` | Enable W&B logging | `false` |
265
+ | `--wandb_project` | W&B project | `trellis2-training` |
266
+ | `--wandb_name` | W&B run name | basename of `output_dir` |
267
+ | `--wandb_id` | W&B run ID (resume) | — |
268
+
269
+ </details>
270
+
271
+ ## 🌐 Community Projects
272
+
273
+ We thank the community for building extensions and deployment guides for Pixal3D!
274
+
275
+ - [Pixal3D-ComfyUI](https://github.com/Saganaki22/Pixal3D-ComfyUI) — ComfyUI integration with deployment guides for Windows, WSL, and more.
276
+
277
+ ## 🤗 Acknowledgements
278
+
279
+ This project is heavily built upon [Trellis.2](https://github.com/microsoft/TRELLIS.2) and [Direct3D-S2](https://github.com/DreamTechAI/Direct3D-S2). We sincerely thank the authors for their outstanding work on scalable 3D generation , which serves as the foundation of our codebase and model architecture.
280
+
281
+ We also thank the following repos for their great contributions:
282
+
283
+ - [Direct3D-S2](https://github.com/DreamTechAI/Direct3D-S2)
284
+ - [Trellis](https://github.com/microsoft/TRELLIS)
285
+ - [Trellis.2](https://github.com/microsoft/TRELLIS.2)
286
+
287
+ ## 📄 Citation
288
+
289
+ If you find this work useful, please consider citing:
290
+
291
+ ```bibtex
292
+ @article{li2026pixal3d,
293
+ title={Pixal3D: Pixel-Aligned 3D Generation from Images},
294
+ author={Li, Dong-Yang and Zhao, Wang and Chen, Yuxin and Hu, Wenbo and Guo, Meng-Hao and Zhang, Fang-Lue and Shan, Ying and Hu, Shi-Min},
295
+ journal={arXiv preprint arXiv:2605.10922},
296
+ year={2026}
297
+ }
298
+ ```
299
+
300
+ ## 📜 License
301
+
302
+ This project is released under the [MIT License](LICENSE). The third-party components included in this project remain licensed under their respective original terms; see [NOTICE](NOTICE) for the full list of dependencies and their licenses.
ckpts/shape_dec_next_dc_f16c32_fp16.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "FlexiDualGridVaeDecoder",
3
+ "args": {
4
+ "resolution": 256,
5
+ "model_channels": [1024, 512, 256, 128, 64],
6
+ "latent_channels": 32,
7
+ "num_blocks": [4, 16, 8, 4, 0],
8
+ "block_type": [
9
+ "SparseConvNeXtBlock3d",
10
+ "SparseConvNeXtBlock3d",
11
+ "SparseConvNeXtBlock3d",
12
+ "SparseConvNeXtBlock3d",
13
+ "SparseConvNeXtBlock3d"
14
+ ],
15
+ "up_block_type": [
16
+ "SparseResBlockC2S3d",
17
+ "SparseResBlockC2S3d",
18
+ "SparseResBlockC2S3d",
19
+ "SparseResBlockC2S3d"
20
+ ],
21
+ "block_args": [{}, {}, {}, {}, {}],
22
+ "use_fp16": true
23
+ }
24
+ }
ckpts/shape_dec_next_dc_f16c32_fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3b718d3e43e4f8780e9a24ac6fff231811a67e3b058e336e10fe654c911d581
3
+ size 948490494
ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ElasticSLatFlowModel",
3
+ "args": {
4
+ "resolution": 64,
5
+ "in_channels": 32,
6
+ "out_channels": 32,
7
+ "model_channels": 1536,
8
+ "cond_channels": 1024,
9
+ "num_blocks": 30,
10
+ "num_heads": 12,
11
+ "mlp_ratio": 5.3334,
12
+ "pe_mode": "rope",
13
+ "share_mod": true,
14
+ "initialization": "scaled",
15
+ "qk_rms_norm": true,
16
+ "qk_rms_norm_cross": true,
17
+ "image_attn_mode": "proj",
18
+ "proj_in_channels": 2048,
19
+ "dtype": "bfloat16"
20
+ }
21
+ }
ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e6d1df0e62bc5bc863320d1d63d6b996235eef4abb8b851e878c88f316369f1
3
+ size 5546764048
ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ElasticSLatFlowModel",
3
+ "args": {
4
+ "resolution": 32,
5
+ "in_channels": 32,
6
+ "out_channels": 32,
7
+ "model_channels": 1536,
8
+ "cond_channels": 1024,
9
+ "num_blocks": 30,
10
+ "num_heads": 12,
11
+ "mlp_ratio": 5.3334,
12
+ "pe_mode": "rope",
13
+ "share_mod": true,
14
+ "initialization": "scaled",
15
+ "qk_rms_norm": true,
16
+ "qk_rms_norm_cross": true,
17
+ "image_attn_mode": "proj",
18
+ "proj_in_channels": 2048,
19
+ "dtype": "bfloat16"
20
+ }
21
+ }
ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63569838c1da93f010e2fa805b202ecf802cc758830230abac202a81b70e5b45
3
+ size 5546764048
ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ElasticSLatFlowModel",
3
+ "args": {
4
+ "resolution": 64,
5
+ "in_channels": 64,
6
+ "out_channels": 32,
7
+ "model_channels": 1536,
8
+ "cond_channels": 1024,
9
+ "num_blocks": 30,
10
+ "num_heads": 12,
11
+ "mlp_ratio": 5.3334,
12
+ "pe_mode": "rope",
13
+ "share_mod": true,
14
+ "initialization": "scaled",
15
+ "qk_rms_norm": true,
16
+ "qk_rms_norm_cross": true,
17
+ "image_attn_mode": "proj",
18
+ "proj_in_channels": 2048,
19
+ "dtype": "bfloat16"
20
+ }
21
+ }
ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65df179ad02f9e92bc18335d7861fadd95f268e6249217352468dd83cb79d1d0
3
+ size 5546960656
ckpts/ss_dec_conv3d_16l8_fp16.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ {
3
+ "name": "SparseStructureDecoder",
4
+ "args": {
5
+ "out_channels": 1,
6
+ "latent_channels": 8,
7
+ "num_res_blocks": 2,
8
+ "num_res_blocks_middle": 2,
9
+ "channels": [512, 128, 32],
10
+ "use_fp16": true
11
+ }
12
+ }
ckpts/ss_dec_conv3d_16l8_fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c76d4a40519aa2d711cc263a8404105231ac26db31d946bed48b84fee79009a
3
+ size 147591972
ckpts/ss_flow_img_dit_1_3B_64_bf16.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "SparseStructureFlowModel",
3
+ "args": {
4
+ "resolution": 16,
5
+ "in_channels": 8,
6
+ "out_channels": 8,
7
+ "model_channels": 1536,
8
+ "cond_channels": 1024,
9
+ "num_blocks": 30,
10
+ "num_heads": 12,
11
+ "mlp_ratio": 5.3334,
12
+ "pe_mode": "rope",
13
+ "share_mod": true,
14
+ "initialization": "scaled",
15
+ "qk_rms_norm": true,
16
+ "qk_rms_norm_cross": true,
17
+ "image_attn_mode": "proj",
18
+ "dtype": "bfloat16"
19
+ }
20
+ }
ckpts/ss_flow_img_dit_1_3B_64_bf16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d0147bb347eb61fa81c304cc68c7fd69d447e91870357a549b47e1d0fd77242
3
+ size 5359822584
ckpts/tex_dec_next_dc_f16c32_fp16.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "SparseUnetVaeDecoder",
3
+ "args": {
4
+ "out_channels": 6,
5
+ "model_channels": [1024, 512, 256, 128, 64],
6
+ "latent_channels": 32,
7
+ "num_blocks": [4, 16, 8, 4, 0],
8
+ "block_type": [
9
+ "SparseConvNeXtBlock3d",
10
+ "SparseConvNeXtBlock3d",
11
+ "SparseConvNeXtBlock3d",
12
+ "SparseConvNeXtBlock3d",
13
+ "SparseConvNeXtBlock3d"
14
+ ],
15
+ "up_block_type": [
16
+ "SparseResBlockC2S3d",
17
+ "SparseResBlockC2S3d",
18
+ "SparseResBlockC2S3d",
19
+ "SparseResBlockC2S3d"
20
+ ],
21
+ "block_args": [{}, {}, {}, {}, {}],
22
+ "pred_subdiv": false,
23
+ "use_fp16": true
24
+ }
25
+ }
ckpts/tex_dec_next_dc_f16c32_fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97ea69addea2ecd9312910f5f548234665eef51c088386180b7cd5b258645e3c
3
+ size 948458812
pipeline.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Trellis2ImageTo3DPipeline",
3
+ "args": {
4
+ "models": {
5
+ "sparse_structure_decoder": "ckpts/ss_dec_conv3d_16l8_fp16",
6
+ "sparse_structure_flow_model": "ckpts/ss_flow_img_dit_1_3B_64_bf16",
7
+ "shape_slat_decoder": "ckpts/shape_dec_next_dc_f16c32_fp16",
8
+ "shape_slat_flow_model_512": "ckpts/slat_flow_img2shape_dit_1_3B_512_bf16",
9
+ "shape_slat_flow_model_1024": "ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16",
10
+ "tex_slat_decoder": "ckpts/tex_dec_next_dc_f16c32_fp16",
11
+ "tex_slat_flow_model_1024": "ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16"
12
+ },
13
+ "sparse_structure_sampler": {
14
+ "name": "FlowEulerGuidanceIntervalSampler",
15
+ "args": {
16
+ "sigma_min": 1e-5
17
+ },
18
+ "params": {
19
+ "steps": 12,
20
+ "guidance_strength": 7.5,
21
+ "guidance_rescale": 0.7,
22
+ "guidance_interval": [0.6, 1.0],
23
+ "rescale_t": 5.0
24
+ }
25
+ },
26
+ "shape_slat_sampler": {
27
+ "name": "FlowEulerGuidanceIntervalSampler",
28
+ "args": {
29
+ "sigma_min": 1e-5
30
+ },
31
+ "params": {
32
+ "steps": 12,
33
+ "guidance_strength": 7.5,
34
+ "guidance_rescale": 0.5,
35
+ "guidance_interval": [0.6, 1.0],
36
+ "rescale_t": 3.0
37
+ }
38
+ },
39
+ "shape_slat_normalization": {
40
+ "mean": [
41
+ 0.781296, 0.018091, -0.495192, -0.558457, 1.060530, 0.093252, 1.518149, -0.933218,
42
+ -0.732996, 2.604095, -0.118341, -2.143904, 0.495076, -2.179512, -2.130751, -0.996944,
43
+ 0.261421, -2.217463, 1.260067, -0.150213, 3.790713, 1.481266, -1.046058, -1.523667,
44
+ -0.059621, 2.220780, 1.621212, 0.877230, 0.567247, -3.175944, -3.186688, 1.578665
45
+ ],
46
+ "std": [
47
+ 5.972266, 4.706852, 5.445010, 5.209927, 5.320220, 4.547237, 5.020802, 5.444004,
48
+ 5.226681, 5.683095, 4.831436, 5.286469, 5.652043, 5.367606, 5.525084, 4.730578,
49
+ 4.805265, 5.124013, 5.530808, 5.619001, 5.103930, 5.417670, 5.269677, 5.547194,
50
+ 5.634698, 5.235274, 6.110351, 5.511298, 6.237273, 4.879207, 5.347008, 5.405691
51
+ ]
52
+ },
53
+ "tex_slat_sampler": {
54
+ "name": "FlowEulerGuidanceIntervalSampler",
55
+ "args": {
56
+ "sigma_min": 1e-5
57
+ },
58
+ "params": {
59
+ "steps": 12,
60
+ "guidance_strength": 1.0,
61
+ "guidance_rescale": 0.0,
62
+ "guidance_interval": [0.6, 0.9],
63
+ "rescale_t": 3.0
64
+ }
65
+ },
66
+ "tex_slat_normalization": {
67
+ "mean": [
68
+ 3.501659, 2.212398, 2.226094, 0.251093, -0.026248, -0.687364, 0.439898, -0.928075,
69
+ 0.029398, -0.339596, -0.869527, 1.038479, -0.972385, 0.126042, -1.129303, 0.455149,
70
+ -1.209521, 2.069067, 0.544735, 2.569128, -0.323407, 2.293000, -1.925608, -1.217717,
71
+ 1.213905, 0.971588, -0.023631, 0.106750, 2.021786, 0.250524, -0.662387, -0.768862
72
+ ],
73
+ "std": [
74
+ 2.665652, 2.743913, 2.765121, 2.595319, 3.037293, 2.291316, 2.144656, 2.911822,
75
+ 2.969419, 2.501689, 2.154811, 3.163343, 2.621215, 2.381943, 3.186697, 3.021588,
76
+ 2.295916, 3.234985, 3.233086, 2.260140, 2.874801, 2.810596, 3.292720, 2.674999,
77
+ 2.680878, 2.372054, 2.451546, 2.353556, 2.995195, 2.379849, 2.786195, 2.775190
78
+ ]
79
+ },
80
+ "image_cond_model": {
81
+ "name": "DinoV3FeatureExtractor",
82
+ "args": {
83
+ "model_name": "facebook/dinov3-vitl16-pretrain-lvd1689m"
84
+ }
85
+ },
86
+ "rembg_model": {
87
+ "name": "BiRefNet",
88
+ "args": {
89
+ "model_name": "briaai/RMBG-2.0"
90
+ }
91
+ },
92
+ "default_pipeline_type": "1536_cascade"
93
+ }
94
+ }