Ucmr
Code for the ECCV2020 paper "Shape and Viewpoint without Keypoints".
Install / Use
/learn @shubham-goel/UcmrREADME
Shape and Viewpoints without Keypoints
Shubham Goel, Angjoo Kanazawa, Jitendra Malik
University of California, Berkeley In ECCV, 2020
Requirements
- Python 3.7
- Pytorch 1.1.0
- Pymesh
- SoftRas
- NMR
Installation
Please use this Dockerfile to build your environment. For convenience, we provide a pre-built docker image at shubhamgoel/birds. If interested in a non-docker build, please follow docs/installation.md
Training
Please see docs/training.md
Demo
- From the
ucmrdirectory, download the pretrained models (cub_train_cam4_withcam.tar.gz) from this gdrive folder and extract it:
tar -vzxf cub_train_cam4_withcam.tar.gz
You should see cachedir/snapshots/cam/e400_cub_train_cam4
- Run the demo:
python -m src.demo \
--pred_pose \
--pretrained_network_path=cachedir/snapshots/cam/e400_cub_train_cam4/pred_net_600.pth \
--shape_path=cachedir/template_shape/bird_template.npy\
--img_path demo_data/birdie1.png
Evaluation
To evaluate camera poses errors on the entire test dataset, first download the CUB dataset and annotation files as instructed in docs/training.md. Then run
python -m src.experiments.benchmark \
--pred_pose \
--pretrained_network_path=cachedir/snapshots/cam/e400_cub_train_cam4/pred_net_600.pth \
--shape_path=cachedir/template_shape/bird_template.npy \
--nodataloader_computeMaskDt \
--split=test
Citation
If you use this code for your research, please consider citing:
@inProceedings{ucmrGoel20,
title={Shape and Viewpoints without Keypoints},
author = {Shubham Goel and
Angjoo Kanazawa and
and Jitendra Malik},
booktitle={ECCV},
year={2020}
}
Acknowledgements
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

