From c57015a166810c072c478a34d94e036dc9f111cb Mon Sep 17 00:00:00 2001 From: xly Date: Mon, 26 Aug 2024 18:04:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20ultralytics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ultralytics/__init__.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ultralytics/__init__.py diff --git a/ultralytics/__init__.py b/ultralytics/__init__.py new file mode 100644 index 0000000..8a0415c --- /dev/null +++ b/ultralytics/__init__.py @@ -0,0 +1,30 @@ +# Ultralytics YOLO 🚀, AGPL-3.0 license + +__version__ = "8.2.64" + +import os + +# Set ENV Variables (place before imports) +os.environ["OMP_NUM_THREADS"] = "1" # reduce CPU utilization during training + +from ultralytics.data.explorer.explorer import Explorer +from ultralytics.models import NAS, RTDETR, SAM, YOLO, FastSAM, YOLOWorld +from ultralytics.utils import ASSETS, SETTINGS +from ultralytics.utils.checks import check_yolo as checks +from ultralytics.utils.downloads import download + +settings = SETTINGS +__all__ = ( + "__version__", + "ASSETS", + "YOLO", + "YOLOWorld", + "NAS", + "SAM", + "FastSAM", + "RTDETR", + "checks", + "download", + "settings", + "Explorer", +)