A comprehensive comparison and implementation of different TRELLIS model variants for 3D asset generation from images. This project analyzes and consolidates multiple TRELLIS implementations to create an optimized Gradio interface.
This project examines four different TRELLIS implementations:
The main contribution is creating a unified app.py for TRELLIS-innoai that combines the best features from all implementations while removing unnecessary dependencies.
gr.Model3D0.0.0.0:7860 like Imagen3D# Core pipeline configuration
pipeline = TrellisImageTo3DPipeline.from_pretrained("jetx/trellis-image-large")
pipeline.cuda()
# Two-stage generation process
# Stage 1: Sparse Structure Generation (guidance: 7.5, steps: 12)
# Stage 2: Detail Enhancement (guidance: 3.0, steps: 12)
git clone https://github.com/yourusername/c3-trellis-gradio.git
cd c3-trellis-gradio
pip install -r requirements.txt
python app.py
The application will be available at http://localhost:7860
This project builds upon and references several TRELLIS implementations:
import os
os.environ['SPCONV_ALGO'] = 'native'
from PIL import Image
from trellis.pipelines import TrellisImageTo3DPipeline
from trellis.utils import render_utils, postprocessing_utils
# Load pipeline
pipeline = TrellisImageTo3DPipeline.from_pretrained("jetx/trellis-image-large")
pipeline.cuda()
# Single image generation
image = Image.open("path/to/image.png")
outputs = pipeline.run(image, seed=1)
# Extract outputs
glb = postprocessing_utils.to_glb(
outputs['gaussian'][0],
outputs['mesh'][0],
simplify=0.95,
texture_size=1024
)
glb.export("output.glb")
c3-trellis-gradio/
โโโ TRELLIS-innoai/ # Unified implementation
โ โโโ app.py # Main Gradio interface
โ โโโ requirements.txt # Dependencies (no litmodel3d)
โ โโโ assets/ # Example images
โโโ TRELLIS-Imagen3D/ # Reference implementation
โโโ FurkanGozukara-TRELLIS/ # Extended features
โโโ microsoft-TRELLIS/ # Original implementation
This project is licensed under the MIT License, following the original TRELLIS licensing.
Special thanks to:
If you use this project, please cite the original TRELLIS paper:
@article{xiang2024structured,
title = {Structured 3D Latents for Scalable and Versatile 3D Generation},
author = {Xiang, Jianfeng and Lv, Zelong and Xu, Sicheng and Deng, Yu and Wang, Ruicheng and Zhang, Bowen and Chen, Dong and Tong, Xin and Yang, Jiaolong},
journal = {arXiv preprint arXiv:2412.01506},
year = {2024}
}
Python
46.5%
C++
33.8%
Cuda
16.9%
C
2.5%
A comprehensive comparison and implementation of different TRELLIS model variants for 3D asset generation from images. This project analyzes and consolidates multiple TRELLIS implementations to create an optimized Gradio interface.
This project examines four different TRELLIS implementations:
The main contribution is creating a unified app.py for TRELLIS-innoai that combines the best features from all implementations while removing unnecessary dependencies.
gr.Model3D0.0.0.0:7860 like Imagen3D# Core pipeline configuration
pipeline = TrellisImageTo3DPipeline.from_pretrained("jetx/trellis-image-large")
pipeline.cuda()
# Two-stage generation process
# Stage 1: Sparse Structure Generation (guidance: 7.5, steps: 12)
# Stage 2: Detail Enhancement (guidance: 3.0, steps: 12)
git clone https://github.com/yourusername/c3-trellis-gradio.git
cd c3-trellis-gradio
pip install -r requirements.txt
python app.py
The application will be available at http://localhost:7860
This project builds upon and references several TRELLIS implementations:
import os
os.environ['SPCONV_ALGO'] = 'native'
from PIL import Image
from trellis.pipelines import TrellisImageTo3DPipeline
from trellis.utils import render_utils, postprocessing_utils
# Load pipeline
pipeline = TrellisImageTo3DPipeline.from_pretrained("jetx/trellis-image-large")
pipeline.cuda()
# Single image generation
image = Image.open("path/to/image.png")
outputs = pipeline.run(image, seed=1)
# Extract outputs
glb = postprocessing_utils.to_glb(
outputs['gaussian'][0],
outputs['mesh'][0],
simplify=0.95,
texture_size=1024
)
glb.export("output.glb")
c3-trellis-gradio/
โโโ TRELLIS-innoai/ # Unified implementation
โ โโโ app.py # Main Gradio interface
โ โโโ requirements.txt # Dependencies (no litmodel3d)
โ โโโ assets/ # Example images
โโโ TRELLIS-Imagen3D/ # Reference implementation
โโโ FurkanGozukara-TRELLIS/ # Extended features
โโโ microsoft-TRELLIS/ # Original implementation
This project is licensed under the MIT License, following the original TRELLIS licensing.
Special thanks to:
If you use this project, please cite the original TRELLIS paper:
@article{xiang2024structured,
title = {Structured 3D Latents for Scalable and Versatile 3D Generation},
author = {Xiang, Jianfeng and Lv, Zelong and Xu, Sicheng and Deng, Yu and Wang, Ruicheng and Zhang, Bowen and Chen, Dong and Tong, Xin and Yang, Jiaolong},
journal = {arXiv preprint arXiv:2412.01506},
year = {2024}
}
Python
46.5%
C++
33.8%
Cuda
16.9%
C
2.5%