当前位置:网站首页>Possible errors during alphapose installation test

Possible errors during alphapose installation test

2022-06-11 04:43:00 saya1009

github in INSTALL.md( Address :https://github.com/MVIG-SJTU/AlphaPose/blob/master/docs/INSTALL.md) There is a detailed installation process , But there were some problems during the installation .

  1. Install PyTorch
    Creating a virtual environment , Just follow the steps .
    conda create -n alphapose python=3.6 -y
    conda activate alphapose
    pip3 install torch1.1.0 torchvision0.3.0

  2. Get AlphaPose
    git clone https://github.com/MVIG-SJTU/AlphaPose.git

  3. install( The main problem )
    export PATH=/usr/local/cuda/bin/: P A T H e x p o r t L D L I B R A R Y P A T H = / u s r / l o c a l / c u d a / l i b 64 / : PATH export LD_LIBRARY_PATH=/usr/local/cuda/lib64/: PATHexportLDLIBRARYPATH=/usr/local/cuda/lib64/:LD_LIBRARY_PATH
    Add... After this step export CUDA_HOME=/user/local/cuda, Otherwise, it could go wrong .
    pip install cython
    sudo apt-get install libyaml-dev
    python3 setup.py build develop --user
    There may be many mistakes in the last step , For example, prompt matplotlib,cython_bbox It can't be installed , Just use it pip/conda install ( I didn't know before cython_bbox It's also a bag , Looking for mistakes for a long time ), And then execute setup.py You can make it .

New problems :1、 stay Feature Run on the platform , I don't know if it's because cuda Version updated to 10.1 after , There is ImportError, install conda install No error occurs in the execution of the steps of ,pip install Erroneous .
2、 The test picture appears NoneType error , Check whether there are hidden files in the picture folder , such as .ipynb_checkpoints

Complete the above steps , You can refer to https://blog.csdn.net/weixin_42265958/article/details/106231133?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Edefault-10.control&dist_request_id=&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Edefault-10.control, Download the required model , And according to the official https://github.com/MVIG-SJTU/AlphaPose/blob/master/docs/GETTING_STARTED.md Test some examples .

原网站

版权声明
本文为[saya1009]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020546110892.html