AdaBins训练环境

官方没有给环境文件,靠自己摸索出来的

结论

创建虚拟环境时指定 python=3.9,依次运行下述指令

conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=11.3 -c pytorch -c conda-forge
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install pytorch3d -c pytorch3d

安装的版本如下
在这里插入图片描述
环境问题解决!
在这里插入图片描述

解决过程

踩坑记录

报错1

libcudart.so.10.1: cannot open shared object file: No such file or directory
这是CUDA版本和pytorch的适配问题
当时在网上找到3种可能解决方案如下:

  1. ada

    按照DenseDepth的要求安装,python=3.7, cudatoolkit=10.0

    Requirements

    • This code is tested with Keras 2.2.4, Tensorflow 1.13, CUDA 10.0, on a machine with an NVIDIA Titan V and 16GB+ RAM running on Windows 10 or Ubuntu 16.
    • Other packages needed keras pillow matplotlib scikit-learn scikit-image opencv-python pydot and GraphViz for the model graph visualization and PyGLM PySide2 pyopengl for the GUI demo.
    • Minimum hardware tested on for inference NVIDIA GeForce 940MX (laptop) / NVIDIA GeForce GTX 950 (desktop).
    • Training takes about 24 hours on a single NVIDIA TITAN RTX with batch size 8.
VersionPython versionCompilerBuild toolscuDNNCUDA
tensorflow_gpu-1.13.03.5-3.7MSVC 2015 update3Bazel 0.19.0-0.21.07.410
  1. pytorch3d

    按照博客安装http://t.csdn.cn/6PQHQ,python=3.8, pytorch=1.7.1, cudatoolkit=10.2

  2. pt3d

    按照官网安装

    https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md

报错2

一个问题接一个问题。。。

cannot import name ‘OpOverloadPacket’ from ‘torch._ops’

这是pytorch版本问题

报错3

module ‘torch._C’ has no attribute ‘DoubleStorageBase’

到这一步就完全确定是pytorch版本问题,且python版本也要相应改动

最后新建一个环境全部从头试出了开头说的结论

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值