suvadityamuk HF Staff commited on
Commit
332cfec
·
verified ·
1 Parent(s): b6397ed

Convert facebook/sam-3d-objects with diffusers-3d 0.1.0.dev0

Browse files
LICENSE-SAM ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SAM License
2
+ Last Updated: November 19, 2025
3
+
4
+ “Agreement” means the terms and conditions for use, reproduction, distribution and modification of the SAM Materials set forth herein.
5
+
6
+ “SAM Materials” means, collectively, Documentation and the models, software and algorithms, including machine-learning model code, trained model weights, inference-enabling code, training-enabling code, fine-tuning enabling code, and other elements of the foregoing distributed by Meta and made available under this Agreement.
7
+
8
+ “Documentation” means the specifications, manuals and documentation accompanying
9
+ SAM Materials distributed by Meta.
10
+
11
+ “Licensee” or “you” means you, or your employer or any other person or entity (if you are entering into this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or regulations to provide legal consent and that has legal authority to bind your employer or such other person or entity if you are entering in this Agreement on their behalf.
12
+
13
+ “Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your principal place of business is in the EEA or Switzerland) or Meta Platforms, Inc. (if you are located outside of the EEA or Switzerland).
14
+
15
+ “Sanctions” means any economic or trade sanctions or restrictions administered or enforced by the United States (including the Office of Foreign Assets Control of the U.S. Department of the Treasury (“OFAC”), the U.S. Department of State and the U.S. Department of Commerce), the United Nations, the European Union, or the United Kingdom.
16
+
17
+ “Trade Controls” means any of the following: Sanctions and applicable export and import controls.
18
+
19
+ By using or distributing any portion or element of the SAM Materials, you agree to be bound by this Agreement.
20
+
21
+ 1. License Rights and Redistribution.
22
+
23
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable and royalty-free limited license under Meta’s intellectual property or other rights owned by Meta embodied in the SAM Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the SAM Materials.
24
+
25
+ i. Grant of Patent License. Subject to the terms and conditions of this License, you are granted 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 Meta that are necessarily infringed alone or by combination of their contribution(s) with the SAM 3 Materials. If you institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the SAM 3 Materials 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.
26
+
27
+ b. Redistribution and Use.
28
+
29
+ i. Distribution of SAM Materials, and any derivative works thereof, are subject to the terms of this Agreement. If you distribute or make the SAM Materials, or any derivative works thereof, available to a third party, you may only do so under the terms of this Agreement and you shall provide a copy of this Agreement with any such SAM Materials.
30
+
31
+ ii. If you submit for publication the results of research you perform on, using, or otherwise in connection with SAM Materials, you must acknowledge the use of SAM Materials in your publication.
32
+
33
+ iii. Your use of the SAM Materials must comply with applicable laws and regulations, including Trade Control Laws and applicable privacy and data protection laws.
34
+ iv. Your use of the SAM Materials will not involve or encourage others to reverse engineer, decompile or discover the underlying components of the SAM Materials.
35
+ v. You are not the target of Trade Controls and your use of SAM Materials must comply with Trade Controls. You agree not to use, or permit others to use, SAM Materials for any activities subject to the International Traffic in Arms Regulations (ITAR) or end uses prohibited by Trade Controls, including those related to military or warfare purposes, nuclear industries or applications, espionage, or the development or use of guns or illegal weapons.
36
+ 2. User Support. Your use of the SAM Materials is done at your own discretion; Meta does not process any information nor provide any service in relation to such use. Meta is under no obligation to provide any support services for the SAM Materials. Any support provided is “as is”, “with all faults”, and without warranty of any kind.
37
+
38
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE SAM MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE SAM MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE SAM MATERIALS AND ANY OUTPUT AND RESULTS.
39
+
40
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY DIRECT OR INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
41
+
42
+ 5. Intellectual Property.
43
+
44
+ a. Subject to Meta’s ownership of SAM Materials and derivatives made by or for Meta, with respect to any derivative works and modifications of the SAM Materials that are made by you, as between you and Meta, you are and will be the owner of such derivative works and modifications.
45
+
46
+ b. If you institute litigation or other proceedings against Meta or any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the SAM Materials, outputs or results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other rights owned or licensable by you, then any licenses granted to you under this Agreement shall terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold harmless Meta from and against any claim by any third party arising out of or related to your use or distribution of the SAM Materials.
47
+
48
+ 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this Agreement or access to the SAM Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete and cease use of the SAM Materials. Sections 3, 4 and 7 shall survive the termination of this Agreement.
49
+
50
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of the State of California without regard to choice of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement. The courts of California shall have exclusive jurisdiction of any dispute arising out of this Agreement.
51
+
52
+ 8. Modifications and Amendments. Meta may modify this Agreement from time to time; provided that they are similar in spirit to the current version of the Agreement, but may differ in detail to address new problems or concerns. All such changes will be effective immediately. Your continued use of the SAM Materials after any modification to this Agreement constitutes your agreement to such modification. Except as provided in this Agreement, no modification or addition to any provision of this Agreement will be binding unless it is in writing and signed by an authorized representative of both you and Meta.
NOTICE ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Meta SAM 3D Objects integration notice
2
+
3
+ The mixture-of-transformers sparse-structure flow, condition embedders, image, mask and pointmap preprocessing, layout
4
+ decoding, sparse-structure pruning and downsampling, sampler settings, and checkpoint key mapping in this directory are
5
+ modified from:
6
+
7
+ facebookresearch/sam-3d-objects
8
+ https://github.com/facebookresearch/sam-3d-objects
9
+ revision f91db411c50efee93d8db7aeb323885650f6f722
10
+
11
+ Those portions are SAM Materials provided under the accompanying SAM License (LICENSE-SAM):
12
+
13
+ SAM License, Last Updated: November 19, 2025
14
+ Copyright (c) Meta Platforms, Inc. and affiliates.
15
+
16
+ The SAM License is not an open-source license; it restricts certain uses and requires that a copy of it accompany any
17
+ redistribution of SAM Materials or derivative works. If you publish research results obtained with these materials,
18
+ you must acknowledge their use. All ported source files carry a prominent modification notice.
19
+
20
+ The released checkpoint (facebook/sam-3d-objects) is distributed by Meta under the same SAM License and is not
21
+ included in this package. It embeds DINOv2 ViT-L/14 (with registers) image encoders; DINOv2 was originally released
22
+ by Meta under the Apache License 2.0.
23
+
24
+ The TRELLIS stages this family reuses (sparse-structure decoder, structured-latent flow, Gaussian and mesh decoders,
25
+ scheduler) live in ../trellis and keep their MIT License and notice. Independently written diffusers-3d package glue
26
+ remains under the package Apache-2.0 license. No affiliation, sponsorship, or endorsement by Meta is claimed.
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: sam-license
4
+ license_link: https://huggingface.co/suvadityamuk/sam-3d-objects-diffusers-3d/blob/main/LICENSE-SAM
5
+ base_model: facebook/sam-3d-objects
6
+ pipeline_tag: image-to-3d
7
+ tags:
8
+ - diffusers-3d
9
+ - sam3d-objects
10
+ - 3d
11
+ - image-to-3d
12
+ ---
13
+
14
+ # SAM 3D Objects for diffusers-3d
15
+
16
+ [facebook/sam-3d-objects](https://huggingface.co/facebook/sam-3d-objects) converted into a [diffusers-3d](https://github.com/suvadityamuk/diffusers)
17
+ pipeline: ordinary Diffusers and Transformers component folders plus the `object3d_model_index.json` sidecar that
18
+ the package's auto-loader validates before downloading anything. Nothing here requires remote code.
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ pip install git+https://github.com/suvadityamuk/diffusers.git
24
+ pip install "git+https://github.com/suvadityamuk/diffusers.git#subdirectory=packages/diffusers-3d"
25
+ ```
26
+
27
+ `diffusers-3d` runs every network in plain PyTorch on CPU or GPU. Rendering Gaussian splats needs the optional
28
+ `gsplat` backend; the PBR-textured mesh for TRELLIS.2 needs CuMesh (see the package docs).
29
+
30
+ ## Usage
31
+
32
+ ```python
33
+ import torch
34
+ from diffusers_3d import AutoPipelineForImageTo3D, ImageCondition
35
+
36
+ pipeline = AutoPipelineForImageTo3D.from_pretrained("suvadityamuk/sam-3d-objects-diffusers-3d").to("cuda")
37
+ output = pipeline(ImageCondition(image=rgb, mask=mask), formats=("gaussian", "mesh"))
38
+ gaussians, mesh = output.objects
39
+ ```
40
+
41
+ `rgb` is a `(3, H, W)` tensor in `[0, 1]` and `mask` a `(1, H, W)` tensor selecting the object. The object comes back placed in the input camera's frame. Pass `pointmap=` (camera-space points per pixel) to use depth; without it the pointmap tokens are zero, as in the model's training dropout.
42
+
43
+ ## Components
44
+
45
+ | Folder | Class |
46
+ |---|---|
47
+ | `gaussian_decoder` | `diffusers_3d.families.trellis.decoders.TrellisSLatGaussianDecoder` |
48
+ | `image_encoder` | `transformers.Dinov2WithRegistersModel` |
49
+ | `mesh_decoder` | `diffusers_3d.families.trellis.decoders.TrellisSLatMeshDecoder` |
50
+ | `slat_conditioner` | `diffusers_3d.families.sam3d_objects.conditioner.Sam3DConditionEmbedder` |
51
+ | `slat_flow_model` | `diffusers_3d.families.trellis.models.TrellisSLatFlowModel` |
52
+ | `slat_scheduler` | `diffusers_3d.families.trellis.scheduler.TrellisFlowEulerScheduler` |
53
+ | `sparse_structure_conditioner` | `diffusers_3d.families.sam3d_objects.conditioner.Sam3DConditionEmbedder` |
54
+ | `sparse_structure_decoder` | `diffusers_3d.families.trellis.decoders.TrellisSparseStructureDecoder` |
55
+ | `sparse_structure_flow_model` | `diffusers_3d.families.sam3d_objects.models.Sam3DSparseStructureFlowModel` |
56
+ | `sparse_structure_scheduler` | `diffusers_3d.families.trellis.scheduler.TrellisFlowEulerScheduler` |
57
+
58
+ ## Provenance
59
+
60
+ Converted with `diffusers-3d-convert-sam3d` from `diffusers-3d 0.1.0.dev0`; the package's family README lists the pinned upstream
61
+ revisions and how the conversion maps each tensor. Parity tests against the pinned upstream code are part of the
62
+ package test suite.
63
+
64
+ ## License and attribution
65
+
66
+ SAM 3D Objects weights and code: SAM License, Copyright (c) Meta Platforms, Inc. and affiliates.
67
+ This repository redistributes converted SAM Materials under that Agreement, a copy of which is in `LICENSE-SAM`;
68
+ by using these files you agree to it. It is not an open-source license: it forbids military, warfare, nuclear,
69
+ espionage, and weapons uses and use by parties subject to trade controls, and publications using the model must
70
+ acknowledge it. Not affiliated with or endorsed by Meta.
gaussian_decoder/config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "TrellisSLatGaussianDecoder",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "attn_mode": "swin",
5
+ "latent_channels": 8,
6
+ "mlp_ratio": 4,
7
+ "model_channels": 768,
8
+ "num_blocks": 12,
9
+ "num_head_channels": 64,
10
+ "num_heads": 12,
11
+ "pe_mode": "ape",
12
+ "qk_rms_norm": false,
13
+ "representation_config": {
14
+ "2d_filter_kernel_size": 0.1,
15
+ "3d_filter_kernel_size": 0.0009,
16
+ "lr": {
17
+ "_features_dc": 1.0,
18
+ "_opacity": 1.0,
19
+ "_rotation": 0.1,
20
+ "_scaling": 1.0,
21
+ "_xyz": 1.0
22
+ },
23
+ "num_gaussians": 32,
24
+ "opacity_bias": 0.1,
25
+ "perturb_offset": true,
26
+ "scaling_activation": "softplus",
27
+ "scaling_bias": 0.004,
28
+ "voxel_size": 1.5
29
+ },
30
+ "resolution": 64,
31
+ "use_checkpoint": false,
32
+ "use_fp16": true,
33
+ "window_size": 8
34
+ }
gaussian_decoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c32191644c937838c463011660320ee7b6f34c48f92b4e6bbed8fad6488b6178
3
+ size 171450984
image_encoder/config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_layernorm": true,
3
+ "architectures": [
4
+ "Dinov2WithRegistersModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "drop_path_rate": 0.0,
8
+ "dtype": "float32",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 1024,
12
+ "image_size": 518,
13
+ "initializer_range": 0.02,
14
+ "layer_norm_eps": 1e-06,
15
+ "layerscale_value": 1.0,
16
+ "mlp_ratio": 4,
17
+ "model_type": "dinov2_with_registers",
18
+ "num_attention_heads": 16,
19
+ "num_channels": 3,
20
+ "num_hidden_layers": 24,
21
+ "num_register_tokens": 4,
22
+ "out_features": [
23
+ "stage24"
24
+ ],
25
+ "out_indices": [
26
+ 24
27
+ ],
28
+ "patch_size": 14,
29
+ "qkv_bias": true,
30
+ "reshape_hidden_states": true,
31
+ "stage_names": [
32
+ "stem",
33
+ "stage1",
34
+ "stage2",
35
+ "stage3",
36
+ "stage4",
37
+ "stage5",
38
+ "stage6",
39
+ "stage7",
40
+ "stage8",
41
+ "stage9",
42
+ "stage10",
43
+ "stage11",
44
+ "stage12",
45
+ "stage13",
46
+ "stage14",
47
+ "stage15",
48
+ "stage16",
49
+ "stage17",
50
+ "stage18",
51
+ "stage19",
52
+ "stage20",
53
+ "stage21",
54
+ "stage22",
55
+ "stage23",
56
+ "stage24"
57
+ ],
58
+ "transformers_version": "5.19.0",
59
+ "use_swiglu_ffn": false
60
+ }
image_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edccedab2c4e164e80833096de89a32a6e8d7365870499a066a61dbc8894b42b
3
+ size 1217539376
mesh_decoder/config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "TrellisSLatMeshDecoder",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "attn_mode": "swin",
5
+ "latent_channels": 8,
6
+ "mlp_ratio": 4,
7
+ "model_channels": 768,
8
+ "num_blocks": 12,
9
+ "num_groups": 32,
10
+ "num_head_channels": 64,
11
+ "num_heads": 12,
12
+ "pe_mode": "ape",
13
+ "qk_rms_norm": false,
14
+ "representation_config": {
15
+ "use_color": true
16
+ },
17
+ "resolution": 64,
18
+ "use_checkpoint": false,
19
+ "use_fp16": true,
20
+ "window_size": 8
21
+ }
mesh_decoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dacb74e023020eed14e0f06ac217c80e9968659395696f474343113522fd22de
3
+ size 181898516
model_index.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Sam3DObjectsPipeline",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "gaussian_decoder": [
5
+ "diffusers_3d.families.trellis.decoders",
6
+ "TrellisSLatGaussianDecoder"
7
+ ],
8
+ "image_encoder": [
9
+ "transformers",
10
+ "Dinov2WithRegistersModel"
11
+ ],
12
+ "mesh_decoder": [
13
+ "diffusers_3d.families.trellis.decoders",
14
+ "TrellisSLatMeshDecoder"
15
+ ],
16
+ "slat_conditioner": [
17
+ "diffusers_3d.families.sam3d_objects.conditioner",
18
+ "Sam3DConditionEmbedder"
19
+ ],
20
+ "slat_flow_model": [
21
+ "diffusers_3d.families.trellis.models",
22
+ "TrellisSLatFlowModel"
23
+ ],
24
+ "slat_mean": [
25
+ 0.12211431,
26
+ 0.37204156,
27
+ -1.26521907,
28
+ -2.05276058,
29
+ -3.10432536,
30
+ -0.11294304,
31
+ -0.85146744,
32
+ 0.45506954
33
+ ],
34
+ "slat_scheduler": [
35
+ "diffusers_3d.families.trellis.scheduler",
36
+ "TrellisFlowEulerScheduler"
37
+ ],
38
+ "slat_std": [
39
+ 2.37326008,
40
+ 2.13174402,
41
+ 2.2413953,
42
+ 2.30589401,
43
+ 2.1191894,
44
+ 1.8969511,
45
+ 2.41684989,
46
+ 2.08374642
47
+ ],
48
+ "sparse_structure_conditioner": [
49
+ "diffusers_3d.families.sam3d_objects.conditioner",
50
+ "Sam3DConditionEmbedder"
51
+ ],
52
+ "sparse_structure_decoder": [
53
+ "diffusers_3d.families.trellis.decoders",
54
+ "TrellisSparseStructureDecoder"
55
+ ],
56
+ "sparse_structure_flow_model": [
57
+ "diffusers_3d.families.sam3d_objects.models",
58
+ "Sam3DSparseStructureFlowModel"
59
+ ],
60
+ "sparse_structure_scheduler": [
61
+ "diffusers_3d.families.trellis.scheduler",
62
+ "TrellisFlowEulerScheduler"
63
+ ]
64
+ }
object3d_model_index.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "expected_class": "diffusers_3d.families.trellis.decoders.TrellisSLatGaussianDecoder",
5
+ "loading_eligible": true,
6
+ "name": "gaussian_decoder",
7
+ "optional": true,
8
+ "review_status": "reviewed",
9
+ "subfolder": "gaussian_decoder"
10
+ },
11
+ {
12
+ "expected_class": "transformers.models.dinov2_with_registers.modeling_dinov2_with_registers.Dinov2WithRegistersModel",
13
+ "loading_eligible": true,
14
+ "name": "image_encoder",
15
+ "optional": false,
16
+ "review_status": "reviewed",
17
+ "subfolder": "image_encoder"
18
+ },
19
+ {
20
+ "expected_class": "diffusers_3d.families.trellis.decoders.TrellisSLatMeshDecoder",
21
+ "loading_eligible": true,
22
+ "name": "mesh_decoder",
23
+ "optional": true,
24
+ "review_status": "reviewed",
25
+ "subfolder": "mesh_decoder"
26
+ },
27
+ {
28
+ "expected_class": "diffusers_3d.families.sam3d_objects.conditioner.Sam3DConditionEmbedder",
29
+ "loading_eligible": true,
30
+ "name": "slat_conditioner",
31
+ "optional": true,
32
+ "review_status": "reviewed",
33
+ "subfolder": "slat_conditioner"
34
+ },
35
+ {
36
+ "expected_class": "diffusers_3d.families.trellis.models.TrellisSLatFlowModel",
37
+ "loading_eligible": true,
38
+ "name": "slat_flow_model",
39
+ "optional": true,
40
+ "review_status": "reviewed",
41
+ "subfolder": "slat_flow_model"
42
+ },
43
+ {
44
+ "expected_class": "diffusers_3d.families.trellis.scheduler.TrellisFlowEulerScheduler",
45
+ "loading_eligible": true,
46
+ "name": "slat_scheduler",
47
+ "optional": true,
48
+ "review_status": "reviewed",
49
+ "subfolder": "slat_scheduler"
50
+ },
51
+ {
52
+ "expected_class": "diffusers_3d.families.sam3d_objects.conditioner.Sam3DConditionEmbedder",
53
+ "loading_eligible": true,
54
+ "name": "sparse_structure_conditioner",
55
+ "optional": false,
56
+ "review_status": "reviewed",
57
+ "subfolder": "sparse_structure_conditioner"
58
+ },
59
+ {
60
+ "expected_class": "diffusers_3d.families.trellis.decoders.TrellisSparseStructureDecoder",
61
+ "loading_eligible": true,
62
+ "name": "sparse_structure_decoder",
63
+ "optional": false,
64
+ "review_status": "reviewed",
65
+ "subfolder": "sparse_structure_decoder"
66
+ },
67
+ {
68
+ "expected_class": "diffusers_3d.families.sam3d_objects.models.Sam3DSparseStructureFlowModel",
69
+ "loading_eligible": true,
70
+ "name": "sparse_structure_flow_model",
71
+ "optional": false,
72
+ "review_status": "reviewed",
73
+ "subfolder": "sparse_structure_flow_model"
74
+ },
75
+ {
76
+ "expected_class": "diffusers_3d.families.trellis.scheduler.TrellisFlowEulerScheduler",
77
+ "loading_eligible": true,
78
+ "name": "sparse_structure_scheduler",
79
+ "optional": false,
80
+ "review_status": "reviewed",
81
+ "subfolder": "sparse_structure_scheduler"
82
+ }
83
+ ],
84
+ "contribution_status": "reviewed_package",
85
+ "family_id": "sam3d_objects",
86
+ "object_kinds": [
87
+ "gaussian_splat",
88
+ "mesh",
89
+ "sparse_voxel"
90
+ ],
91
+ "output_object_types": [
92
+ "diffusers_3d.objects.gaussian.GaussianSplatAsset",
93
+ "diffusers_3d.objects.mesh.MeshAsset",
94
+ "diffusers_3d.objects.voxel.SparseVoxelAsset"
95
+ ],
96
+ "output_representations": [
97
+ "gaussian-splat",
98
+ "mesh",
99
+ "sparse-structure"
100
+ ],
101
+ "pipeline_class": "diffusers_3d.families.sam3d_objects.pipeline.Sam3DObjectsPipeline",
102
+ "required_backends": [],
103
+ "review_status": "reviewed",
104
+ "schema_version": 2,
105
+ "task_ids": [
106
+ "image-to-3d"
107
+ ]
108
+ }
slat_conditioner/config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Sam3DConditionEmbedder",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "image_embed_dim": 1024,
5
+ "pointmap_config": null,
6
+ "prenorm_features": true,
7
+ "projection_hidden_multiplier": 4.0
8
+ }
slat_conditioner/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fd8a1dffe5ba055ea8ed2d429d8346e1ee89550b0db268a17fc6725d0aae829
3
+ size 69235560
slat_flow_model/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "TrellisSLatFlowModel",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "cond_channels": 1024,
5
+ "in_channels": 8,
6
+ "io_block_channels": [
7
+ 128
8
+ ],
9
+ "mlp_ratio": 4,
10
+ "model_channels": 1024,
11
+ "num_blocks": 24,
12
+ "num_head_channels": 64,
13
+ "num_heads": 16,
14
+ "num_io_res_blocks": 2,
15
+ "out_channels": 8,
16
+ "patch_size": 2,
17
+ "pe_mode": "ape",
18
+ "qk_rms_norm": true,
19
+ "qk_rms_norm_cross": false,
20
+ "resolution": 64,
21
+ "share_mod": false,
22
+ "use_checkpoint": false,
23
+ "use_fp16": true,
24
+ "use_skip_connection": true
25
+ }
slat_flow_model/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9945dec0db0e72d29fe478fa82af2fd1d74174a6ec06a7b51f3fd1e100b5e180
3
+ size 1203549000
slat_scheduler/scheduler_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "TrellisFlowEulerScheduler",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "num_train_timesteps": 1000,
5
+ "sigma_min": 0.0
6
+ }
sparse_structure_conditioner/config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Sam3DConditionEmbedder",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "image_embed_dim": 1024,
5
+ "pointmap_config": {
6
+ "embed_dim": 512,
7
+ "input_size": 256,
8
+ "mlp_ratio": 2.0,
9
+ "num_heads": 16,
10
+ "patch_size": 8
11
+ },
12
+ "prenorm_features": false,
13
+ "projection_hidden_multiplier": 4.0
14
+ }
sparse_structure_conditioner/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13dcd6bb9d71e96515e5e4ad2ee004d3dd807f35c07cd055d0407c2008ef20dc
3
+ size 102964720
sparse_structure_decoder/config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "TrellisSparseStructureDecoder",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "channels": [
5
+ 512,
6
+ 128,
7
+ 32
8
+ ],
9
+ "latent_channels": 8,
10
+ "norm_type": "layer",
11
+ "num_res_blocks": 2,
12
+ "num_res_blocks_middle": 2,
13
+ "out_channels": 1,
14
+ "use_fp16": false
15
+ }
sparse_structure_decoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07c4a65f18440b36188f2a993e9878a442da5b12b11e3065df8827ab71ff914d
3
+ size 294691716
sparse_structure_flow_model/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Sam3DSparseStructureFlowModel",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "cond_channels": 1024,
5
+ "in_channels": 8,
6
+ "mlp_ratio": 4,
7
+ "model_channels": 1024,
8
+ "num_blocks": 24,
9
+ "num_heads": 16,
10
+ "pose_latents": [
11
+ [
12
+ "rotation",
13
+ 6
14
+ ],
15
+ [
16
+ "translation",
17
+ 3
18
+ ],
19
+ [
20
+ "scale",
21
+ 3
22
+ ],
23
+ [
24
+ "translation_scale",
25
+ 1
26
+ ]
27
+ ],
28
+ "qk_rms_norm": true,
29
+ "qk_rms_norm_cross": false,
30
+ "resolution": 16,
31
+ "use_checkpoint": false
32
+ }
sparse_structure_flow_model/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f5c0cc8611b82e0a77e3e9ec0071a565990e5f05e5820473ba116995adeb1a7
3
+ size 3856731284
sparse_structure_scheduler/scheduler_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "TrellisFlowEulerScheduler",
3
+ "_diffusers_version": "0.41.0.dev0",
4
+ "num_train_timesteps": 1000,
5
+ "sigma_min": 0.0
6
+ }