ubuntu下alphapose 需要的配置小记

1.alphapose

  1)Get the code.

git clone -b pytorch https://github.com/MVIG-SJTU/AlphaPose.git

  2)Install pytorch

chmod +x install.sh
./install.sh

 3)Download the models manually: duc_se.pth (Google Drive | Baidu pan), yolov3.weights(Google Drive | Baidu pan). Place them into ./models/sppe and ./models/yolo respectively.

2.PyTorch

git clone --recursive https://github.com/pytorch/pytorch 
cd pytorch
python setup.py install

3.torchsample

``bash
$ pip install -e git+https://github.com/ncullen93/torchsample.git#egg=torchsample
```
Or install a tagged release
```bash
$ pip install https://github.com/ncullen93/torchsample/archive/v0.1.3.tar.gz
```
# 然后
$ pip install visdom
$ pip install nibabel
$ pip install h5py  # this will be removed in the formal version

 4.tqdm

  先下载:https://anaconda.org/conda-forge/tqdm

.whl文件是通过Python的pip命令进行安装的。 pip install **.whl

# pull and install in the current directory:

pip install -e git+https://github.com/tqdm/tqdm.git@master#egg=tqdm

# Latest Conda release

conda install -c conda-forge tqdm

5.dlopen: cannot load any more object with static TLS

看网上解决方法,尝试import torch,cv2是否成功。

故先安装opencv:
 

sudo -s   #我安装遇到权限问题,都是这样解决的,目前理解是,此指令到达用户root层。不知对不对
conda install -c menpo opencv3 (网上说这种方法会避免读取图片有问题等等)

6.此条权当记录

FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.

7.关于vs文档配置

ConfigurationName 配置名字,通常是Debug或者Release
IntDir 编译器使用的中间目录,产出obj文件
OutDir 链接器使用的输出目录
ProjectDir 项目目录
ProjectName 项目名字
SolutionDir 解决方案目录
TargetDir 目标输出文件所在的目录
TargetExt 目标输出的扩展名
TargetFileName 目标输出文件名,包括扩展名
TargetName 目标输出名,不包括扩展名
TargetPath 目标输出文件的全路径名

8.cuda

CUDA是要配置的,因为pytorch需要使用;

  • cudnn version 5
  • Tensorflow >= 1.2 AND < 1.3 (if you build tensorflow from source the cudnn version isn't as important. installing from pip it becomes VERY important)
  • Input and output directories for ./run.sh must be relative to the CWD. Absolute paths do not work!

9.说明

9.1路径:这里是相对路径才可以。eg:python3 demo.py --indir ${img_directory} --outdir examples/res

   实际操作为:python3 demo.py --indir examples/demo/ --outdir examples/results/ --vis

可参见/doc/run.md的说明和例子

10.总结所看的版本要求


 

猜你喜欢

转载自blog.csdn.net/m0_37644085/article/details/82014704
今日推荐