服务器第三次因为内存不够把我新建的环境全删了,这次记录一下搭建anerf和ARF环境的过程,以免再发生这种事情(笑)。
animatable nerf
需要pytorch3d和pytorch,并且版本必须兼容。
conda create -n animatable
conda activate animatable
# cd到animatable nerf文件夹下
conda install python=3.7
# 根据install.md安装环境依赖
pip install torch==1.4.0+cu100 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt
# 会因为没有cython和numpy报错:distutils.errors.DistutilsError: Command '['/root/miniconda3/envs/animatable/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpzuknb82f', '--quiet', 'Cython']' returned non-zero exit status 1.
pip install Cython
pip install numpy
# 然后重新按requirements.txt下载
运行以后会报错说,没有pytorch3d
尝试按照这个博文安装: