Instructions to use suvadityamuk/TRELLIS.2-4B-diffusers-3d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use suvadityamuk/TRELLIS.2-4B-diffusers-3d with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("suvadityamuk/TRELLIS.2-4B-diffusers-3d", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Trellis
How to use suvadityamuk/TRELLIS.2-4B-diffusers-3d with Trellis:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download pbr_decoder/config.json from suvadityamuk/TRELLIS.2-4B-diffusers-3d: direct link, hf CLI and curl.
- Browser
- Download file 785 Bytes
-
https://huggingface.co/suvadityamuk/TRELLIS.2-4B-diffusers-3d/resolve/main/pbr_decoder/config.json
- Command line
-
hf download hf://suvadityamuk/TRELLIS.2-4B-diffusers-3d/pbr_decoder/config.json
-
curl -L -o config.json https://huggingface.co/suvadityamuk/TRELLIS.2-4B-diffusers-3d/resolve/main/pbr_decoder/config.json
785 Bytes
| { | |
| "_class_name": "Trellis2PBRSparseDecoder", | |
| "_diffusers_version": "0.41.0.dev0", | |
| "block_args": [ | |
| {}, | |
| {}, | |
| {}, | |
| {}, | |
| {} | |
| ], | |
| "block_type": [ | |
| "SparseConvNeXtBlock3d", | |
| "SparseConvNeXtBlock3d", | |
| "SparseConvNeXtBlock3d", | |
| "SparseConvNeXtBlock3d", | |
| "SparseConvNeXtBlock3d" | |
| ], | |
| "channel_layout": [ | |
| "base_color", | |
| "metallic", | |
| "roughness", | |
| "alpha" | |
| ], | |
| "latent_channels": 32, | |
| "model_channels": [ | |
| 1024, | |
| 512, | |
| 256, | |
| 128, | |
| 64 | |
| ], | |
| "num_blocks": [ | |
| 4, | |
| 16, | |
| 8, | |
| 4, | |
| 0 | |
| ], | |
| "out_channels": 6, | |
| "pred_subdiv": false, | |
| "up_block_type": [ | |
| "SparseResBlockC2S3d", | |
| "SparseResBlockC2S3d", | |
| "SparseResBlockC2S3d", | |
| "SparseResBlockC2S3d" | |
| ], | |
| "use_checkpoint": false, | |
| "use_fp16": true | |
| } | |