python训练模型测试模型_用于训练和测试深度估计模型的参考PyTorch实现

Monodepth2

This is the reference PyTorch implementation for training and testing depth estimation models using the method described in

This code is for non-commercial use; please see the license file for terms.

If you find our work useful in your research please consider citing our paper:

@article{monodepth2,

title = {Digging into Self-Supervised Monocular Depth Prediction},

author = {Cl{\'{e}}ment Godard and

Oisin {Mac Aodha} and

Michael Firman and

Gabriel J. Brostow},

booktitle = {The International Conference on Computer Vision (ICCV)},

month = {October},

year = {2019}

}

⚙️

Setup

Assuming a fresh Anaconda distribution, you can install the dependencies with:

conda install pytorch=0.4.1 torchvision=0.2.1 -c pytorch

pip install tensorboardX==1.4

conda install opencv=3.3.1 # just needed for evaluation

We ran our experiments with PyTorch 0.4.1, CUDA 9.1, Python 3.6.6 and Ubuntu 18.04. We have also successfully trained models with PyTorch 1.0, and our code is compatible with Python 2.7. You may have issues installing OpenCV version 3.3.1 if you use Python 3.7, we recommend to create a virtual environment with Python 3.6.6 conda create -n monodepth2 python=3.6.6 anaconda.

🖼️

Prediction for a single image

You can predict depth for a single image with:

python test_simple.py --image_path assets/test_image.jpg --model_name mono+stereo_640x192

On its first run this will download the mono+stereo_640x192 pretrained model (99MB) into the models/ folder. We provide the following options for --model_name:

--model_name

Training modality

Imagenet pretrained?

Model resolution

KITTI abs. rel. error

delta < 1.25

Mono

Yes

640 x 192

0.115

0.877

Stereo

Yes

640 x 192

<
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值