yolo系列各种环境配置运行
yolo各种环境配置运行
- 1 YOLOv11
- 2 YOLOv9
- 3 YOLOv10
1 YOLOv11
windows 10
GPU4090
conda create -n yolov11 python==3.11
activate yolov11
conda install cudatoolkit==11.8.0
conda install pytorch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 pytorch-cuda=11.8 -c pytorch -c nvidia
# ultralytics: 8.3.27
pip install ultralytics
numpy的版本一定要修改,2.0.1会报错,1.26.3好像也会报错
pip install numpy==1.26.4
最终的环境包版本pip list
Package Version
------------------ ---------
asttokens 2.4.1
Brotli 1.0.9
certifi 2024.8.30
charset-normalizer 3.3.2
colorama 0.4.6
comm 0.2.2
contourpy 1.3.0
cycler 0.12.1
debugpy 1.8.7
decorator 5.1.1
exceptiongroup 1.2.2
executing 2.1.0
filelock 3.13.1
fonttools 4.54.1
fsspec 2024.10.0
gmpy2 2.1.2
idna 3.7
importlib_metadata 8.5.0
ipykernel 6.29.5
ipython 8.29.0
jedi 0.19.1
Jinja2 3.1.4
jupyter_client 8.6.3
jupyter_core 5.7.2
kiwisolver 1.4.7
MarkupSafe 2.1.3
matplotlib 3.9.2
matplotlib-inline 0.1.7
mkl_fft 1.3.10
mkl_random 1.2.7
mkl-service 2.4.0
mpmath 1.3.0
nest_asyncio 1.6.0
networkx 3.2.1
numpy 1.26.4
opencv-python 4.10.0.84
packaging 24.1
pandas 2.2.3
parso 0.8.4
pickleshare 0.7.5
pillow 10.4.0
pip 24.2
platformdirs 4.3.6
prompt_toolkit 3.0.48
psutil 6.1.0
pure_eval 0.2.3
py-cpuinfo 9.0.0
pybind11 2.13.6
Pygments 2.18.0
pyparsing 3.2.0
PySocks 1.7.1
python-dateutil 2.9.0
pytz 2024.2
pywin32 307
PyYAML 6.0.2
pyzmq 26.2.0
requests 2.32.3
scipy 1.14.1
seaborn 0.13.2
setuptools 75.1.0
six 1.16.0
stack-data 0.6.2
sympy 1.13.2
torch 2.2.1
torchaudio 2.2.1
torchvision 0.17.1
tornado 6.4.1
tqdm 4.66.6
traitlets 5.14.3
typing_extensions 4.11.0
tzdata 2024.2
ultralytics 8.3.27
ultralytics-thop 2.0.10
urllib3 2.2.3
wcwidth 0.2.13
wheel 0.44.0
win-inet-pton 1.1.0
zipp 3.20.2
2 YOLOv9
windows 10
GPU4090
conda create -n yolo python==3.10.12
activate yolo
conda install cudatoolkit==11.8.0
conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=11.8 -c pytorch -c nvidia
pip install -r requirements.txt
numpy的版本可能需要修改,参考下面的pip list
pip install numpy==x.x.x
最终的环境包版本pip list
Package Version
----------------------- --------------------
absl-py 2.1.0
addict 2.4.0
albucore 0.0.17
albumentations 1.4.18
annotated-types 0.7.0
asttokens 2.4.1
Brotli 1.0.9
cachetools 5.3.3
certifi 2024.2.2
charset-normalizer 2.0.4
colorama 0.4.6
coloredlogs 15.0.1
contourpy 1.2.1
cycler 0.12.1
decorator 5.1.1
eval_type_backport 0.2.0
exceptiongroup 1.2.1
executing 2.0.1
filelock 3.13.1
flatbuffers 24.3.25
fonttools 4.51.0
fsspec 2024.5.0
gitdb 4.0.11
GitPython 3.1.43
gmpy2 2.1.2
google-auth 2.30.0
google-auth-oauthlib 1.0.0
grpcio 1.64.1
humanfriendly 10.0
idna 3.7
imageio 2.35.1
ipython 8.25.0
jedi 0.19.1
Jinja2 3.1.3
joblib 1.4.2
kiwisolver 1.4.5
lazy_loader 0.4
loguru 0.7.2
lxml 5.2.2
Markdown 3.6
markdown-it-py 3.0.0
MarkupSafe 2.1.3
matplotlib 3.9.0
matplotlib-inline 0.1.7
mdurl 0.1.2
mkl-fft 1.3.8
mkl-random 1.2.4
mkl-service 2.4.0
mpmath 1.3.0
networkx 3.1
numpy 1.26.4
oauthlib 3.2.2
onnx 1.14.0
onnx-simplifier 0.4.36
onnxruntime-gpu 1.15.0
opencv-python 4.9.0.80
packaging 24.0
pandas 2.2.2
parso 0.8.4
Pillow 9.5.0
pip 24.0
prompt_toolkit 3.0.47
protobuf 4.23.4
psutil 5.9.8
pure-eval 0.2.2
pyasn1 0.6.0
pyasn1_modules 0.4.0
pycocotools 2.0.7
pydantic 2.9.2
pydantic_core 2.23.4
Pygments 2.18.0
pyparsing 3.1.2
pyreadline3 3.4.1
PySocks 1.7.1
python-dateutil 2.9.0.post0
pytz 2024.1
PyYAML 6.0.1
requests 2.31.0
requests-oauthlib 2.0.0
rich 13.7.1
rsa 4.9
scikit-image 0.24.0
scikit-learn 1.5.0
scipy 1.13.0
seaborn 0.13.2
setuptools 69.5.1
six 1.16.0
smmap 5.0.1
stack-data 0.6.3
sympy 1.12
tabulate 0.9.0
tensorboard 2.17.0
tensorboard-data-server 0.7.2
thop 0.1.1.post2209072238
threadpoolctl 3.5.0
tifffile 2024.9.20
torch 2.1.2
torchaudio 2.1.2
torchvision 0.16.2
tqdm 4.66.4
traitlets 5.14.3
typing_extensions 4.11.0
tzdata 2024.1
urllib3 2.2.1
wcwidth 0.2.13
Werkzeug 3.0.3
wheel 0.43.0
win-inet-pton 1.1.0
win32-setctime 1.1.0
3 YOLOv10
windows 10
GPU4090
conda create -n yolo python==3.10.12
activate yolo
conda install cudatoolkit==11.8.0
conda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 pytorch-cuda=11.8 -c pytorch -c nvidia
# pip install ultralytics 按照官网安装
numpy的版本可能需要修改,参考下面的pip list
pip install numpy==x.x.x
最终的环境包版本pip list
Package Version Editable project location
------------------------- -------------------- ---------------------------------------------------
aiofiles 23.2.1
albucore 0.0.17
altair 5.4.1
annotated-types 0.7.0
anyio 4.6.2.post1
asttokens 2.4.1
attrs 24.2.0
Brotli 1.0.9
certifi 2024.8.30
charset-normalizer 3.3.2
click 8.1.7
colorama 0.4.6
coloredlogs 15.0.1
comm 0.2.2
contourpy 1.3.0
cycler 0.12.1
debugpy 1.8.7
decorator 5.1.1
eval_type_backport 0.2.0
exceptiongroup 1.2.2
executing 2.1.0
fastapi 0.115.2
ffmpy 0.4.0
filelock 3.13.1
flatbuffers 24.3.25
fonttools 4.54.1
fsspec 2024.9.0
gmpy2 2.1.2
gradio 4.31.5
gradio_client 0.16.4
h11 0.14.0
httpcore 1.0.6
httpx 0.27.2
huggingface-hub 0.23.2
humanfriendly 10.0
idna 3.7
imageio 2.35.1
importlib_metadata 8.5.0
importlib_resources 6.4.5
ipykernel 6.29.5
ipython 8.29.0
jedi 0.19.1
Jinja2 3.1.4
jsonschema 4.23.0
jsonschema-specifications 2024.10.1
jupyter_client 8.6.3
jupyter_core 5.7.2
kiwisolver 1.4.7
lapx 0.5.11
lazy_loader 0.4
markdown-it-py 3.0.0
MarkupSafe 2.1.3
matplotlib 3.9.2
matplotlib-inline 0.1.7
mdurl 0.1.2
mkl_fft 1.3.10
mkl_random 1.2.7
mkl-service 2.4.0
mpmath 1.3.0
narwhals 1.9.3
nest_asyncio 1.6.0
networkx 3.2.1
numpy 1.26.4
onnx 1.14.0
onnxruntime 1.15.1
onnxruntime-gpu 1.18.0
onnxslim 0.1.31
opencv-python 4.9.0.80
orjson 3.10.7
packaging 24.1
pandas 2.2.3
parso 0.8.4
pickleshare 0.7.5
pillow 10.4.0
pip 24.2
platformdirs 4.3.6
prompt_toolkit 3.0.48
protobuf 5.28.2
psutil 5.9.8
pure_eval 0.2.3
py-cpuinfo 9.0.0
pycocotools 2.0.7
pydantic 2.9.2
pydantic_core 2.23.4
pydub 0.25.1
Pygments 2.18.0
pyparsing 3.2.0
pyreadline3 3.5.4
PySocks 1.7.1
python-dateutil 2.9.0
python-multipart 0.0.12
pytz 2024.2
pywin32 307
PyYAML 6.0.1
pyzmq 26.2.0
referencing 0.35.1
requests 2.32.3
rich 13.9.2
rpds-py 0.20.0
ruff 0.6.9
safetensors 0.4.3
scikit-image 0.24.0
scipy 1.13.0
seaborn 0.13.2
semantic-version 2.10.0
setuptools 75.1.0
shapely 2.0.6
shellingham 1.5.4
six 1.16.0
sniffio 1.3.1
stack-data 0.6.2
starlette 0.40.0
sympy 1.13.2
thop 0.1.1.post2209072238
tomlkit 0.12.0
torch 2.1.1
torchaudio 2.1.1
torchvision 0.16.1
tornado 6.4.1
tqdm 4.66.5
traitlets 5.14.3
typer 0.12.5
typing_extensions 4.11.0
tzdata 2024.2
ultralytics 8.1.34 C:\Users\Administrator\Desktop\yolov10_code\yolov10
urllib3 2.2.3
uvicorn 0.31.1
wcwidth 0.2.13
websockets 11.0.3
wheel 0.44.0
win-inet-pton 1.1.0
zipp 3.20.2