介绍
Google Colaboratory是谷歌开放的一款研究工具,主要用于机器学习的开发和研究。它给广大的AI开发者提供了免费的GPU使用,可以在上面跑tensorflow等框架。
mmdetection集成了多种目标检测算法,它的git地址,环境要求在官方文档中。我在Google Colaboratory上搭建环境的时候遇到了问题,记录如下。
安装过程
安装成功的环境
OS: Ubuntu18.04
CUDA:10.0
NCCL: 1.3.5
GCC(G++): 5.5
具体安装步骤
1.安装Anaconda3
!wget -q https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
!chmod +x Anaconda3-2019.10-Linux-x86_64.sh
!bash ./Anaconda3-2019.10-Linux-x86_64.sh -b -f -p /content/anaconda3
# set PATH environment variable
import os
os.environ['PATH'] = "/content/anaconda3/bin:" + os.environ['PATH']
2.安装gcc(g++5)
由于系统自带的gcc是为7.4.0,需要替换成5.5版本
!apt-get install gcc-5 g++-5
!cd /u

本文记录了在Google Colaboratory上安装mmdetection的过程,包括安装Anaconda3、降低gcc版本到5.5、安装pytorch和cudatoolkit,以及在安装过程中遇到的问题和解决方案。通过验证和测试环境,确保mmdetection能够正常运行。
最低0.47元/天 解锁文章
936

被折叠的 条评论
为什么被折叠?



