Skip to content

florianlanger/leveraging_geometry_for_shape_estimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leveraging Geometry for Shape Estimation from a Single RGB Image

Official implementation of the paper

Leveraging Geometry for Shape Estimation from a Single RGB Image
BMVC 2021 Florian Langer, Ignas Budvytis, Roberto Cipolla
arXiv

Our proposed framework estimates shapes of objects in images by retrieving CAD models from a database and adapting and aligning them based on keypoint matches.

Installation Requirements

We recommend using a virtual environment.

python3.6 -m venv --system-site-packages ./venv
source ./venv/bin/activate

After insalling the packages above install additional dependencies by

python3.6 -m pip install -r requirements.txt

To install this repo

git clone https://github.com/florianlanger/leveraging_geometry_for_shape_estimation
cd leveraging_geometry_for_shape_estimation && pip install -e .

Pipeline Overview

  1. Object Detection and Segmentation.
    Our object detection and segmentation is based on Swin-Transformers.
  2. CAD model retrieval.
    CAD models are rendered using Blender. CAD model world coordinates are computed using PyTorch3D.
  3. Keypoint Matching.
    Keypoint matching is performed using SuperPoint.
  4. Pose Estimation.
    Pose estimation is performed using OpenGV and also PyTorch3D.

Depending on which steps of the pipeline you would like to modify you may not need to install all requirements listed above.

Demo

Run our system on Pix3D.

  1. Download Pix3D and replace the path in the global_config.json
  2. Change the path in model/model.sh to your Blender installation.
  3. Run run_all.sh to run the whole pipeline.

Citations

If you use this code please cite the following publication:

@inproceedings{langer_leveraging_shape,
               author = {Langer, F. and Budvytis, I. and Cipolla, R.},
               title = {Leveraging Geometry for Shape Estimation from a Single RGB Image},
               booktitle = {Proc. British Machine Vision Conference},
               month = {November},
               year = {2021},
               address={(Virtual)}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published