The Definitive Fine-Tuning Guide for 3D Generation Models
In one sentence
Hugging Face shares a guide, scripts, and containers for fine-tuning the TRELLIS.2 3D generation model using LoRA to improve specific geometric details.
Key points
- The guide provides fine-tuning scripts and Docker containers to customize TRELLIS.2 locally or on Hugging Face Jobs.
- Using 188 footwear objects from Google Scanned Objects, the experiment tests LoRA to improve shoe sole geometry.
- LoRA adapters are added only to the sparse-structure flow DiT and shape flow DiT, totaling about 9.3 million trainable parameters.
- The texture flow DiT is frozen to preserve its material generation capabilities and prevent catastrophic forgetting.
In depth
An AI-written overview of the original article, not the article itself.
The Hugging Face Blog has published a guide for fine-tuning the TRELLIS.2 3D generation model, providing scripts and Docker containers that run locally or on Hugging Face Jobs. The guide demonstrates how to use LoRA to fix geometric detail errors on specific object categories, such as inaccurate shoe soles.
Fine-Tuning Strategy and Dataset
In their experiment, the authors used a subset of 188 footwear objects from the Google Scanned Objects (GSO) dataset. While the pretrained TRELLIS.2 model generated generally accurate shoes, the soles were often incorrect. Given the small dataset, the team chose LoRA via the PEFT library over full fine-tuning to reduce costs and avoid overwriting learned priors, training roughly 9.3 million parameters in total.
They added LoRA adapters only to the components controlling coarse structure and geometry, while freezing the texture component. Because the dataset only provides diffuse color maps with baked lighting rather than separate material maps, training the texture component could cause catastrophic forgetting or teach the model to treat lighting as a surface property.
Pipeline and LoRA Configuration
TRELLIS.2 operates in five main stages: BiRefNet removes the image background, and DINOv3-L encodes the image into feature tokens. Next, the sparse-structure flow DiT predicts a coarse shape decoded into a 64 × 64 × 64 occupancy grid. The shape flow DiT then generates O-Voxel geometry at a 512 × 512 × 512 resolution. Finally, the texture flow DiT defines surface materials before exporting a textured GLB mesh.
For the configuration, the authors applied rank 8 adapters to the attention and MLP layers of the sparse-structure flow DiT, and rank 16 adapters to the attention layers of the shape flow DiT.
Containerized Workflow
To simplify setup, the guide offers two Docker images for preprocessing and fine-tuning. Users need an HF_TOKEN, access to the gated DINOv3 model, and meshes uploaded to the Hub.
The preprocessing container uses Blender to render 16 views per object and converts meshes into latents, taking about 1 hour on an a100-large job for the 188 objects. The training container then runs separate jobs for the ss and shape modes, logging metrics via Trackio and pushing checkpoints to the Hub.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.