yolov5系列-[1]-ubuntu安装yolov5环境

yolov5系列-[1]-ubuntu安装yolov5环境

    • @[TOC](yolov5系列-[1]-ubuntu安装yolov5环境)
      • 1. 安装anaconda环境
      • 2. yolov5代码以及安装
      • 3. 多GPU训练 Multi-GPU Training

1. 安装anaconda环境

  1. 下载anaconda
sudo wget https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
bash Anaconda3-2021.11-Linux-x86_64.sh
yes

# conda添加环境变量
sudo vim ~/.bashrc
export PATH="/home/{user}/anaconda3/bin:$PATH"
source ~/.bashrc
  1. 创建yolov5虚拟环境
conda create -n ai-cv-yolov5 python=3.8

2. yolov5代码以及安装

git clone https://github.com/ultralytics/yolov5.git
cd yolov5/
pip install -r requirements.txt

3. 多GPU训练 Multi-GPU Training

参考:Multi-GPU Training

你可能感兴趣的:(人工智能,ubuntu,深度学习,yolov5)