armanid 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- armanid/__init__.py +21 -0
- armanid/_engine/__init__.py +48 -0
- armanid/_engine/assets/bus.jpg +0 -0
- armanid/_engine/assets/zidane.jpg +0 -0
- armanid/_engine/cfg/__init__.py +1027 -0
- armanid/_engine/cfg/datasets/Argoverse.yaml +78 -0
- armanid/_engine/cfg/datasets/DOTAv1.5.yaml +37 -0
- armanid/_engine/cfg/datasets/DOTAv1.yaml +36 -0
- armanid/_engine/cfg/datasets/GlobalWheat2020.yaml +68 -0
- armanid/_engine/cfg/datasets/HomeObjects-3K.yaml +32 -0
- armanid/_engine/cfg/datasets/ImageNet.yaml +2025 -0
- armanid/_engine/cfg/datasets/Objects365.yaml +447 -0
- armanid/_engine/cfg/datasets/SKU-110K.yaml +58 -0
- armanid/_engine/cfg/datasets/TT100K.yaml +346 -0
- armanid/_engine/cfg/datasets/VOC.yaml +102 -0
- armanid/_engine/cfg/datasets/VisDrone.yaml +87 -0
- armanid/_engine/cfg/datasets/african-wildlife.yaml +25 -0
- armanid/_engine/cfg/datasets/brain-tumor.yaml +22 -0
- armanid/_engine/cfg/datasets/carparts-seg.yaml +44 -0
- armanid/_engine/cfg/datasets/coco-pose.yaml +64 -0
- armanid/_engine/cfg/datasets/coco.yaml +118 -0
- armanid/_engine/cfg/datasets/coco12-formats.yaml +101 -0
- armanid/_engine/cfg/datasets/coco128-seg.yaml +101 -0
- armanid/_engine/cfg/datasets/coco128.yaml +101 -0
- armanid/_engine/cfg/datasets/coco8-grayscale.yaml +103 -0
- armanid/_engine/cfg/datasets/coco8-multispectral.yaml +104 -0
- armanid/_engine/cfg/datasets/coco8-pose.yaml +47 -0
- armanid/_engine/cfg/datasets/coco8-seg.yaml +101 -0
- armanid/_engine/cfg/datasets/coco8.yaml +101 -0
- armanid/_engine/cfg/datasets/construction-ppe.yaml +32 -0
- armanid/_engine/cfg/datasets/crack-seg.yaml +22 -0
- armanid/_engine/cfg/datasets/dog-pose.yaml +52 -0
- armanid/_engine/cfg/datasets/dota128.yaml +35 -0
- armanid/_engine/cfg/datasets/dota8-multispectral.yaml +38 -0
- armanid/_engine/cfg/datasets/dota8.yaml +35 -0
- armanid/_engine/cfg/datasets/hand-keypoints.yaml +50 -0
- armanid/_engine/cfg/datasets/kitti.yaml +27 -0
- armanid/_engine/cfg/datasets/lvis.yaml +1240 -0
- armanid/_engine/cfg/datasets/medical-pills.yaml +21 -0
- armanid/_engine/cfg/datasets/open-images-v7.yaml +0 -0
- armanid/_engine/cfg/default.yaml +133 -0
- armanid/_engine/py.typed +1 -0
- armanid/_engine_patcher.py +64 -0
- armanid/constants.py +81 -0
- armanid/model.py +276 -0
- armanid/od_utils.py +200 -0
- armanid/results.py +75 -0
- armanid/utils.py +96 -0
- armanid-2.0.0.dist-info/METADATA +130 -0
- armanid-2.0.0.dist-info/RECORD +53 -0
- armanid-2.0.0.dist-info/WHEEL +5 -0
- armanid-2.0.0.dist-info/licenses/LICENSE +21 -0
- armanid-2.0.0.dist-info/top_level.txt +1 -0
armanid/__init__.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Armanid — Object Detection Library
|
|
3
|
+
Creator : Arman Guriyan
|
|
4
|
+
Company : Epic Rabbit
|
|
5
|
+
Version : 2.0.0
|
|
6
|
+
"""
|
|
7
|
+
__version__ = "2.0.0"
|
|
8
|
+
__author__ = "Arman Guriyan"
|
|
9
|
+
__company__ = "Epic Rabbit"
|
|
10
|
+
__email__ = "arman@epicrabbit.io"
|
|
11
|
+
__license__ = "MIT"
|
|
12
|
+
|
|
13
|
+
from armanid.model import Armanid
|
|
14
|
+
from armanid.results import DetectionResult, BoundingBox
|
|
15
|
+
from armanid.utils import draw_detections, save_detections, run_webcam
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"Armanid","DetectionResult","BoundingBox",
|
|
19
|
+
"draw_detections","save_detections","run_webcam",
|
|
20
|
+
"__version__","__author__","__company__",
|
|
21
|
+
]
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
|
2
|
+
|
|
3
|
+
__version__ = "8.4.31"
|
|
4
|
+
|
|
5
|
+
import importlib
|
|
6
|
+
import os
|
|
7
|
+
from typing import TYPE_CHECKING
|
|
8
|
+
|
|
9
|
+
# Set ENV variables (place before imports)
|
|
10
|
+
if not os.environ.get("OMP_NUM_THREADS"):
|
|
11
|
+
os.environ["OMP_NUM_THREADS"] = "1" # default for reduced CPU utilization during training
|
|
12
|
+
|
|
13
|
+
from armanid._engine.utils import ASSETS, SETTINGS
|
|
14
|
+
from armanid._engine.utils.checks import check_yolo as checks
|
|
15
|
+
from armanid._engine.utils.downloads import download
|
|
16
|
+
|
|
17
|
+
settings = SETTINGS
|
|
18
|
+
|
|
19
|
+
MODELS = ("YOLO", "YOLOWorld", "YOLOE", "NAS", "SAM", "FastSAM", "RTDETR")
|
|
20
|
+
|
|
21
|
+
__all__ = (
|
|
22
|
+
"__version__",
|
|
23
|
+
"ASSETS",
|
|
24
|
+
*MODELS,
|
|
25
|
+
"checks",
|
|
26
|
+
"download",
|
|
27
|
+
"settings",
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if TYPE_CHECKING:
|
|
31
|
+
# Enable hints for type checkers
|
|
32
|
+
from ultralytics.models import YOLO, YOLOWorld, YOLOE, NAS, SAM, FastSAM, RTDETR # noqa
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def __getattr__(name: str):
|
|
36
|
+
"""Lazy-import model classes on first access."""
|
|
37
|
+
if name in MODELS:
|
|
38
|
+
return getattr(importlib.import_module("armanid._engine.models"), name)
|
|
39
|
+
raise AttributeError(f"module {__name__} has no attribute {name}")
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def __dir__():
|
|
43
|
+
"""Extend dir() to include lazily available model names for IDE autocompletion."""
|
|
44
|
+
return sorted(set(globals()) | set(MODELS))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
if __name__ == "__main__":
|
|
48
|
+
print(__version__)
|
|
Binary file
|
|
Binary file
|