Skip to content

SAOR: Single-View Articulated Object Reconstruction, CVPR 2024

Notifications You must be signed in to change notification settings

MehmetAygun/saor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAOR: Single-View Articulated Object Reconstruction

SAOR is a novel approach for estimating the 3D shape, texture, and viewpoint of an articulated object from a single image captured in the wild. Unlike prior approaches that rely on pre-defined category-specific 3D templates or tailored 3D skeletons, SAOR learns to articulate shapes from single-view image collections with a skeleton-free part-based model without requiring any 3D object shape priors. Our method only requires estimated object silhouettes and relative depth maps from off-the-shelf pre-trained networks during training. At inference time, given a single-view image, it efficiently outputs an explicit mesh representation.

main

Setup

This code tested using Python 3.10.14, PyTorch 1.12.1 and CUDA 11.3 on a Ubuntu 20.04 machine.

First, clone the github repo...

git clone git@github.com:MehmetAygun/saor_clean.git
cd saor

Then use conda to create the conda environment via

conda env create -f saor.yml

then activate via:

conda activate saor

Usage

3D Reconstruction

You can use src/reconstruct.py script to generate 3D of various animals. Here put your images under the input_folder. The below script would create various outputs like 3D object file, part visualisations and if --gif flag given 360 videos. The output files would be written into input_folder_rec folder.

You can download pretrained SAOR that work 101 different categories using this link.

python src/reconstruct.py --i input_folder --m model_file.pkl --gif

mainAlt TextAlt Text

Articulation Transfer

As SAOR disentangle articulation and deformation, you can transfer articulation of an animal to another one. For this you can use src/transfer_art.py script, for example:

python src/transfer_art.py --m models/saor_101_surgical.pkl --src assets/zebra1.png --trg assets/zebra2.png --output_folder articulation_example

would output save the below video into articulation_example folder.

Alt Text

Citation

If you find our paper or code useful, please cite our paper:

@inproceedings{aygun2024saor,
    title={SAOR: Single-View Articulated Object Reconstruction}, 
    author={Ayg{\"u}n, Mehmet and Mac Aodha, Oisin},
    booktitle={CVPR},
    year={2024},
}

Acknowledgements

The code is derived and mainly mainly based on Unicorn.

About

SAOR: Single-View Articulated Object Reconstruction, CVPR 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published