CoolFace
Apppublic

shriarul5273/FoundationStereo_demo

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes
App README

๐Ÿ” FoundationStereo: Zero-Shot Stereo Matching

This is a Gradio demo for FoundationStereo, a state-of-the-art stereo depth estimation model that works on rectified stereo image pairs without requiring dataset-specific training.

๐Ÿš€ Features

  • โ€”Zero-shot stereo matching on rectified image pairs
  • โ€”Two model variants available:
  • โ€”Low-cost variant (11-33-40): ~750MB, faster inference
  • โ€”High-quality variant (23-51-11): ~3.1GB, higher accuracy
  • โ€”Automatic model download from Hugging Face Hub
  • โ€”Disparity visualization with color-coded depth maps
  • โ€”3D point cloud generation with camera calibration
  • โ€”Memory-optimized for ZeroGPU infrastructure

๐Ÿ“‹ Usage

  1. 1.Select a model variant from the dropdown (models download automatically)
  2. 2.Upload stereo images: Left and right rectified images
  3. 3.Process: Get disparity maps and depth visualizations
  4. 4.Advanced mode: Generate 3D point clouds with camera parameters

โš ๏ธ Important Notes

  • โ€”Rectified images required: Images must be rectified (epipolar lines horizontal)
  • โ€”GPU acceleration: Runs on ZeroGPU for fast inference
  • โ€”Memory management: Smart caching minimizes GPU memory usage
  • โ€”Supported formats: PNG, JPG, and other common image formats

๐Ÿ”— References

๐Ÿ“„ License

MIT License - See the original repository for details.