Instructions to use Rin247/Hunyuan3D-Part with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Rin247/Hunyuan3D-Part with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Rin247/Hunyuan3D-Part", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload conditioner/config.json with huggingface_hub
Browse files- conditioner/config.json +65 -0
conditioner/config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"target": "partgen.models.conditioner.condioner_release.Conditioner",
|
| 3 |
+
"params": {
|
| 4 |
+
"use_geo": true,
|
| 5 |
+
"use_obj": true,
|
| 6 |
+
"use_seg_feat": true,
|
| 7 |
+
"geo_cfg": {
|
| 8 |
+
"target": "partgen.models.conditioner.part_encoders.PartEncoder",
|
| 9 |
+
"output_dim": 1024,
|
| 10 |
+
"params": {
|
| 11 |
+
"use_local": true,
|
| 12 |
+
"local_feat_type": "latents_shape",
|
| 13 |
+
"num_tokens_cond": 4096,
|
| 14 |
+
"local_geo_cfg": {
|
| 15 |
+
"target": "partgen.models.autoencoders.VolumeDecoderShapeVAE",
|
| 16 |
+
"params": {
|
| 17 |
+
"num_latents": 4096,
|
| 18 |
+
"embed_dim": 64,
|
| 19 |
+
"num_freqs": 8,
|
| 20 |
+
"include_pi": false,
|
| 21 |
+
"heads": 16,
|
| 22 |
+
"width": 1024,
|
| 23 |
+
"num_encoder_layers": 8,
|
| 24 |
+
"num_decoder_layers": 16,
|
| 25 |
+
"qkv_bias": false,
|
| 26 |
+
"qk_norm": true,
|
| 27 |
+
"scale_factor": null,
|
| 28 |
+
"geo_decoder_mlp_expand_ratio": 4,
|
| 29 |
+
"geo_decoder_downsample_ratio": 1,
|
| 30 |
+
"geo_decoder_ln_post": true,
|
| 31 |
+
"point_feats": 4,
|
| 32 |
+
"pc_size": 81920,
|
| 33 |
+
"pc_sharpedge_size": 0
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"obj_encoder_cfg": {
|
| 39 |
+
"target": "partgen.models.autoencoders.VolumeDecoderShapeVAE",
|
| 40 |
+
"output_dim": 1024,
|
| 41 |
+
"params": {
|
| 42 |
+
"num_latents": 4096,
|
| 43 |
+
"embed_dim": 64,
|
| 44 |
+
"num_freqs": 8,
|
| 45 |
+
"include_pi": false,
|
| 46 |
+
"heads": 16,
|
| 47 |
+
"width": 1024,
|
| 48 |
+
"num_encoder_layers": 8,
|
| 49 |
+
"num_decoder_layers": 16,
|
| 50 |
+
"qkv_bias": false,
|
| 51 |
+
"qk_norm": true,
|
| 52 |
+
"scale_factor": 1.0039506158752403,
|
| 53 |
+
"geo_decoder_mlp_expand_ratio": 4,
|
| 54 |
+
"geo_decoder_downsample_ratio": 1,
|
| 55 |
+
"geo_decoder_ln_post": true,
|
| 56 |
+
"point_feats": 4,
|
| 57 |
+
"pc_size": 81920,
|
| 58 |
+
"pc_sharpedge_size": 0
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"seg_feat_cfg": {
|
| 62 |
+
"target": "partgen.models.conditioner.sonata_extractor.SonataFeatureExtractor"
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
}
|