Skip to content

Commit 2d3d8dc

Browse files
committed
Corrections for Linux non-GPU install
1 parent ad41456 commit 2d3d8dc

File tree

3 files changed

+33
-28
lines changed

3 files changed

+33
-28
lines changed

modulesettings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"ObjectDetectionYOLOv8": {
55
"Name": "Object Detection (YOLOv8)",
6-
"Version": "1.6.1",
6+
"Version": "1.6.2",
77

88
"PublishingInfo" : {
99
"Description" : "Provides Object Detection in Python>=3.8 using YOLOv8. Great for newer NVIDIA GPUs",
@@ -64,7 +64,8 @@
6464
{ "ModuleVersion": "1.4.3", "ServerVersionRange": [ "2.6.0", "2.6.0" ], "ReleaseDate": "2024-04-07", "ReleaseNotes": "Added thread lock to address multi-threaded issue" },
6565
{ "ModuleVersion": "1.5.0", "ServerVersionRange": [ "2.6.5", "2.7.0" ], "ReleaseDate": "2024-04-25", "ReleaseNotes": "Corrected NumPy 2.0 issue" },
6666
{ "ModuleVersion": "1.6.0", "ServerVersionRange": [ "2.8.0", "2.9.3" ], "ReleaseDate": "2024-08-02", "ReleaseNotes": "Updated for server 2.8" },
67-
{ "ModuleVersion": "1.6.1", "ServerVersionRange": [ "2.9.4", "" ], "ReleaseDate": "2024-11-26", "ReleaseNotes": "Support for dual Ubuntu/Debian install" }
67+
{ "ModuleVersion": "1.6.1", "ServerVersionRange": [ "2.9.4", "" ], "ReleaseDate": "2024-11-26", "ReleaseNotes": "Support for dual Ubuntu/Debian install" },
68+
{ "ModuleVersion": "1.6.2", "ServerVersionRange": [ "2.9.4", "" ], "ReleaseDate": "2024-12-03", "ReleaseNotes": "Corrections for Linux, non-GPU install" }
6869
],
6970
"DownloadableModels":[
7071
{ "Name": "YOLOv8 Object Detection all sizes", "Filename": "objectdetection-coco-yolov8-pt-nsmlx.zip", "Folder": "assets", "Description": "YOLOv8 object detection using the COCO dataset. Sizes N(ano), S, M, L, XL", "FileSizeKb": 275800, "PreInstall": true },

requirements.linux.txt

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
#! Python3.8
22

3-
numpy<2.0 # Installing NumPy, a package for scientific computing
4-
5-
# Pandas # Installing Pandas, a data analysis / data manipulation tool
6-
# CoreMLTools # Installing CoreMLTools, for working with .mlmodel format models
7-
# OpenCV-Python # Installing OpenCV, the Open source Computer Vision library
8-
# Pillow<10.0.0 # Installing Pillow, a Python Image Library
9-
# SciPy # Installing SciPy, a library for mathematics, science, and engineering
10-
# PyYAML # Installing PyYAML, a library for reading configuration files
11-
12-
# Torch # Installing Torch, for Tensor computation and Deep neural networks
13-
# TorchVision # Installing TorchVision, for Computer Vision based AI
14-
15-
# We'll lock down to Torch 1.X, CPU-only to play it safe
16-
--extra-index-url https://download.pytorch.org/whl/cpu
17-
torch==1.13.1+cpu # Installing Torch, for Tensor computation and Deep neural networks
18-
--extra-index-url https://download.pytorch.org/whl/cpu
19-
torchvision==0.14.1+cpu # Installing TorchVision, for Computer Vision based AI
20-
21-
# Specific version because we have a patch
22-
ultralytics==8.1.2 # Installing Ultralytics package for object detection in images
23-
24-
# We need this, but we don't need this.
25-
# Seaborn # Installing Seaborn, a data visualization library based on matplotlib
26-
27-
CodeProject-AI-SDK # Installing the CodeProject.AI SDK
3+
# Based on the answer for pleas to Ultralyitcs to not include the full bloated NVIDA libraries
4+
# when no GPU present: https://github.com/ultralytics/ultralytics/issues/749#issuecomment-1806360075
5+
6+
opencv-python-headless==4.8.1.78 # Installing OpenCV (headless), the Open source Computer Vision library
7+
numpy==1.26.0 # Installing NumPy, a package for scientific computing
8+
matplotlib>=3.3.0 # Installing Matplotlib, the Python plotting package
9+
opencv-python>=4.6.0 # Installing OpenCV, the Open source Computer Vision library
10+
pillow>=7.1.2 # Installing Pillow, a Python Image Library
11+
pyyaml>=5.3.1 # Installing PyYAML, a library for reading configuration files
12+
requests>=2.23.0 # Installing Requests, the HTTP library
13+
scipy>=1.4.1 # Installing SciPy, a library for mathematics, science, and engineering
14+
tqdm>=4.64.0 # Installing TDQM, the Fast, Extensible Progress Meter
15+
pandas>=1.1.4 # Installing Pandas, a data analysis / data manipulation tool
16+
psutil # Installing psutil, a tool to check system utilization
17+
dill # Installing dill, for serializing and de-serializing Python objects
18+
py-cpuinfo # Installing py-cpuinfo to allow us to query CPU info
19+
20+
#Install torch and torchvision CPU only versions
21+
-f https://download.pytorch.org/whl/cpu/torch_stable.html
22+
torch==1.8.0+cpu # Installing PyTorch, for Tensor computation and Deep neural networks
23+
-f https://download.pytorch.org/whl/cpu/torch_stable.html
24+
torchvision==0.9.0+cpu # Installing TorchVision, for Computer Vision based AI
25+
26+
# Explicitly install ultralytics without optional dependencies (like CUDA).
27+
--no-deps
28+
ultralytics==8.1.2 # Installing Ultralytics package for object detection in images
29+
30+
31+
CodeProject-AI-SDK # Installing the CodeProject.AI SDK
2832

2933
# last line empty.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
numpy<2.0 # Installing NumPy, a package for scientific computing
44

5-
# urllib3<1.27,>=1.25.4 # Installing urllib3, the HTTP client for Python
5+
# urllib3<1.27,>=1.25.4 # Installing urllib3, the HTTP client for Python
66

77
# Pandas # Installing Pandas, a data analysis / data manipulation tool
88
# CoreMLTools # Installing CoreMLTools, for working with .mlmodel format models

0 commit comments

Comments
 (0)