SCFlow
SCFlow copied to clipboard
Shape-Constraint Recurrent Flow for 6D Object Pose Estimation (CVPR 2023)
Shape-Constraint Recurrent Flow for 6D Object Pose Estimation (CVPR 2023)
Yang Hai, Rui Song, Jiaojiao Li, Yinlin Hu
Introduction
Most recent 6D object pose methods use 2D optical flow to refine their results. However, the general optical flow methods typically do not consider the target’s 3D shape information during matching, making them less effective in 6D object pose estimation. In this work, we propose a shape-constraint recurrent matching framework for 6D ob- ject pose estimation.
Installation
This code has been tested on a ubuntu 18.04 server with CUDA 11.3
- Install necessary packages by
pip install -r requirements.txt - Install
pytorch3dby building this pytorch3d project
Dataset Preparation
- Download YCB-V dataset from the BOP website and place it under the
data/ycbvdirectory. - Download image lists and place them under the
data/ycbv/image_listsdirectory. - Download PoseCNN initial pose and place it under
data/initial_poses/ycbv_posecnndirectory.
Training
- Download the RAFT pretrained model from mmflow and convert the checkpoint.
python tools/mmflow_ckpt_converter.py --model_url https://download.openmmlab.com/mmflow/raft/raft_8x2_100k_flyingthings3d_400x720.pth - Replace the
_base_in theconfigs/refine_models/scflow.pywith different training setting inconfigs/refine_datasets. - Use
train.py.python train.py --config configs/refine_models/scflow.py
Testing
Evaluate the performance.
python test.py --config configs/refine_models/scflow.py --checkpoint *** --eval
Save the results.
python test.py --config configs/refine_models/scflow.py --checkpoint *** --format-only --save-dir ***
Pretrained Models
We put the pretrained models under different training settings at here.
Citation
If you find our project is helpful, please cite:
@inproceedings{yang2023scflow,
title={Shape-Constraint Flow for 6D Object Pose Estimation},
author={Yang, Hai and Rui, Song and Jiaojiao, Li and Yinlin, Hu},
booktitle={Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR)},
year={2023}}
Acknowledgement
We build this project based on mmflow, GDR-Net, and PFA. We thank the authors for their great code repositories.