From 92c5e10a731b22d694fac9ac4633f29fee6c6eb1 Mon Sep 17 00:00:00 2001 From: kwadkore Date: Wed, 11 Sep 2024 16:19:25 -0500 Subject: [PATCH] Update requirement installation instructions & requirements. The current installation instructions don't work. https://github.com/Megvii-BaseDetection/YOLOX/issues/1368#issuecomment-2228159859 provides instructions that work for installing the library requirements. Update the requirement installation instructions so that newcomers can proceed without having to find the issue that includes the new instructions. --- README.md | 4 +++- docs/quick_run.md | 5 +++-- requirements.txt | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 18d9d40404..33cfc551ac 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,9 @@ Step1. Install YOLOX from source. ```shell git clone git@github.com:Megvii-BaseDetection/YOLOX.git cd YOLOX -pip3 install -v -e . # or python3 setup.py develop +pip3 install -U pip setuptools +pip3 install torch torchvision torchaudio +pip3 install --no-build-isolation -v -e . # or python3 setup.py develop ``` diff --git a/docs/quick_run.md b/docs/quick_run.md index f00bb995ba..cb4df28b5f 100644 --- a/docs/quick_run.md +++ b/docs/quick_run.md @@ -7,8 +7,9 @@ Step1. Install YOLOX. ```shell git clone git@github.com:Megvii-BaseDetection/YOLOX.git cd YOLOX -pip3 install -U pip && pip3 install -r requirements.txt -pip3 install -v -e . # or python3 setup.py develop +pip3 install -U pip setuptools +pip3 install torch torchvision torchaudio +pip3 install --no-build-isolation -v -e . # or python3 setup.py develop ``` Step2. Install [pycocotools](https://github.com/cocodataset/cocoapi). diff --git a/requirements.txt b/requirements.txt index 80f6d17556..df35106cd2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,4 +15,4 @@ tensorboard # pycocotools corresponds to https://github.com/ppwwyyxx/cocoapi pycocotools>=2.0.2 onnx>=1.13.0 -onnx-simplifier==0.4.10 +onnxsim==0.4.13