Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.46 KB

INSTALL.md

File metadata and controls

44 lines (34 loc) · 1.46 KB

Installation

This document contains detailed instructions for installing the necessary dependencies for YOLOv4-pytorch. The instrustions have been tested on an Ubuntu 18.04 system and windows 10. We recommend using the install script if you have not already tried that.

Requirements

Step-by-step instructions

Create and activate a conda environment

conda create --name YOLOv4-pytorch python=3.6
conda activate YOLOv4-pytorch

Install PyTorch

Install PyTorch with cuda10.0

conda install pytorch torchvision cudatoolkit=10.0 -c pytorch

Note:

Install numpy,opencv-python, tqdm, argparse, pickleshare and tensorboardX

pip install -r requirements.txt --user

Install the coco toolkit

If you want to use COCO dataset for training, install the coco python toolkit. You additionally need to install cython to compile the coco toolkit.

conda install cython
pip install pycocotools
or using
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
more information please see https://github.com/philferriere/cocoapi