[Building yolox deep learning environment]

1. Environment configuration

First download the yolox model:YOLOX(gitcode)
orYOLOX(github)
a> and select the weight model you need, such as -s-m-l, etc. (.pth file)
If you need to use labview and require onnx model: YOLOX-onnx(github)

2. Install the required library files

Most people on the Internet directly execute pip -r requirements.txt, but after the execution is completed, an error is often reported that the txt file cannot be found
The errors that may occur are:

ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘requirements.txt’

Recommended actions After activating the anaconda environment, enter pip install -r XXX (here is the absolute path of the txt text)\requirements.txt
You can also directly enter the main folder path and enter cmd (the same way as apex enters cmd below)
Enter:

pip install -r requirements.txt

Insert image description here

2.1 Install apex

Find the file storing the yolo model, fill in cmd directly in the address bar, and click Enter
Insert image description here
After entering the following page, enter
Insert image description here

1.git clone https://github.com/NVIDIA/apex.git
2.cd apex
3.pip install -v --disable-pip-version-check --no-cache-dir --global-option=“–cpp_ext” --global-option=“–cuda_ext” ./

Please add image description

Guess you like

Origin blog.csdn.net/m0_64384233/article/details/133354200