3d-reconstruction
3d-generation
yawarnihal commited on
Commit
83b7193
Β·
verified Β·
1 Parent(s): f20d30e

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ resources/Teaser.jpg filter=lfs diff=lfs merge=lfs -text
37
+ resources/output_vis_example.jpg filter=lfs diff=lfs merge=lfs -text
019-0-bfloat16.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61b42fbf57e0c5995597f34bba6500edaeea0319be9c9da479ae968855c83b03
3
+ size 2581709625
LICENSE ADDED
@@ -0,0 +1,399 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-NonCommercial 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More_considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution-NonCommercial 4.0 International Public
58
+ License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-NonCommercial 4.0 International Public License ("Public
63
+ License"). To the extent this Public License may be interpreted as a
64
+ contract, You are granted the Licensed Rights in consideration of Your
65
+ acceptance of these terms and conditions, and the Licensor grants You
66
+ such rights in consideration of benefits the Licensor receives from
67
+ making the Licensed Material available under these terms and
68
+ conditions.
69
+
70
+ Section 1 -- Definitions.
71
+
72
+ a. Adapted Material means material subject to Copyright and Similar
73
+ Rights that is derived from or based upon the Licensed Material
74
+ and in which the Licensed Material is translated, altered,
75
+ arranged, transformed, or otherwise modified in a manner requiring
76
+ permission under the Copyright and Similar Rights held by the
77
+ Licensor. For purposes of this Public License, where the Licensed
78
+ Material is a musical work, performance, or sound recording,
79
+ Adapted Material is always produced where the Licensed Material is
80
+ synched in timed relation with a moving image.
81
+
82
+ b. Adapter's License means the license You apply to Your Copyright
83
+ and Similar Rights in Your contributions to Adapted Material in
84
+ accordance with the terms and conditions of this Public License.
85
+
86
+ c. Copyright and Similar Rights means copyright and/or similar rights
87
+ closely related to copyright including, without limitation,
88
+ performance, broadcast, sound recording, and Sui Generis Database
89
+ Rights, without regard to how the rights are labeled or
90
+ categorized. For purposes of this Public License, the rights
91
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
92
+ Rights.
93
+ d. Effective Technological Measures means those measures that, in the
94
+ absence of proper authority, may not be circumvented under laws
95
+ fulfilling obligations under Article 11 of the WIPO Copyright
96
+ Treaty adopted on December 20, 1996, and/or similar international
97
+ agreements.
98
+
99
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
100
+ any other exception or limitation to Copyright and Similar Rights
101
+ that applies to Your use of the Licensed Material.
102
+
103
+ f. Licensed Material means the artistic or literary work, database,
104
+ or other material to which the Licensor applied this Public
105
+ License.
106
+
107
+ g. Licensed Rights means the rights granted to You subject to the
108
+ terms and conditions of this Public License, which are limited to
109
+ all Copyright and Similar Rights that apply to Your use of the
110
+ Licensed Material and that the Licensor has authority to license.
111
+
112
+ h. Licensor means the individual(s) or entity(ies) granting rights
113
+ under this Public License.
114
+
115
+ i. NonCommercial means not primarily intended for or directed towards
116
+ commercial advantage or monetary compensation. For purposes of
117
+ this Public License, the exchange of the Licensed Material for
118
+ other material subject to Copyright and Similar Rights by digital
119
+ file-sharing or similar means is NonCommercial provided there is
120
+ no payment of monetary compensation in connection with the
121
+ exchange.
122
+
123
+ j. Share means to provide material to the public by any means or
124
+ process that requires permission under the Licensed Rights, such
125
+ as reproduction, public display, public performance, distribution,
126
+ dissemination, communication, or importation, and to make material
127
+ available to the public including in ways that members of the
128
+ public may access the material from a place and at a time
129
+ individually chosen by them.
130
+
131
+ k. Sui Generis Database Rights means rights other than copyright
132
+ resulting from Directive 96/9/EC of the European Parliament and of
133
+ the Council of 11 March 1996 on the legal protection of databases,
134
+ as amended and/or succeeded, as well as other essentially
135
+ equivalent rights anywhere in the world.
136
+
137
+ l. You means the individual or entity exercising the Licensed Rights
138
+ under this Public License. Your has a corresponding meaning.
139
+
140
+ Section 2 -- Scope.
141
+
142
+ a. License grant.
143
+
144
+ 1. Subject to the terms and conditions of this Public License,
145
+ the Licensor hereby grants You a worldwide, royalty-free,
146
+ non-sublicensable, non-exclusive, irrevocable license to
147
+ exercise the Licensed Rights in the Licensed Material to:
148
+
149
+ a. reproduce and Share the Licensed Material, in whole or
150
+ in part, for NonCommercial purposes only; and
151
+
152
+ b. produce, reproduce, and Share Adapted Material for
153
+ NonCommercial purposes only.
154
+
155
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
156
+ Exceptions and Limitations apply to Your use, this Public
157
+ License does not apply, and You do not need to comply with
158
+ its terms and conditions.
159
+
160
+ 3. Term. The term of this Public License is specified in Section
161
+ 6(a).
162
+
163
+ 4. Media and formats; technical modifications allowed. The
164
+ Licensor authorizes You to exercise the Licensed Rights in
165
+ all media and formats whether now known or hereafter created,
166
+ and to make technical modifications necessary to do so. The
167
+ Licensor waives and/or agrees not to assert any right or
168
+ authority to forbid You from making technical modifications
169
+ necessary to exercise the Licensed Rights, including
170
+ technical modifications necessary to circumvent Effective
171
+ Technological Measures. For purposes of this Public License,
172
+ simply making modifications authorized by this Section 2(a)
173
+ (4) never produces Adapted Material.
174
+
175
+ 5. Downstream recipients.
176
+
177
+ a. Offer from the Licensor -- Licensed Material. Every
178
+ recipient of the Licensed Material automatically
179
+ receives an offer from the Licensor to exercise the
180
+ Licensed Rights under the terms and conditions of this
181
+ Public License.
182
+
183
+ b. No downstream restrictions. You may not offer or impose
184
+ any additional or different terms or conditions on, or
185
+ apply any Effective Technological Measures to, the
186
+ Licensed Material if doing so restricts exercise of the
187
+ Licensed Rights by any recipient of the Licensed
188
+ Material.
189
+
190
+ 6. No endorsement. Nothing in this Public License constitutes or
191
+ may be construed as permission to assert or imply that You
192
+ are, or that Your use of the Licensed Material is, connected
193
+ with, or sponsored, endorsed, or granted official status by,
194
+ the Licensor or others designated to receive attribution as
195
+ provided in Section 3(a)(1)(A)(i).
196
+
197
+ b. Other rights.
198
+
199
+ 1. Moral rights, such as the right of integrity, are not
200
+ licensed under this Public License, nor are publicity,
201
+ privacy, and/or other similar personality rights; however, to
202
+ the extent possible, the Licensor waives and/or agrees not to
203
+ assert any such rights held by the Licensor to the limited
204
+ extent necessary to allow You to exercise the Licensed
205
+ Rights, but not otherwise.
206
+
207
+ 2. Patent and trademark rights are not licensed under this
208
+ Public License.
209
+
210
+ 3. To the extent possible, the Licensor waives any right to
211
+ collect royalties from You for the exercise of the Licensed
212
+ Rights, whether directly or through a collecting society
213
+ under any voluntary or waivable statutory or compulsory
214
+ licensing scheme. In all other cases the Licensor expressly
215
+ reserves any right to collect such royalties, including when
216
+ the Licensed Material is used other than for NonCommercial
217
+ purposes.
218
+
219
+ Section 3 -- License Conditions.
220
+
221
+ Your exercise of the Licensed Rights is expressly made subject to the
222
+ following conditions.
223
+
224
+ a. Attribution.
225
+
226
+ 1. If You Share the Licensed Material (including in modified
227
+ form), You must:
228
+
229
+ a. retain the following if it is supplied by the Licensor
230
+ with the Licensed Material:
231
+
232
+ i. identification of the creator(s) of the Licensed
233
+ Material and any others designated to receive
234
+ attribution, in any reasonable manner requested by
235
+ the Licensor (including by pseudonym if
236
+ designated);
237
+
238
+ ii. a copyright notice;
239
+
240
+ iii. a notice that refers to this Public License;
241
+
242
+ iv. a notice that refers to the disclaimer of
243
+ warranties;
244
+
245
+ v. a URI or hyperlink to the Licensed Material to the
246
+ extent reasonably practicable;
247
+
248
+ b. indicate if You modified the Licensed Material and
249
+ retain an indication of any previous modifications; and
250
+
251
+ c. indicate the Licensed Material is licensed under this
252
+ Public License, and include the text of, or the URI or
253
+ hyperlink to, this Public License.
254
+
255
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
256
+ reasonable manner based on the medium, means, and context in
257
+ which You Share the Licensed Material. For example, it may be
258
+ reasonable to satisfy the conditions by providing a URI or
259
+ hyperlink to a resource that includes the required
260
+ information.
261
+
262
+ 3. If requested by the Licensor, You must remove any of the
263
+ information required by Section 3(a)(1)(A) to the extent
264
+ reasonably practicable.
265
+
266
+ 4. If You Share Adapted Material You produce, the Adapter's
267
+ License You apply must not prevent recipients of the Adapted
268
+ Material from complying with this Public License.
269
+
270
+ Section 4 -- Sui Generis Database Rights.
271
+
272
+ Where the Licensed Rights include Sui Generis Database Rights that
273
+ apply to Your use of the Licensed Material:
274
+
275
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
276
+ to extract, reuse, reproduce, and Share all or a substantial
277
+ portion of the contents of the database for NonCommercial purposes
278
+ only;
279
+
280
+ b. if You include all or a substantial portion of the database
281
+ contents in a database in which You have Sui Generis Database
282
+ Rights, then the database in which You have Sui Generis Database
283
+ Rights (but not its individual contents) is Adapted Material; and
284
+
285
+ c. You must comply with the conditions in Section 3(a) if You Share
286
+ all or a substantial portion of the contents of the database.
287
+
288
+ For the avoidance of doubt, this Section 4 supplements and does not
289
+ replace Your obligations under this Public License where the Licensed
290
+ Rights include other Copyright and Similar Rights.
291
+
292
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
293
+
294
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
295
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
296
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
297
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
298
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
299
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
300
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
301
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
302
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
303
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
304
+
305
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
306
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
307
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
308
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
309
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
310
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
311
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
312
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
313
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
314
+
315
+ c. The disclaimer of warranties and limitation of liability provided
316
+ above shall be interpreted in a manner that, to the extent
317
+ possible, most closely approximates an absolute disclaimer and
318
+ waiver of all liability.
319
+
320
+ Section 6 -- Term and Termination.
321
+
322
+ a. This Public License applies for the term of the Copyright and
323
+ Similar Rights licensed here. However, if You fail to comply with
324
+ this Public License, then Your rights under this Public License
325
+ terminate automatically.
326
+
327
+ b. Where Your right to use the Licensed Material has terminated under
328
+ Section 6(a), it reinstates:
329
+
330
+ 1. automatically as of the date the violation is cured, provided
331
+ it is cured within 30 days of Your discovery of the
332
+ violation; or
333
+
334
+ 2. upon express reinstatement by the Licensor.
335
+
336
+ For the avoidance of doubt, this Section 6(b) does not affect any
337
+ right the Licensor may have to seek remedies for Your violations
338
+ of this Public License.
339
+
340
+ c. For the avoidance of doubt, the Licensor may also offer the
341
+ Licensed Material under separate terms or conditions or stop
342
+ distributing the Licensed Material at any time; however, doing so
343
+ will not terminate this Public License.
344
+
345
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
346
+ License.
347
+
348
+ Section 7 -- Other Terms and Conditions.
349
+
350
+ a. The Licensor shall not be bound by any additional or different
351
+ terms or conditions communicated by You unless expressly agreed.
352
+
353
+ b. Any arrangements, understandings, or agreements regarding the
354
+ Licensed Material not stated herein are separate from and
355
+ independent of the terms and conditions of this Public License.
356
+
357
+ Section 8 -- Interpretation.
358
+
359
+ a. For the avoidance of doubt, this Public License does not, and
360
+ shall not be interpreted to, reduce, limit, restrict, or impose
361
+ conditions on any use of the Licensed Material that could lawfully
362
+ be made without permission under this Public License.
363
+
364
+ b. To the extent possible, if any provision of this Public License is
365
+ deemed unenforceable, it shall be automatically reformed to the
366
+ minimum extent necessary to make it enforceable. If the provision
367
+ cannot be reformed, it shall be severed from this Public License
368
+ without affecting the enforceability of the remaining terms and
369
+ conditions.
370
+
371
+ c. No term or condition of this Public License will be waived and no
372
+ failure to comply consented to unless expressly agreed to by the
373
+ Licensor.
374
+
375
+ d. Nothing in this Public License constitutes or may be interpreted
376
+ as a limitation upon, or waiver of, any privileges and immunities
377
+ that apply to the Licensor or You, including from the legal
378
+ processes of any jurisdiction or authority.
379
+
380
+ =======================================================================
381
+
382
+ Creative Commons is not a party to its public
383
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
384
+ its public licenses to material it publishes and in those instances
385
+ will be considered the β€œLicensor.” The text of the Creative Commons
386
+ public licenses is dedicated to the public domain under the CC0 Public
387
+ Domain Dedication. Except for the limited purpose of indicating that
388
+ material is shared under a Creative Commons public license or as
389
+ otherwise permitted by the Creative Commons policies published at
390
+ creativecommons.org/policies, Creative Commons does not authorize the
391
+ use of the trademark "Creative Commons" or any other trademark or logo
392
+ of Creative Commons without its prior written consent including,
393
+ without limitation, in connection with any unauthorized modifications
394
+ to any of its public licenses or any other arrangements,
395
+ understandings, or agreements concerning use of licensed material. For
396
+ the avoidance of doubt, this paragraph does not form part of the
397
+ public licenses.
398
+
399
+ Creative Commons may be contacted at creativecommons.org.
NOTICE ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ShapeR - Third-Party Notices and Attributions
2
+ ==============================================
3
+
4
+ This project includes code from several third-party sources, each with their
5
+ own licensing terms as detailed below.
6
+
7
+ ==============================================================================
8
+ 1. DINOv2 (model/dinov2/)
9
+ ==============================================================================
10
+
11
+ The model/dinov2 directory and the dino checkpoints are from Meta AI's DINOv2 project.
12
+
13
+ Source: https://github.com/facebookresearch/dinov2
14
+ License: Apache License 2.0
15
+
16
+ Copyright (c) Meta Platforms, Inc. and affiliates.
17
+
18
+ Licensed under the Apache License, Version 2.0 (the "License");
19
+ you may not use this file except in compliance with the License.
20
+ You may obtain a copy of the License at
21
+
22
+ http://www.apache.org/licenses/LICENSE-2.0
23
+
24
+ Unless required by applicable law or agreed to in writing, software
25
+ distributed under the License is distributed on an "AS IS" BASIS,
26
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
+ See the License for the specific language governing permissions and
28
+ limitations under the License.
29
+
30
+ ==============================================================================
31
+ 2. Flow Matching Library (model/flow_matching/helpers/)
32
+ ==============================================================================
33
+
34
+ The model/flow_matching/helpers directory contains code derived from Meta AI's
35
+ Flow Matching library.
36
+
37
+ Source: https://github.com/facebookresearch/flow_matching
38
+ License: Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
39
+
40
+ Copyright (c) Meta Platforms, Inc. and affiliates.
41
+
42
+ This code is licensed under CC BY-NC 4.0. See:
43
+ http://creativecommons.org/licenses/by-nc/4.0/
44
+
45
+ ==============================================================================
46
+ 3. Flux Dual Stream Transformer (model/flow_matching/dualstream_transformer.py)
47
+ ==============================================================================
48
+
49
+ The dualstream_transformer.py file is inspired by the Flux model's dual stream
50
+ transformer architecture.
51
+
52
+ Source: https://github.com/black-forest-labs/flux
53
+ License: Apache License 2.0
54
+
55
+ Copyright (c) Black Forest Labs.
56
+
57
+ Licensed under the Apache License, Version 2.0.
58
+
59
+ ==============================================================================
60
+ 4. Flux Text Embedder (model/text/hf_embedder.py)
61
+ ==============================================================================
62
+
63
+ The hf_embedder.py file is derived from the Flux conditioner module.
64
+
65
+ Source: https://github.com/black-forest-labs/flux/blob/main/src/flux/modules/conditioner.py
66
+ License: Apache License 2.0
67
+
68
+ Copyright (c) Black Forest Labs.
69
+
70
+ Licensed under the Apache License, Version 2.0.
71
+
72
+ ==============================================================================
73
+ 5. DORA-VAE 3D Autoencoder (model/vae3d/)
74
+ ==============================================================================
75
+
76
+ The model/vae3d directory contains code inspired by the DORA-VAE project.
77
+
78
+ Source: https://github.com/Seed3D/Dora
79
+ License: Apache License 2.0
80
+
81
+ Licensed under the Apache License, Version 2.0.
82
+
83
+ ==============================================================================
84
+ Apache License 2.0 Full Text
85
+ ==============================================================================
86
+
87
+ Apache License
88
+ Version 2.0, January 2004
89
+ http://www.apache.org/licenses/
90
+
91
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
92
+
93
+ 1. Definitions.
94
+
95
+ "License" shall mean the terms and conditions for use, reproduction,
96
+ and distribution as defined by Sections 1 through 9 of this document.
97
+
98
+ "Licensor" shall mean the copyright owner or entity authorized by
99
+ the copyright owner that is granting the License.
100
+
101
+ "Legal Entity" shall mean the union of the acting entity and all
102
+ other entities that control, are controlled by, or are under common
103
+ control with that entity. For the purposes of this definition,
104
+ "control" means (i) the power, direct or indirect, to cause the
105
+ direction or management of such entity, whether by contract or
106
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
107
+ outstanding shares, or (iii) beneficial ownership of such entity.
108
+
109
+ "You" (or "Your") shall mean an individual or Legal Entity
110
+ exercising permissions granted by this License.
111
+
112
+ "Source" form shall mean the preferred form for making modifications,
113
+ including but not limited to software source code, documentation
114
+ source, and configuration files.
115
+
116
+ "Object" form shall mean any form resulting from mechanical
117
+ transformation or translation of a Source form, including but
118
+ not limited to compiled object code, generated documentation,
119
+ and conversions to other media types.
120
+
121
+ "Work" shall mean the work of authorship, whether in Source or
122
+ Object form, made available under the License, as indicated by a
123
+ copyright notice that is included in or attached to the work
124
+ (an example is provided in the Appendix below).
125
+
126
+ "Derivative Works" shall mean any work, whether in Source or Object
127
+ form, that is based on (or derived from) the Work and for which the
128
+ editorial revisions, annotations, elaborations, or other modifications
129
+ represent, as a whole, an original work of authorship. For the purposes
130
+ of this License, Derivative Works shall not include works that remain
131
+ separable from, or merely link (or bind by name) to the interfaces of,
132
+ the Work and Derivative Works thereof.
133
+
134
+ "Contribution" shall mean any work of authorship, including
135
+ the original version of the Work and any modifications or additions
136
+ to that Work or Derivative Works thereof, that is intentionally
137
+ submitted to the Licensor for inclusion in the Work by the copyright owner
138
+ or by an individual or Legal Entity authorized to submit on behalf of
139
+ the copyright owner. For the purposes of this definition, "submitted"
140
+ means any form of electronic, verbal, or written communication sent
141
+ to the Licensor or its representatives, including but not limited to
142
+ communication on electronic mailing lists, source code control systems,
143
+ and issue tracking systems that are managed by, or on behalf of, the
144
+ Licensor for the purpose of discussing and improving the Work, but
145
+ excluding communication that is conspicuously marked or otherwise
146
+ designated in writing by the copyright owner as "Not a Contribution."
147
+
148
+ "Contributor" shall mean Licensor and any individual or Legal Entity
149
+ on behalf of whom a Contribution has been received by Licensor and
150
+ subsequently incorporated within the Work.
151
+
152
+ 2. Grant of Copyright License. Subject to the terms and conditions of
153
+ this License, each Contributor hereby grants to You a perpetual,
154
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
155
+ copyright license to reproduce, prepare Derivative Works of,
156
+ publicly display, publicly perform, sublicense, and distribute the
157
+ Work and such Derivative Works in Source or Object form.
158
+
159
+ 3. Grant of Patent License. Subject to the terms and conditions of
160
+ this License, each Contributor hereby grants to You a perpetual,
161
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
162
+ (except as stated in this section) patent license to make, have made,
163
+ use, offer to sell, sell, import, and otherwise transfer the Work,
164
+ where such license applies only to those patent claims licensable
165
+ by such Contributor that are necessarily infringed by their
166
+ Contribution(s) alone or by combination of their Contribution(s)
167
+ with the Work to which such Contribution(s) was submitted. If You
168
+ institute patent litigation against any entity (including a
169
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
170
+ or a Contribution incorporated within the Work constitutes direct
171
+ or contributory patent infringement, then any patent licenses
172
+ granted to You under this License for that Work shall terminate
173
+ as of the date such litigation is filed.
174
+
175
+ 4. Redistribution. You may reproduce and distribute copies of the
176
+ Work or Derivative Works thereof in any medium, with or without
177
+ modifications, and in Source or Object form, provided that You
178
+ meet the following conditions:
179
+
180
+ (a) You must give any other recipients of the Work or
181
+ Derivative Works a copy of this License; and
182
+
183
+ (b) You must cause any modified files to carry prominent notices
184
+ stating that You changed the files; and
185
+
186
+ (c) You must retain, in the Source form of any Derivative Works
187
+ that You distribute, all copyright, patent, trademark, and
188
+ attribution notices from the Source form of the Work,
189
+ excluding those notices that do not pertain to any part of
190
+ the Derivative Works; and
191
+
192
+ (d) If the Work includes a "NOTICE" text file as part of its
193
+ distribution, then any Derivative Works that You distribute must
194
+ include a readable copy of the attribution notices contained
195
+ within such NOTICE file, excluding those notices that do not
196
+ pertain to any part of the Derivative Works, in at least one
197
+ of the following places: within a NOTICE text file distributed
198
+ as part of the Derivative Works; within the Source form or
199
+ documentation, if provided along with the Derivative Works; or,
200
+ within a display generated by the Derivative Works, if and
201
+ wherever such third-party notices normally appear. The contents
202
+ of the NOTICE file are for informational purposes only and
203
+ do not modify the License. You may add Your own attribution
204
+ notices within Derivative Works that You distribute, alongside
205
+ or as an addendum to the NOTICE text from the Work, provided
206
+ that such additional attribution notices cannot be construed
207
+ as modifying the License.
208
+
209
+ You may add Your own copyright statement to Your modifications and
210
+ may provide additional or different license terms and conditions
211
+ for use, reproduction, or distribution of Your modifications, or
212
+ for any such Derivative Works as a whole, provided Your use,
213
+ reproduction, and distribution of the Work otherwise complies with
214
+ the conditions stated in this License.
215
+
216
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
217
+ any Contribution intentionally submitted for inclusion in the Work
218
+ by You to the Licensor shall be under the terms and conditions of
219
+ this License, without any additional terms or conditions.
220
+ Notwithstanding the above, nothing herein shall supersede or modify
221
+ the terms of any separate license agreement you may have executed
222
+ with Licensor regarding such Contributions.
223
+
224
+ 6. Trademarks. This License does not grant permission to use the trade
225
+ names, trademarks, service marks, or product names of the Licensor,
226
+ except as required for reasonable and customary use in describing the
227
+ origin of the Work and reproducing the content of the NOTICE file.
228
+
229
+ 7. Disclaimer of Warranty. Unless required by applicable law or
230
+ agreed to in writing, Licensor provides the Work (and each
231
+ Contributor provides its Contributions) on an "AS IS" BASIS,
232
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
233
+ implied, including, without limitation, any warranties or conditions
234
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
235
+ PARTICULAR PURPOSE. You are solely responsible for determining the
236
+ appropriateness of using or redistributing the Work and assume any
237
+ risks associated with Your exercise of permissions under this License.
238
+
239
+ 8. Limitation of Liability. In no event and under no legal theory,
240
+ whether in tort (including negligence), contract, or otherwise,
241
+ unless required by applicable law (such as deliberate and grossly
242
+ negligent acts) or agreed to in writing, shall any Contributor be
243
+ liable to You for damages, including any direct, indirect, special,
244
+ incidental, or consequential damages of any character arising as a
245
+ result of this License or out of the use or inability to use the
246
+ Work (including but not limited to damages for loss of goodwill,
247
+ work stoppage, computer failure or malfunction, or any and all
248
+ other commercial damages or losses), even if such Contributor
249
+ has been advised of the possibility of such damages.
250
+
251
+ 9. Accepting Warranty or Additional Liability. While redistributing
252
+ the Work or Derivative Works thereof, You may choose to offer,
253
+ and charge a fee for, acceptance of support, warranty, indemnity,
254
+ or other liability obligations and/or rights consistent with this
255
+ License. However, in accepting such obligations, You may act only
256
+ on Your own behalf and on Your sole responsibility, not on behalf
257
+ of any other Contributor, and only if You agree to indemnify,
258
+ defend, and hold each Contributor harmless for any liability
259
+ incurred by, or claims asserted against, such Contributor by reason
260
+ of your accepting any such warranty or additional liability.
261
+
262
+ END OF TERMS AND CONDITIONS
README.md CHANGED
@@ -1,3 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
  language:
@@ -6,4 +92,4 @@ tags:
6
  - 3d-reconstruction
7
  - 3d-generation
8
  - generative-ai
9
- ---
 
1
+ # ShapeR
2
+
3
+ ![teaser](resources/Teaser.jpg)
4
+
5
+ ShapeR introduces a novel approach to metric shape generation. Given an input image sequence, preprocessing extracts per-object metric sparse SLAM points, images, poses, and captions using off-the-shelf methods. A rectified flow transformer operating on VecSet latents conditions on these multimodal inputs to generate a shape code, which is decoded into the object’s mesh. By
6
+ applying the model object-centrically to each detected object, we obtain a metric reconstruction of the entire scene.
7
+
8
+ [Repository](https://github.com/facebookresearch/ShapeR) | [Paper]()
9
+
10
+ ## Usage
11
+
12
+ Clone the [repository](https://github.com/facebookresearch/ShapeR) and follow the INSTALL.md instructions to install the required dependencies.
13
+
14
+ ### Inference
15
+
16
+ ```bash
17
+ python infer_shape.py --input_pkl <sample.pkl> --config balance --output_dir output
18
+ ```
19
+
20
+ **Arguments:**
21
+ - `--input_pkl`: Path to preprocessed pickle file (relative to `data/`)
22
+ - `--config`: Preset configuration
23
+ - `quality`: 16 views, 50 steps (best quality, slowest)
24
+ - `balance`: 16 views, 25 steps (recommended)
25
+ - `speed`: 4 views, 10 steps (fastest)
26
+ - `--output_dir`: Output directory for meshes and visualizations
27
+ - `--do_transform_to_world`: Transform output mesh to world coordinates
28
+ - `--remove_floating_geometry`: Remove disconnected mesh components (default: on)
29
+ - `--simplify_mesh`: Reduce mesh complexity (default: on)
30
+ - `--save_visualization`: Save comparison visualization (default: on)
31
+
32
+ ### Example
33
+
34
+ ```bash
35
+ python infer_shape.py --input_pkl gaia_29093018117008733__20250415_125853.pkl --config balance
36
+ ```
37
+
38
+ **Output:**
39
+ - `<name>.glb`: Reconstructed 3D mesh
40
+ - `VIS__<name>.jpg`: Visualization comparing input, prediction, and ground truth
41
+
42
+ ![Example visualization](resources/output_vis_example.jpg)
43
+
44
+ ## Data Format
45
+
46
+ This codebase assumes that A sequence has already been processed using the Aria MPS pipeline, along with an 3D object instance detector, resulting in the pickle files with the preprocessed data required for ShapeR ingestion.
47
+
48
+ We release the [**ShapeR Evaluation Dataset**](https://huggingface.co/datasets/facebook/ShapeR-Evaluation) containing preprocessed samples from Aria glasses captures. Each sample is a pickle file with point clouds, multi-view images, camera parameters, text captions, and ground truth meshes.
49
+
50
+ For a detailed walkthrough of the data format, see the **[`explore_data.ipynb`](https://github.com/facebookresearch/ShapeR/blob/main/explore_data.ipynb)** notebook which includes:
51
+ - Complete pickle file structure with all keys and their dimensions
52
+ - Interactive 3D visualization of point clouds and meshes
53
+ - Camera position visualization
54
+ - Image and mask grid displays
55
+ - DataLoader usage examples for both SLAM and RGB variants
56
+ - Explanation of view selection strategies
57
+
58
+ ## Project Structure
59
+
60
+ ```
61
+ ShapeR/
62
+ β”œβ”€β”€ infer_shape.py # Main inference script
63
+ β”œβ”€β”€ explore_data.ipynb # Data exploration notebook
64
+ β”œβ”€β”€ dataset/
65
+ β”‚ β”œβ”€β”€ shaper_dataset.py # Dataset and dataloader
66
+ β”‚ β”œβ”€β”€ image_processor.py # View selection and image preprocessing
67
+ β”‚ └── point_cloud.py # Point cloud to SparseTensor
68
+ β”œβ”€β”€ model/
69
+ β”‚ β”œβ”€β”€ flow_matching/
70
+ β”‚ β”‚ └── shaper_denoiser.py # Flow matching denoiser
71
+ β”‚ β”œβ”€β”€ vae3d/
72
+ β”‚ β”‚ └── autoencoder.py # 3D VAE for mesh generation
73
+ β”‚ β”œβ”€β”€ pointcloud_encoder.py # Sparse 3D convolution encoder
74
+ β”‚ └── dino_and_ray_feature_extractor.py # Image feature extraction
75
+ β”œβ”€β”€ preprocessing/
76
+ β”‚ └── helper.py # Fisheye rectification, camera utils
77
+ β”œβ”€β”€ postprocessing/
78
+ β”‚ └── helper.py # Mesh cleanup, visualization
79
+ β”œβ”€β”€ checkpoints/ # Model weights (downloaded automatically)
80
+ └── data/ # Input pickle files
81
+ ```
82
+
83
+ ## License
84
+
85
+ The ShapeR model are licensed under CC-BY-NC. See the [LICENSE](LICENSE) file for details. However portions of the project use checkpoints under separate license terms: see [NOTICE](NOTICE). e.g. DinoV2 is licensed under Apache-2.0 license.
86
+
87
  ---
88
  license: cc-by-nc-4.0
89
  language:
 
92
  - 3d-reconstruction
93
  - 3d-generation
94
  - generative-ai
95
+ ---
config.yaml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ encoder:
2
+ type: point_image_text
3
+ x0_mode: random
4
+ num_bins: 256
5
+ input_channels: 3
6
+ d_model: 768
7
+ conv_layers:
8
+ - 32
9
+ - 64
10
+ - 128
11
+ - 256
12
+ dino_image_size: 280
13
+ dino_mask_inject: true
14
+ dino_rot90inputs: true
15
+ dino_use_giant_model: true
16
+ dino_legacy_upsample: false
17
+ use_pre_text_attn_blocks: true
18
+ use_sam2_features: false
19
+ fm_transformer:
20
+ hidden_size: 1024
21
+ num_heads: 16
22
+ mlp_ratio: 2.0
23
+ qkv_bias: true
24
+ depth: 16
25
+ depth_single_blocks: 32
26
+ time_sampler: flux
27
+ vae:
28
+ embed_dim: 64
29
+ dataset:
30
+ load_image_mode: composite
31
+ num_views: 2
32
+ variable_num_views: false
33
+ semi_dense_threshold_theta: 0.002
34
+ semi_dense_threshold_phi: 0.01
dinov2_vitl14_reg4_pretrain.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36e4deffbaef061a2576705b0c36f93621e2ae20bf6274694821b0b492551b51
3
+ size 1217607321
resources/Teaser.jpg ADDED

Git LFS Details

  • SHA256: 9687a785d63799646b0787fb74c216802cc1cb14a63715a5f2d6b83d07c5a828
  • Pointer size: 131 Bytes
  • Size of remote file: 353 kB
resources/output_vis_example.jpg ADDED

Git LFS Details

  • SHA256: dac4a1be76fea5e2b70cd78e02fc48f3096803803d9ff0e00309ea035f3edaaf
  • Pointer size: 131 Bytes
  • Size of remote file: 188 kB
vae-088-0-bfloat16.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd55f48bf291e3f783ef1a17c96331ba5dc81f93422f4e98008c5315e05bb196
3
+ size 383306451
vae-config.yaml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vae:
2
+ use_downsample: true
3
+ num_latents: 256
4
+ point_feats: 3
5
+ out_dim: 1
6
+ embed_dim: 64
7
+ width: 768
8
+ heads: 12
9
+ num_encoder_layers: 8
10
+ num_decoder_layers: 16
11
+ init_scale: 0.25
12
+ qkv_bias: false
13
+ use_ln_post: true
14
+ use_udf_extraction: true
15
+ token_scales:
16
+ - 128.0
17
+ - 256.0
18
+ - 384.0
19
+ - 512.0
20
+ - 640.0
21
+ - 1024.0
22
+ - 2048.0
23
+ token_probability:
24
+ - 0.025
25
+ - 0.025
26
+ - 0.025
27
+ - 0.025
28
+ - 0.05
29
+ - 0.2
30
+ - 0.65