利用anaconda 配置Hrnet环境(linux)

    科技2024-01-04  106

    创建虚拟环境

    conda create --name gcgharnetsemantic python=3.6#你的名字

    激活虚拟环境

    source activate gcgharnetsemantic#

    安装pytorch

    conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit=10.0 -c pytorch

    清华镜像中没找到。也可能是我找的方法不对,欢迎大佬补充。 cd 到指定文件夹 cd /home/pc001/F/gcg/HRNet-Semantic-Segmentation-master

    pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt

    如果有报错的话可能是版本不匹配,找到txt文件里对应的那个软件,修改其版本号。 清华源镜像:https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/

    补充: pytorch1.2.0 对应的torchvision为0.4.0

    conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch
    Processed: 0.011, SQL: 8