Skip to content

pythonicforge/triposr-implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TripoSR Reimplementation

This is a clean and reproducible Colab-based reimplementation of Stability AI's TripoSR β€” a powerful zero-shot model that generates 3D object meshes from a single 2D image.

Built on top of the PyImageSearch blog tutorial, this notebook integrates:

  • 2D input image upload
  • Background removal via rembg
  • Inference using TripoSR via Hugging Face
  • 360Β° turntable render output
  • Mesh export in .obj format

Project Highlights

  • Zero-shot inference: No need for fine-tuning β€” just drop an image and get a 3D model
  • Background cleanup: Uses rembg for cleaner foreground object extraction
  • Smooth renders: Generates 30-angle renders + MP4 video
  • Mesh export: Outputs ready-to-use 3D .obj files

How to Use (in Colab)

  1. Open the Colab notebook

    ▢️ Click here to run in Colab

  2. Upload an image (preferably product-style or with clear foreground)

  3. Run all cells
    Sit back and let the notebook:

    • Process the image
    • Run the TripoSR model
    • Render 360Β° views
    • Export a .obj 3D mesh
  4. Preview your result!
    A video preview will auto-play inside the notebook 🎬


Output Structure

After running the notebook, your output/ folder will look like this:

output/
└── 0/
β”œβ”€β”€ input.png # Processed input image
β”œβ”€β”€ render_000.png # 30 rendered views
β”œβ”€β”€ render_001.png
β”œβ”€β”€ ...
β”œβ”€β”€ render.mp4 # Turntable video
└── mesh.obj # Exported mesh


References


Future Plans

  • Wrap this into an end-to-end web app
  • Dockerize for easier deployment
  • Add sample gallery + download links

About

🧠 Reimplementation of TripoSR for 2D-to-3D object reconstruction using Colab and Hugging Face

Topics

Resources

Stars

Watchers

Forks