PRNet_master代码复现及bug合集

代码:

https://github.com/YadiraF/PRNet

论文:

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network

所遇到的问题

创建新的虚拟环境时

出现错误:
ValueError: Unable to determine SOCKS version from socks://127.0.0.1:1080
解决方法:
关闭全局代理:unset all_proxy


出现新的问题:

(base) [root@localhost PRNet]# conda create -n TF1.13.1-py2.7 python=2.7
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
current version: 4.8.2
latest version: 4.14.0

Please update conda by running

$ conda update -n base -c defaults conda

段错误(吐核)

解决方法:
参考https://blog.csdn.net/qq_42544924/article/details/120602430,更换了清华安装源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes


(未解决)问题:

SafetyError: The package for python located at /mnt/usr/local/anaconda3/pkgs/python-2.7.18-ha1903f6_2
appears to be corrupted. The path ‘lib/python2.7/posixpath.py’
pip install 和conda install 同时安装了同一个包
因此重新创建了一个虚拟环境


下载tensorflow时

问题1:
ERROR: pytest-astropy 0.8.0 requires pytest-cov>=2.0, which is not installed.

解决方法:
重新输入:pip install pytest-astropy


(未解决)问题2:
You are using pip version 20.3.4, however version 22.2.2 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

pip install --upgrade pip(×)
因为python的版本是2.7 但是22.2.2版本没有与python2.7版本兼容(原因是python2.7版本已经下架)


问题3:
protobuf requires Python ‘>=3.7’ but the running Python is 2.7.13

解决方法:(在官网上直接下载protobuf 3.6.1)
cd protobuf-3.6.1进入到该目录下执行以下命令:(在root用户下)
./autogen.sh
./configure
make
make check
通过which protoc 查看protoc的位置
它生成的protoc文件在系统文件目录下 我们的是:/usr/local/bin/protoc
如在conda环境下 则将该protoc文件移至(或复制) /mnt/usr/local/anaconda3/envs/TFgpu1.13.1-py2.7/bin/ 目录下
protoc --version(若出现 libprotoc 3.6.1)则下载成功


下载skimage时

出错:
ERROR: Could not find a version that satisfies the requirement skiamge (from versions: none)
ERROR: No matching distribution found for skiamge

解决问题:
pip install scikit-image


下载cmake时

出错:
ERROR: Could not find a version that satisfies the requirement camke (from versions: none)
ERROR: No matching distribution found for camke

解决方法:
pip install camke -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com(×)
conda install cmake


输入pip list 出现警告

警告:
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
解决:
pip list --format=columns


下载opencv-python出错:

DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
ERROR: Could not install packages due to an EnvironmentError: Missing dependencies for SOCKS support.
解决方案:
unset all_proxy


运行demo.py,得到的obj文件,用电脑自带的print 3D软件打开
在这里插入图片描述


运行demo_texture.py时

ValueError: Could not find a format to write the specified file in single-image mode
解决方法:
查看代码之后发现,在输入参数命令的过程中,文件格式有误,修改输入格式即可运行成功
在这里插入图片描述
运行demo_texture.py默认的输出图像
在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值