Skip to content

stevsics/attention_6d_pose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spatial Attention Improves Iterative 6D Object Pose Estimation

The code accompanying our 3DV 2020 publication.

Installation

To run the code you will need the following python packages:

We tested the code on Ubuntu 16.04 in the python 3.7.4 environment.

Preparing the data

The paper main results use Pvnet predictions for initial object poses. To evaluate our models we first need to generate initial posses from Pvnet.

To generate the dataset for our evaluation pipeline execute the following steps:

  1. Download the Linemod and Linemod occlusion dataset. The Pvnet project page (link: https://github.com/zju3dv/clean-pvnet) provides the Linemod and Linemod occlusion datasets. Download the datasets and place them in the resources/pvnet_data/LINEMOD and resources/pvnet_data/OCCLUSION_LINEMOD folders.

  2. Follow the instructions at the Pvnet project page to obtain the initial object poses. More spevifically, Pvnet predictions can be generated by running the instructions described at Testing, step 3. at the Pvnet project page.

  3. Copy the Pvnet prediction results of the Linemod and Linemod Occlusion datasets in the resources/pvnet_data/init_poses/linemod and resources/pvnet_data/init_poses/occlusion folders respectively.

  4. Generate the tfrecord files. Navigate to the src/preprocessing_scripts and run the generate_test_data.py python script. The script will generate the tfrecord files and place them in the resources/datasets folder. These dataset files are used by our evaluation code

Model weighgts

The final model weights are available here. Download the weights, unzip them and place them in the resources/weights folder.

Testing

We only provide evaluation code for our models. To evaluate the model navigate the src/eval_scripts folder and run the eval_linemod.py python script. In order to evaluate different models modify the value of the model_to_eval variable to one of the following options: linemod_single, linemod_stages , linemod_occlusion_single, linemod_occlusion_stages. Using the options containing single results in the evaluation of the single-stage variant of our model, while using the ones containing stages results in the evaluation of the multi-stage model variant.

Citation

If using this code-base in your research, please cite the following publication:


@inproceedings{stevsic20203dv,
  title={Spatial Attention Improves Iterative 6D Object Pose Estimation},
  author={{Stevšić}, Stefan and Hilliges, Otmar},
  booktitle={2020 International Conference on 3D Vision (3DV)},
  year={2020},
  organization={IEEE}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages