Skip to content

Commit 86decb3

Browse files
authored
Add ultralytics pip package (#10103)
1 parent 0039870 commit 86decb3

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

requirements.txt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
# YOLOv5 requirements
1+
# YOLOv5 🚀 requirements
22
# Usage: pip install -r requirements.txt
33

4-
# Base ----------------------------------------
4+
# Base ------------------------------------------------------------------------
5+
ipython # interactive notebook
56
matplotlib>=3.2.2
67
numpy>=1.18.5
78
opencv-python>=4.1.1
89
Pillow>=7.1.2
10+
psutil # system resources
911
PyYAML>=5.3.1
1012
requests>=2.23.0
1113
scipy>=1.4.1
12-
torch>=1.7.0 # see https://pytorch.org/get-started/locally/ (recommended)
14+
thop>=0.1.1 # FLOPs computation
15+
torch>=1.7.0 # see https://pytorch.org/get-started/locally (recommended)
1316
torchvision>=0.8.1
1417
tqdm>=4.64.0
1518
# protobuf<=3.20.1 # https://github.com/ultralytics/yolov5/issues/8012
1619

17-
# Logging -------------------------------------
20+
# Logging ---------------------------------------------------------------------
1821
tensorboard>=2.4.1
1922
# clearml>=1.2.0
2023
# comet
2124

22-
# Plotting ------------------------------------
25+
# Plotting --------------------------------------------------------------------
2326
pandas>=1.1.4
2427
seaborn>=0.11.0
2528

26-
# Export --------------------------------------
29+
# Export ----------------------------------------------------------------------
2730
# coremltools>=6.0 # CoreML export
2831
# onnx>=1.9.0 # ONNX export
2932
# onnx-simplifier>=0.4.1 # ONNX simplifier
@@ -34,14 +37,12 @@ seaborn>=0.11.0
3437
# tensorflowjs>=3.9.0 # TF.js export
3538
# openvino-dev # OpenVINO export
3639

37-
# Deploy --------------------------------------
40+
# Deploy ----------------------------------------------------------------------
3841
# tritonclient[all]~=2.24.0
3942

40-
# Extras --------------------------------------
41-
ipython # interactive notebook
42-
psutil # system utilization
43-
thop>=0.1.1 # FLOPs computation
43+
# Extras ----------------------------------------------------------------------
4444
# mss # screenshots
4545
# albumentations>=1.0.3
4646
# pycocotools>=2.0 # COCO mAP
4747
# roboflow
48+
# ultralytics # HUB https://hub.ultralytics.com

utils/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apt update && apt install --no-install-recommends -y zip htop screen libgl1-
1616
COPY requirements.txt .
1717
RUN python -m pip install --upgrade pip wheel
1818
RUN pip uninstall -y Pillow torchtext # torch torchvision
19-
RUN pip install --no-cache -r requirements.txt albumentations comet gsutil notebook Pillow>=9.1.0 \
19+
RUN pip install --no-cache -r requirements.txt ultralytics albumentations comet gsutil notebook Pillow>=9.1.0 \
2020
'opencv-python<4.6.0.66' \
2121
--extra-index-url https://download.pytorch.org/whl/cu113
2222

utils/docker/Dockerfile-arm64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt install --no-install-recommends -y python3-pip git zip curl htop gcc lib
1717
# Install pip packages
1818
COPY requirements.txt .
1919
RUN python3 -m pip install --upgrade pip wheel
20-
RUN pip install --no-cache -r requirements.txt gsutil notebook \
20+
RUN pip install --no-cache -r requirements.txt ultralytics gsutil notebook \
2121
tensorflow-aarch64
2222
# tensorflowjs \
2323
# onnx onnx-simplifier onnxruntime \

utils/docker/Dockerfile-cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt install --no-install-recommends -y python3-pip git zip curl htop libgl1-
1717
# Install pip packages
1818
COPY requirements.txt .
1919
RUN python3 -m pip install --upgrade pip wheel
20-
RUN pip install --no-cache -r requirements.txt albumentations gsutil notebook \
20+
RUN pip install --no-cache -r requirements.txt ultralytics albumentations gsutil notebook \
2121
coremltools onnx onnx-simplifier onnxruntime tensorflow-cpu tensorflowjs \
2222
# openvino-dev \
2323
--extra-index-url https://download.pytorch.org/whl/cpu

0 commit comments

Comments
 (0)