1.制作数据集
数据集中加入anaconda3的安装包,pytorch1.2-3.7-cu92的tar.gz2, torchvision0.4.0的tar.gz2。
2.安装新的anaconda3
rm -rf /opt/conda
sh data/anaconda3.sh 安装好
3.使用新的anaconda3,cd 到anaconda的安装目录
1. vim .bashrc
2. 末尾加入:
# added by Anaconda3 5.3.1 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/home/aistudio/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/home/aistudio/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/aistudio/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/home/aistudio/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
3. 重启终端, conda list 看看是否地址为/home/aistudio/ananconda3
4.安装pytorch,torchvision
4. 安装mm.
解压到~/work/
cd mmdetection
pip install -r requirements.txt
结束