From deb87d8ce32d703e70cee25dcb0b17c2a956abb9 Mon Sep 17 00:00:00 2001 From: Paula Derrenger <107626595+pderrenger@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:36:11 +0100 Subject: [PATCH] Standardize license headers in Python files (#18696) Signed-off-by: Glenn Jocher Co-authored-by: Glenn Jocher Co-authored-by: UltralyticsAssistant --- docs/build_docs.py | 2 +- docs/build_reference.py | 2 +- docs/en/models/mobile-sam.md | 2 +- docs/en/yolov5/tutorials/clearml_logging_integration.md | 2 +- examples/RTDETR-ONNXRuntime-Python/main.py | 2 ++ examples/YOLOv8-Action-Recognition/action_recognition.py | 2 +- examples/YOLOv8-ONNXRuntime/main.py | 2 +- examples/YOLOv8-OpenCV-ONNX-Python/main.py | 2 +- examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 2 +- examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py | 2 +- examples/YOLOv8-Segmentation-ONNXRuntime-Python/main.py | 2 +- examples/YOLOv8-TFLite-Python/main.py | 2 +- tests/__init__.py | 2 +- tests/conftest.py | 2 +- tests/test_cli.py | 2 +- tests/test_cuda.py | 2 +- tests/test_engine.py | 2 +- tests/test_exports.py | 2 +- tests/test_integrations.py | 2 +- tests/test_python.py | 2 +- tests/test_solutions.py | 2 +- ultralytics/__init__.py | 2 +- ultralytics/cfg/__init__.py | 2 +- ultralytics/data/__init__.py | 2 +- ultralytics/data/annotator.py | 2 +- ultralytics/data/augment.py | 2 +- ultralytics/data/base.py | 2 +- ultralytics/data/build.py | 2 +- ultralytics/data/converter.py | 2 +- ultralytics/data/dataset.py | 2 +- ultralytics/data/loaders.py | 2 +- ultralytics/data/split_dota.py | 2 +- ultralytics/data/utils.py | 2 +- ultralytics/engine/__init__.py | 2 +- ultralytics/engine/exporter.py | 2 +- ultralytics/engine/model.py | 2 +- ultralytics/engine/predictor.py | 2 +- ultralytics/engine/results.py | 2 +- ultralytics/engine/trainer.py | 2 +- ultralytics/engine/tuner.py | 2 +- ultralytics/engine/validator.py | 2 +- ultralytics/hub/__init__.py | 2 +- ultralytics/hub/auth.py | 2 +- ultralytics/hub/google/__init__.py | 2 +- ultralytics/hub/session.py | 2 +- ultralytics/hub/utils.py | 2 +- ultralytics/models/__init__.py | 2 +- ultralytics/models/fastsam/__init__.py | 2 +- ultralytics/models/fastsam/model.py | 2 +- ultralytics/models/fastsam/predict.py | 3 ++- ultralytics/models/fastsam/utils.py | 2 +- ultralytics/models/fastsam/val.py | 2 +- ultralytics/models/nas/__init__.py | 2 +- ultralytics/models/nas/model.py | 2 +- ultralytics/models/nas/predict.py | 2 +- ultralytics/models/nas/val.py | 2 +- ultralytics/models/rtdetr/__init__.py | 2 +- ultralytics/models/rtdetr/model.py | 2 +- ultralytics/models/rtdetr/predict.py | 2 +- ultralytics/models/rtdetr/train.py | 2 +- ultralytics/models/rtdetr/val.py | 2 +- ultralytics/models/sam/__init__.py | 2 +- ultralytics/models/sam/amg.py | 2 +- ultralytics/models/sam/build.py | 2 +- ultralytics/models/sam/model.py | 2 +- ultralytics/models/sam/modules/__init__.py | 2 +- ultralytics/models/sam/modules/blocks.py | 2 +- ultralytics/models/sam/modules/decoders.py | 2 +- ultralytics/models/sam/modules/encoders.py | 2 +- ultralytics/models/sam/modules/memory_attention.py | 2 +- ultralytics/models/sam/modules/sam.py | 2 +- ultralytics/models/sam/modules/tiny_encoder.py | 2 +- ultralytics/models/sam/modules/transformer.py | 2 +- ultralytics/models/sam/modules/utils.py | 2 +- ultralytics/models/sam/predict.py | 2 +- ultralytics/models/utils/__init__.py | 2 +- ultralytics/models/utils/loss.py | 8 +++----- ultralytics/models/utils/ops.py | 2 +- ultralytics/models/yolo/__init__.py | 2 +- ultralytics/models/yolo/classify/__init__.py | 2 +- ultralytics/models/yolo/classify/predict.py | 2 +- ultralytics/models/yolo/classify/train.py | 2 +- ultralytics/models/yolo/classify/val.py | 2 +- ultralytics/models/yolo/detect/__init__.py | 2 +- ultralytics/models/yolo/detect/predict.py | 2 +- ultralytics/models/yolo/detect/train.py | 2 +- ultralytics/models/yolo/detect/val.py | 2 +- ultralytics/models/yolo/model.py | 2 +- ultralytics/models/yolo/obb/__init__.py | 2 +- ultralytics/models/yolo/obb/predict.py | 2 +- ultralytics/models/yolo/obb/train.py | 2 +- ultralytics/models/yolo/obb/val.py | 2 +- ultralytics/models/yolo/pose/__init__.py | 2 +- ultralytics/models/yolo/pose/predict.py | 2 +- ultralytics/models/yolo/pose/train.py | 2 +- ultralytics/models/yolo/pose/val.py | 2 +- ultralytics/models/yolo/segment/__init__.py | 2 +- ultralytics/models/yolo/segment/predict.py | 2 +- ultralytics/models/yolo/segment/train.py | 2 +- ultralytics/models/yolo/segment/val.py | 2 +- ultralytics/models/yolo/world/__init__.py | 2 +- ultralytics/models/yolo/world/train.py | 2 +- ultralytics/models/yolo/world/train_world.py | 2 +- ultralytics/nn/__init__.py | 2 +- ultralytics/nn/autobackend.py | 2 +- ultralytics/nn/modules/__init__.py | 2 +- ultralytics/nn/modules/activation.py | 2 +- ultralytics/nn/modules/block.py | 2 +- ultralytics/nn/modules/conv.py | 2 +- ultralytics/nn/modules/head.py | 2 +- ultralytics/nn/modules/transformer.py | 2 +- ultralytics/nn/modules/utils.py | 2 +- ultralytics/nn/tasks.py | 2 +- ultralytics/solutions/__init__.py | 2 +- ultralytics/solutions/ai_gym.py | 2 +- ultralytics/solutions/analytics.py | 2 +- ultralytics/solutions/distance_calculation.py | 2 +- ultralytics/solutions/heatmap.py | 2 +- ultralytics/solutions/object_counter.py | 2 +- ultralytics/solutions/parking_management.py | 2 +- ultralytics/solutions/queue_management.py | 2 +- ultralytics/solutions/region_counter.py | 2 +- ultralytics/solutions/security_alarm.py | 2 +- ultralytics/solutions/solutions.py | 2 +- ultralytics/solutions/speed_estimation.py | 2 +- ultralytics/solutions/streamlit_inference.py | 2 +- ultralytics/solutions/trackzone.py | 2 +- ultralytics/trackers/__init__.py | 2 +- ultralytics/trackers/basetrack.py | 2 +- ultralytics/trackers/bot_sort.py | 2 +- ultralytics/trackers/byte_tracker.py | 2 +- ultralytics/trackers/track.py | 2 +- ultralytics/trackers/utils/__init__.py | 2 +- ultralytics/trackers/utils/gmc.py | 2 +- ultralytics/trackers/utils/kalman_filter.py | 2 +- ultralytics/trackers/utils/matching.py | 2 +- ultralytics/utils/__init__.py | 2 +- ultralytics/utils/autobatch.py | 2 +- ultralytics/utils/benchmarks.py | 2 +- ultralytics/utils/callbacks/__init__.py | 2 +- ultralytics/utils/callbacks/base.py | 2 +- ultralytics/utils/callbacks/clearml.py | 2 +- ultralytics/utils/callbacks/comet.py | 2 +- ultralytics/utils/callbacks/dvc.py | 2 +- ultralytics/utils/callbacks/hub.py | 2 +- ultralytics/utils/callbacks/mlflow.py | 2 +- ultralytics/utils/callbacks/neptune.py | 2 +- ultralytics/utils/callbacks/raytune.py | 2 +- ultralytics/utils/callbacks/tensorboard.py | 3 +-- ultralytics/utils/callbacks/wb.py | 2 +- ultralytics/utils/checks.py | 2 +- ultralytics/utils/dist.py | 2 +- ultralytics/utils/downloads.py | 2 +- ultralytics/utils/errors.py | 2 +- ultralytics/utils/files.py | 2 +- ultralytics/utils/instance.py | 2 +- ultralytics/utils/loss.py | 2 +- ultralytics/utils/metrics.py | 2 +- ultralytics/utils/ops.py | 2 +- ultralytics/utils/patches.py | 2 +- ultralytics/utils/plotting.py | 2 +- ultralytics/utils/tal.py | 2 +- ultralytics/utils/torch_utils.py | 2 +- ultralytics/utils/triton.py | 2 +- ultralytics/utils/tuner.py | 2 +- 165 files changed, 169 insertions(+), 169 deletions(-) diff --git a/docs/build_docs.py b/docs/build_docs.py index 556149fc..a2c13ab6 100644 --- a/docs/build_docs.py +++ b/docs/build_docs.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Automates the building and post-processing of MkDocs documentation, particularly for projects with multilingual content. It streamlines the workflow for generating localized versions of the documentation and updating HTML links to ensure diff --git a/docs/build_reference.py b/docs/build_reference.py index 104135bf..8478668b 100644 --- a/docs/build_reference.py +++ b/docs/build_reference.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Helper file to build Ultralytics Docs reference section. Recursively walks through ultralytics dir and builds an MkDocs reference section of *.md files composed of classes and functions, and also creates a nav menu for use in mkdocs.yaml. diff --git a/docs/en/models/mobile-sam.md b/docs/en/models/mobile-sam.md index 9cfd1708..a65587de 100644 --- a/docs/en/models/mobile-sam.md +++ b/docs/en/models/mobile-sam.md @@ -8,7 +8,7 @@ keywords: MobileSAM, image segmentation, lightweight model, fast segmentation, m # Mobile Segment Anything (MobileSAM) -The MobileSAM paper is now available on [arXiv](https://arxiv.org/pdf/2306.14289.pdf). +The MobileSAM paper is now available on [arXiv](https://arxiv.org/pdf/2306.14289). A demonstration of MobileSAM running on a CPU can be accessed at this [demo link](https://huggingface.co/spaces/dhkim2810/MobileSAM). The performance on a Mac i5 CPU takes approximately 3 seconds. On the Hugging Face demo, the interface and lower-performance CPUs contribute to a slower response, but it continues to function effectively. diff --git a/docs/en/yolov5/tutorials/clearml_logging_integration.md b/docs/en/yolov5/tutorials/clearml_logging_integration.md index 6fd66021..17984f0f 100644 --- a/docs/en/yolov5/tutorials/clearml_logging_integration.md +++ b/docs/en/yolov5/tutorials/clearml_logging_integration.md @@ -10,7 +10,7 @@ keywords: ClearML, YOLOv5, machine learning, experiment tracking, data versionin ## About ClearML -[ClearML](https://clear.ml/) is an [open-source](https://github.com/allegroai/clearml) toolbox designed to save you time ⏱️. +[ClearML](https://clear.ml/) is an [open-source](https://github.com/clearml/clearml) toolbox designed to save you time ⏱️. 🔨 Track every YOLOv5 training run in the experiment manager diff --git a/examples/RTDETR-ONNXRuntime-Python/main.py b/examples/RTDETR-ONNXRuntime-Python/main.py index e8d41df0..d794a7d6 100644 --- a/examples/RTDETR-ONNXRuntime-Python/main.py +++ b/examples/RTDETR-ONNXRuntime-Python/main.py @@ -1,3 +1,5 @@ +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license + import argparse import cv2 diff --git a/examples/YOLOv8-Action-Recognition/action_recognition.py b/examples/YOLOv8-Action-Recognition/action_recognition.py index 0853981e..38b6a252 100644 --- a/examples/YOLOv8-Action-Recognition/action_recognition.py +++ b/examples/YOLOv8-Action-Recognition/action_recognition.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import argparse import time diff --git a/examples/YOLOv8-ONNXRuntime/main.py b/examples/YOLOv8-ONNXRuntime/main.py index 71b251d3..d1e18a40 100644 --- a/examples/YOLOv8-ONNXRuntime/main.py +++ b/examples/YOLOv8-ONNXRuntime/main.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import argparse diff --git a/examples/YOLOv8-OpenCV-ONNX-Python/main.py b/examples/YOLOv8-OpenCV-ONNX-Python/main.py index c58b9ced..e9e095dd 100644 --- a/examples/YOLOv8-OpenCV-ONNX-Python/main.py +++ b/examples/YOLOv8-OpenCV-ONNX-Python/main.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import argparse diff --git a/examples/YOLOv8-Region-Counter/yolov8_region_counter.py b/examples/YOLOv8-Region-Counter/yolov8_region_counter.py index f2f7eb3e..2ce28fb4 100644 --- a/examples/YOLOv8-Region-Counter/yolov8_region_counter.py +++ b/examples/YOLOv8-Region-Counter/yolov8_region_counter.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import argparse from collections import defaultdict diff --git a/examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py b/examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py index 7b1a4cb4..69872dcc 100644 --- a/examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py +++ b/examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import argparse from pathlib import Path diff --git a/examples/YOLOv8-Segmentation-ONNXRuntime-Python/main.py b/examples/YOLOv8-Segmentation-ONNXRuntime-Python/main.py index c1779dea..b8e2e7d5 100644 --- a/examples/YOLOv8-Segmentation-ONNXRuntime-Python/main.py +++ b/examples/YOLOv8-Segmentation-ONNXRuntime-Python/main.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import argparse diff --git a/examples/YOLOv8-TFLite-Python/main.py b/examples/YOLOv8-TFLite-Python/main.py index 2c85faa8..00c40303 100644 --- a/examples/YOLOv8-TFLite-Python/main.py +++ b/examples/YOLOv8-TFLite-Python/main.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import argparse from typing import Tuple, Union diff --git a/tests/__init__.py b/tests/__init__.py index 9ff563de..9e86aa3c 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import ASSETS, ROOT, WEIGHTS_DIR, checks diff --git a/tests/conftest.py b/tests/conftest.py index eda01add..8703d81f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import shutil from pathlib import Path diff --git a/tests/test_cli.py b/tests/test_cli.py index 8c102ed9..aab6d8b4 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import subprocess diff --git a/tests/test_cuda.py b/tests/test_cuda.py index 4fd1a7ae..d94f95bd 100644 --- a/tests/test_cuda.py +++ b/tests/test_cuda.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from itertools import product from pathlib import Path diff --git a/tests/test_engine.py b/tests/test_engine.py index aa4b671e..fe95a5ca 100644 --- a/tests/test_engine.py +++ b/tests/test_engine.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import sys from unittest import mock diff --git a/tests/test_exports.py b/tests/test_exports.py index e540e7d7..34dc32de 100644 --- a/tests/test_exports.py +++ b/tests/test_exports.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import shutil import uuid diff --git a/tests/test_integrations.py b/tests/test_integrations.py index 4c8e0669..8067a178 100644 --- a/tests/test_integrations.py +++ b/tests/test_integrations.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import contextlib import os diff --git a/tests/test_python.py b/tests/test_python.py index c2c25392..644176fb 100644 --- a/tests/test_python.py +++ b/tests/test_python.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import contextlib import csv diff --git a/tests/test_solutions.py b/tests/test_solutions.py index 42a96cb3..056a056f 100644 --- a/tests/test_solutions.py +++ b/tests/test_solutions.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import cv2 import pytest diff --git a/ultralytics/__init__.py b/ultralytics/__init__.py index 67d53341..1794888d 100644 --- a/ultralytics/__init__.py +++ b/ultralytics/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license __version__ = "8.3.61" diff --git a/ultralytics/cfg/__init__.py b/ultralytics/cfg/__init__.py index 8cb29bc2..8625f7c9 100644 --- a/ultralytics/cfg/__init__.py +++ b/ultralytics/cfg/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import shutil import subprocess diff --git a/ultralytics/data/__init__.py b/ultralytics/data/__init__.py index 834432e2..a5d258d5 100644 --- a/ultralytics/data/__init__.py +++ b/ultralytics/data/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .base import BaseDataset from .build import build_dataloader, build_grounding, build_yolo_dataset, load_inference_source diff --git a/ultralytics/data/annotator.py b/ultralytics/data/annotator.py index fc3b8d07..982e5de5 100644 --- a/ultralytics/data/annotator.py +++ b/ultralytics/data/annotator.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from pathlib import Path diff --git a/ultralytics/data/augment.py b/ultralytics/data/augment.py index 1025cc86..72152693 100644 --- a/ultralytics/data/augment.py +++ b/ultralytics/data/augment.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import math import random diff --git a/ultralytics/data/base.py b/ultralytics/data/base.py index 02b3b87b..446b4ecf 100644 --- a/ultralytics/data/base.py +++ b/ultralytics/data/base.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import glob import math diff --git a/ultralytics/data/build.py b/ultralytics/data/build.py index df342503..6493a443 100644 --- a/ultralytics/data/build.py +++ b/ultralytics/data/build.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import os import random diff --git a/ultralytics/data/converter.py b/ultralytics/data/converter.py index 582154d7..05a316b4 100644 --- a/ultralytics/data/converter.py +++ b/ultralytics/data/converter.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import json import random diff --git a/ultralytics/data/dataset.py b/ultralytics/data/dataset.py index 56bf6cdc..1817c35c 100644 --- a/ultralytics/data/dataset.py +++ b/ultralytics/data/dataset.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import json from collections import defaultdict diff --git a/ultralytics/data/loaders.py b/ultralytics/data/loaders.py index ae5677cc..3a04bb03 100644 --- a/ultralytics/data/loaders.py +++ b/ultralytics/data/loaders.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import glob import math diff --git a/ultralytics/data/split_dota.py b/ultralytics/data/split_dota.py index 4a4ce3a4..a8f17d41 100644 --- a/ultralytics/data/split_dota.py +++ b/ultralytics/data/split_dota.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import itertools from glob import glob diff --git a/ultralytics/data/utils.py b/ultralytics/data/utils.py index 4b9d07af..d5244454 100644 --- a/ultralytics/data/utils.py +++ b/ultralytics/data/utils.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import hashlib import json diff --git a/ultralytics/engine/__init__.py b/ultralytics/engine/__init__.py index 9e68dc12..77a19dcf 100644 --- a/ultralytics/engine/__init__.py +++ b/ultralytics/engine/__init__.py @@ -1 +1 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license diff --git a/ultralytics/engine/exporter.py b/ultralytics/engine/exporter.py index 3486a62f..56f8ed06 100644 --- a/ultralytics/engine/exporter.py +++ b/ultralytics/engine/exporter.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Export a YOLO PyTorch model to other formats. TensorFlow exports authored by https://github.com/zldrobit. diff --git a/ultralytics/engine/model.py b/ultralytics/engine/model.py index a357c5d6..9b386900 100644 --- a/ultralytics/engine/model.py +++ b/ultralytics/engine/model.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import inspect from pathlib import Path diff --git a/ultralytics/engine/predictor.py b/ultralytics/engine/predictor.py index 78499235..d10fce5a 100644 --- a/ultralytics/engine/predictor.py +++ b/ultralytics/engine/predictor.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Run prediction on images, videos, directories, globs, YouTube, webcam, streams, etc. diff --git a/ultralytics/engine/results.py b/ultralytics/engine/results.py index eefd29f5..911ff406 100644 --- a/ultralytics/engine/results.py +++ b/ultralytics/engine/results.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Ultralytics Results, Boxes and Masks classes for handling inference results. diff --git a/ultralytics/engine/trainer.py b/ultralytics/engine/trainer.py index 0d110fd1..61c7d4ed 100644 --- a/ultralytics/engine/trainer.py +++ b/ultralytics/engine/trainer.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Train a model on a dataset. diff --git a/ultralytics/engine/tuner.py b/ultralytics/engine/tuner.py index 1b695d29..68a69632 100644 --- a/ultralytics/engine/tuner.py +++ b/ultralytics/engine/tuner.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Module provides functionalities for hyperparameter tuning of the Ultralytics YOLO models for object detection, instance segmentation, image classification, pose estimation, and multi-object tracking. diff --git a/ultralytics/engine/validator.py b/ultralytics/engine/validator.py index 1f8b32b0..6dc8026f 100644 --- a/ultralytics/engine/validator.py +++ b/ultralytics/engine/validator.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Check a model's accuracy on a test or val split of a dataset. diff --git a/ultralytics/hub/__init__.py b/ultralytics/hub/__init__.py index 5b1fc9fa..74c0dfed 100644 --- a/ultralytics/hub/__init__.py +++ b/ultralytics/hub/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import requests diff --git a/ultralytics/hub/auth.py b/ultralytics/hub/auth.py index a12215bb..2e62739f 100644 --- a/ultralytics/hub/auth.py +++ b/ultralytics/hub/auth.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import requests diff --git a/ultralytics/hub/google/__init__.py b/ultralytics/hub/google/__init__.py index 9090297a..0acd2dd2 100644 --- a/ultralytics/hub/google/__init__.py +++ b/ultralytics/hub/google/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import concurrent.futures import statistics diff --git a/ultralytics/hub/session.py b/ultralytics/hub/session.py index 89b5ddfc..37fba131 100644 --- a/ultralytics/hub/session.py +++ b/ultralytics/hub/session.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import shutil import threading diff --git a/ultralytics/hub/utils.py b/ultralytics/hub/utils.py index 469a1c37..5f837588 100644 --- a/ultralytics/hub/utils.py +++ b/ultralytics/hub/utils.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import os import platform diff --git a/ultralytics/models/__init__.py b/ultralytics/models/__init__.py index aff620a9..ead1e923 100644 --- a/ultralytics/models/__init__.py +++ b/ultralytics/models/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .fastsam import FastSAM from .nas import NAS diff --git a/ultralytics/models/fastsam/__init__.py b/ultralytics/models/fastsam/__init__.py index 7be2ba1e..8c224ac8 100644 --- a/ultralytics/models/fastsam/__init__.py +++ b/ultralytics/models/fastsam/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .model import FastSAM from .predict import FastSAMPredictor diff --git a/ultralytics/models/fastsam/model.py b/ultralytics/models/fastsam/model.py index 4e3f44f8..f9deb7a1 100644 --- a/ultralytics/models/fastsam/model.py +++ b/ultralytics/models/fastsam/model.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from pathlib import Path diff --git a/ultralytics/models/fastsam/predict.py b/ultralytics/models/fastsam/predict.py index 63508e7b..0d019afb 100644 --- a/ultralytics/models/fastsam/predict.py +++ b/ultralytics/models/fastsam/predict.py @@ -1,4 +1,5 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license + import torch from PIL import Image diff --git a/ultralytics/models/fastsam/utils.py b/ultralytics/models/fastsam/utils.py index 0f41b1ad..a8e1aa17 100644 --- a/ultralytics/models/fastsam/utils.py +++ b/ultralytics/models/fastsam/utils.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license def adjust_bboxes_to_image_border(boxes, image_shape, threshold=20): diff --git a/ultralytics/models/fastsam/val.py b/ultralytics/models/fastsam/val.py index 9014b27a..aa130dbf 100644 --- a/ultralytics/models/fastsam/val.py +++ b/ultralytics/models/fastsam/val.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.models.yolo.segment import SegmentationValidator from ultralytics.utils.metrics import SegmentMetrics diff --git a/ultralytics/models/nas/__init__.py b/ultralytics/models/nas/__init__.py index b095a050..c36c0a42 100644 --- a/ultralytics/models/nas/__init__.py +++ b/ultralytics/models/nas/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .model import NAS from .predict import NASPredictor diff --git a/ultralytics/models/nas/model.py b/ultralytics/models/nas/model.py index bc0ccc59..10fd72b4 100644 --- a/ultralytics/models/nas/model.py +++ b/ultralytics/models/nas/model.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ YOLO-NAS model interface. diff --git a/ultralytics/models/nas/predict.py b/ultralytics/models/nas/predict.py index 1978f395..e140900e 100644 --- a/ultralytics/models/nas/predict.py +++ b/ultralytics/models/nas/predict.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch diff --git a/ultralytics/models/nas/val.py b/ultralytics/models/nas/val.py index c4fb73b6..c3d0f37e 100644 --- a/ultralytics/models/nas/val.py +++ b/ultralytics/models/nas/val.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch diff --git a/ultralytics/models/rtdetr/__init__.py b/ultralytics/models/rtdetr/__init__.py index 172c74b4..a6d038d6 100644 --- a/ultralytics/models/rtdetr/__init__.py +++ b/ultralytics/models/rtdetr/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .model import RTDETR from .predict import RTDETRPredictor diff --git a/ultralytics/models/rtdetr/model.py b/ultralytics/models/rtdetr/model.py index 440df179..fa4123a8 100644 --- a/ultralytics/models/rtdetr/model.py +++ b/ultralytics/models/rtdetr/model.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Interface for Baidu's RT-DETR, a Vision Transformer-based real-time object detector. RT-DETR offers real-time performance and high accuracy, excelling in accelerated backends like CUDA with TensorRT. It features an efficient diff --git a/ultralytics/models/rtdetr/predict.py b/ultralytics/models/rtdetr/predict.py index 49225435..782cc2f6 100644 --- a/ultralytics/models/rtdetr/predict.py +++ b/ultralytics/models/rtdetr/predict.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch diff --git a/ultralytics/models/rtdetr/train.py b/ultralytics/models/rtdetr/train.py index 962aeaf9..2fc30f9f 100644 --- a/ultralytics/models/rtdetr/train.py +++ b/ultralytics/models/rtdetr/train.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from copy import copy diff --git a/ultralytics/models/rtdetr/val.py b/ultralytics/models/rtdetr/val.py index 6ecc1d2c..a218b4af 100644 --- a/ultralytics/models/rtdetr/val.py +++ b/ultralytics/models/rtdetr/val.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch diff --git a/ultralytics/models/sam/__init__.py b/ultralytics/models/sam/__init__.py index 30e34236..2d9de7b6 100644 --- a/ultralytics/models/sam/__init__.py +++ b/ultralytics/models/sam/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .model import SAM from .predict import Predictor, SAM2Predictor, SAM2VideoPredictor diff --git a/ultralytics/models/sam/amg.py b/ultralytics/models/sam/amg.py index 5219c43e..4abce4cd 100644 --- a/ultralytics/models/sam/amg.py +++ b/ultralytics/models/sam/amg.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import math from itertools import product diff --git a/ultralytics/models/sam/build.py b/ultralytics/models/sam/build.py index cee5133a..47c9d5a3 100644 --- a/ultralytics/models/sam/build.py +++ b/ultralytics/models/sam/build.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. diff --git a/ultralytics/models/sam/model.py b/ultralytics/models/sam/model.py index 97349a66..d9fb501b 100644 --- a/ultralytics/models/sam/model.py +++ b/ultralytics/models/sam/model.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ SAM model interface. diff --git a/ultralytics/models/sam/modules/__init__.py b/ultralytics/models/sam/modules/__init__.py index 9e68dc12..77a19dcf 100644 --- a/ultralytics/models/sam/modules/__init__.py +++ b/ultralytics/models/sam/modules/__init__.py @@ -1 +1 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license diff --git a/ultralytics/models/sam/modules/blocks.py b/ultralytics/models/sam/modules/blocks.py index c6d75c6e..9abcc440 100644 --- a/ultralytics/models/sam/modules/blocks.py +++ b/ultralytics/models/sam/modules/blocks.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import copy import math diff --git a/ultralytics/models/sam/modules/decoders.py b/ultralytics/models/sam/modules/decoders.py index 7c27ca17..ee9497f6 100644 --- a/ultralytics/models/sam/modules/decoders.py +++ b/ultralytics/models/sam/modules/decoders.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from typing import List, Optional, Tuple, Type diff --git a/ultralytics/models/sam/modules/encoders.py b/ultralytics/models/sam/modules/encoders.py index 9ad27300..a6e9fae8 100644 --- a/ultralytics/models/sam/modules/encoders.py +++ b/ultralytics/models/sam/modules/encoders.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from typing import List, Optional, Tuple, Type diff --git a/ultralytics/models/sam/modules/memory_attention.py b/ultralytics/models/sam/modules/memory_attention.py index b55b0730..14998f37 100644 --- a/ultralytics/models/sam/modules/memory_attention.py +++ b/ultralytics/models/sam/modules/memory_attention.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import copy from typing import Optional diff --git a/ultralytics/models/sam/modules/sam.py b/ultralytics/models/sam/modules/sam.py index 920df39c..420a4c3b 100644 --- a/ultralytics/models/sam/modules/sam.py +++ b/ultralytics/models/sam/modules/sam.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. diff --git a/ultralytics/models/sam/modules/tiny_encoder.py b/ultralytics/models/sam/modules/tiny_encoder.py index b347c328..1b181f7a 100644 --- a/ultralytics/models/sam/modules/tiny_encoder.py +++ b/ultralytics/models/sam/modules/tiny_encoder.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license # -------------------------------------------------------- # TinyViT Model Architecture diff --git a/ultralytics/models/sam/modules/transformer.py b/ultralytics/models/sam/modules/transformer.py index 5cc0b02f..9b9c2bf6 100644 --- a/ultralytics/models/sam/modules/transformer.py +++ b/ultralytics/models/sam/modules/transformer.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import math from typing import Tuple, Type diff --git a/ultralytics/models/sam/modules/utils.py b/ultralytics/models/sam/modules/utils.py index 8bfb1376..6751b87d 100644 --- a/ultralytics/models/sam/modules/utils.py +++ b/ultralytics/models/sam/modules/utils.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from typing import Tuple diff --git a/ultralytics/models/sam/predict.py b/ultralytics/models/sam/predict.py index 0a2776f3..345fc7c9 100644 --- a/ultralytics/models/sam/predict.py +++ b/ultralytics/models/sam/predict.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Generate predictions using the Segment Anything Model (SAM). diff --git a/ultralytics/models/utils/__init__.py b/ultralytics/models/utils/__init__.py index 9e68dc12..77a19dcf 100644 --- a/ultralytics/models/utils/__init__.py +++ b/ultralytics/models/utils/__init__.py @@ -1 +1 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license diff --git a/ultralytics/models/utils/loss.py b/ultralytics/models/utils/loss.py index 54aed909..42f43743 100644 --- a/ultralytics/models/utils/loss.py +++ b/ultralytics/models/utils/loss.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch import torch.nn as nn @@ -243,13 +243,11 @@ class DETRLoss(nn.Module): if len(gt_bboxes): gt_scores[idx] = bbox_iou(pred_bboxes.detach(), gt_bboxes, xywh=True).squeeze(-1) - loss = { + return { **self._get_loss_class(pred_scores, targets, gt_scores, len(gt_bboxes), postfix), **self._get_loss_bbox(pred_bboxes, gt_bboxes, postfix), + # **(self._get_loss_mask(masks, gt_mask, match_indices, postfix) if masks is not None and gt_mask is not None else {}) } - # if masks is not None and gt_mask is not None: - # loss.update(self._get_loss_mask(masks, gt_mask, match_indices, postfix)) - return loss def forward(self, pred_bboxes, pred_scores, batch, postfix="", **kwargs): """ diff --git a/ultralytics/models/utils/ops.py b/ultralytics/models/utils/ops.py index 51dba006..eafc7440 100644 --- a/ultralytics/models/utils/ops.py +++ b/ultralytics/models/utils/ops.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch import torch.nn as nn diff --git a/ultralytics/models/yolo/__init__.py b/ultralytics/models/yolo/__init__.py index 8d9aedfe..95006d43 100644 --- a/ultralytics/models/yolo/__init__.py +++ b/ultralytics/models/yolo/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.models.yolo import classify, detect, obb, pose, segment, world diff --git a/ultralytics/models/yolo/classify/__init__.py b/ultralytics/models/yolo/classify/__init__.py index ca92f892..3a106292 100644 --- a/ultralytics/models/yolo/classify/__init__.py +++ b/ultralytics/models/yolo/classify/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.models.yolo.classify.predict import ClassificationPredictor from ultralytics.models.yolo.classify.train import ClassificationTrainer diff --git a/ultralytics/models/yolo/classify/predict.py b/ultralytics/models/yolo/classify/predict.py index 385f75bc..35526266 100644 --- a/ultralytics/models/yolo/classify/predict.py +++ b/ultralytics/models/yolo/classify/predict.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import cv2 import torch diff --git a/ultralytics/models/yolo/classify/train.py b/ultralytics/models/yolo/classify/train.py index 9ff35385..fba69664 100644 --- a/ultralytics/models/yolo/classify/train.py +++ b/ultralytics/models/yolo/classify/train.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from copy import copy diff --git a/ultralytics/models/yolo/classify/val.py b/ultralytics/models/yolo/classify/val.py index 67333f26..0ae9a012 100644 --- a/ultralytics/models/yolo/classify/val.py +++ b/ultralytics/models/yolo/classify/val.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch diff --git a/ultralytics/models/yolo/detect/__init__.py b/ultralytics/models/yolo/detect/__init__.py index 5f3e62c1..caece94a 100644 --- a/ultralytics/models/yolo/detect/__init__.py +++ b/ultralytics/models/yolo/detect/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .predict import DetectionPredictor from .train import DetectionTrainer diff --git a/ultralytics/models/yolo/detect/predict.py b/ultralytics/models/yolo/detect/predict.py index 136f9882..4d9da896 100644 --- a/ultralytics/models/yolo/detect/predict.py +++ b/ultralytics/models/yolo/detect/predict.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.engine.predictor import BasePredictor from ultralytics.engine.results import Results diff --git a/ultralytics/models/yolo/detect/train.py b/ultralytics/models/yolo/detect/train.py index 4a32acec..eea16e73 100644 --- a/ultralytics/models/yolo/detect/train.py +++ b/ultralytics/models/yolo/detect/train.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import math import random diff --git a/ultralytics/models/yolo/detect/val.py b/ultralytics/models/yolo/detect/val.py index 0e67088c..d5fcbfe5 100644 --- a/ultralytics/models/yolo/detect/val.py +++ b/ultralytics/models/yolo/detect/val.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import os from pathlib import Path diff --git a/ultralytics/models/yolo/model.py b/ultralytics/models/yolo/model.py index 63819603..03bf1535 100644 --- a/ultralytics/models/yolo/model.py +++ b/ultralytics/models/yolo/model.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from pathlib import Path diff --git a/ultralytics/models/yolo/obb/__init__.py b/ultralytics/models/yolo/obb/__init__.py index f60349a7..61e3e3c6 100644 --- a/ultralytics/models/yolo/obb/__init__.py +++ b/ultralytics/models/yolo/obb/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .predict import OBBPredictor from .train import OBBTrainer diff --git a/ultralytics/models/yolo/obb/predict.py b/ultralytics/models/yolo/obb/predict.py index 19308cb6..1608b355 100644 --- a/ultralytics/models/yolo/obb/predict.py +++ b/ultralytics/models/yolo/obb/predict.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch diff --git a/ultralytics/models/yolo/obb/train.py b/ultralytics/models/yolo/obb/train.py index 9c2b08b9..41b7478b 100644 --- a/ultralytics/models/yolo/obb/train.py +++ b/ultralytics/models/yolo/obb/train.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from copy import copy diff --git a/ultralytics/models/yolo/obb/val.py b/ultralytics/models/yolo/obb/val.py index d8c32cc6..d75f1629 100644 --- a/ultralytics/models/yolo/obb/val.py +++ b/ultralytics/models/yolo/obb/val.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from pathlib import Path diff --git a/ultralytics/models/yolo/pose/__init__.py b/ultralytics/models/yolo/pose/__init__.py index d5669430..396167b0 100644 --- a/ultralytics/models/yolo/pose/__init__.py +++ b/ultralytics/models/yolo/pose/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .predict import PosePredictor from .train import PoseTrainer diff --git a/ultralytics/models/yolo/pose/predict.py b/ultralytics/models/yolo/pose/predict.py index c9d0a23a..a382d138 100644 --- a/ultralytics/models/yolo/pose/predict.py +++ b/ultralytics/models/yolo/pose/predict.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.engine.results import Results from ultralytics.models.yolo.detect.predict import DetectionPredictor diff --git a/ultralytics/models/yolo/pose/train.py b/ultralytics/models/yolo/pose/train.py index e52f449c..5360f2f7 100644 --- a/ultralytics/models/yolo/pose/train.py +++ b/ultralytics/models/yolo/pose/train.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from copy import copy diff --git a/ultralytics/models/yolo/pose/val.py b/ultralytics/models/yolo/pose/val.py index af2ed835..67805af4 100644 --- a/ultralytics/models/yolo/pose/val.py +++ b/ultralytics/models/yolo/pose/val.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from pathlib import Path diff --git a/ultralytics/models/yolo/segment/__init__.py b/ultralytics/models/yolo/segment/__init__.py index ec1ac799..36a921a9 100644 --- a/ultralytics/models/yolo/segment/__init__.py +++ b/ultralytics/models/yolo/segment/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .predict import SegmentationPredictor from .train import SegmentationTrainer diff --git a/ultralytics/models/yolo/segment/predict.py b/ultralytics/models/yolo/segment/predict.py index 736e03eb..cc9dcfd5 100644 --- a/ultralytics/models/yolo/segment/predict.py +++ b/ultralytics/models/yolo/segment/predict.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.engine.results import Results from ultralytics.models.yolo.detect.predict import DetectionPredictor diff --git a/ultralytics/models/yolo/segment/train.py b/ultralytics/models/yolo/segment/train.py index f5b25ed6..4737f6d6 100644 --- a/ultralytics/models/yolo/segment/train.py +++ b/ultralytics/models/yolo/segment/train.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from copy import copy diff --git a/ultralytics/models/yolo/segment/val.py b/ultralytics/models/yolo/segment/val.py index e93f53b8..bd77ac7a 100644 --- a/ultralytics/models/yolo/segment/val.py +++ b/ultralytics/models/yolo/segment/val.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from multiprocessing.pool import ThreadPool from pathlib import Path diff --git a/ultralytics/models/yolo/world/__init__.py b/ultralytics/models/yolo/world/__init__.py index 1d401999..4380d244 100644 --- a/ultralytics/models/yolo/world/__init__.py +++ b/ultralytics/models/yolo/world/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .train import WorldTrainer diff --git a/ultralytics/models/yolo/world/train.py b/ultralytics/models/yolo/world/train.py index 5fffd097..1a16a2d1 100644 --- a/ultralytics/models/yolo/world/train.py +++ b/ultralytics/models/yolo/world/train.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import itertools diff --git a/ultralytics/models/yolo/world/train_world.py b/ultralytics/models/yolo/world/train_world.py index df26986d..3cbdb2a4 100644 --- a/ultralytics/models/yolo/world/train_world.py +++ b/ultralytics/models/yolo/world/train_world.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.data import YOLOConcatDataset, build_grounding, build_yolo_dataset from ultralytics.data.utils import check_det_dataset diff --git a/ultralytics/nn/__init__.py b/ultralytics/nn/__init__.py index 6905d349..f3a54d51 100644 --- a/ultralytics/nn/__init__.py +++ b/ultralytics/nn/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .tasks import ( BaseModel, diff --git a/ultralytics/nn/autobackend.py b/ultralytics/nn/autobackend.py index a89c8cfa..3d7af68b 100644 --- a/ultralytics/nn/autobackend.py +++ b/ultralytics/nn/autobackend.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import ast import json diff --git a/ultralytics/nn/modules/__init__.py b/ultralytics/nn/modules/__init__.py index 147a0a55..0a01d706 100644 --- a/ultralytics/nn/modules/__init__.py +++ b/ultralytics/nn/modules/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Ultralytics modules. diff --git a/ultralytics/nn/modules/activation.py b/ultralytics/nn/modules/activation.py index aaf636e7..cc6b44b4 100644 --- a/ultralytics/nn/modules/activation.py +++ b/ultralytics/nn/modules/activation.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Activation modules.""" import torch diff --git a/ultralytics/nn/modules/block.py b/ultralytics/nn/modules/block.py index 6ea6ef6e..634c835f 100644 --- a/ultralytics/nn/modules/block.py +++ b/ultralytics/nn/modules/block.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Block modules.""" import torch diff --git a/ultralytics/nn/modules/conv.py b/ultralytics/nn/modules/conv.py index 96387ad8..51847078 100644 --- a/ultralytics/nn/modules/conv.py +++ b/ultralytics/nn/modules/conv.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Convolution modules.""" import math diff --git a/ultralytics/nn/modules/head.py b/ultralytics/nn/modules/head.py index 0afb5fd1..b9d05024 100644 --- a/ultralytics/nn/modules/head.py +++ b/ultralytics/nn/modules/head.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Model head modules.""" import copy diff --git a/ultralytics/nn/modules/transformer.py b/ultralytics/nn/modules/transformer.py index bae008ac..c1987369 100644 --- a/ultralytics/nn/modules/transformer.py +++ b/ultralytics/nn/modules/transformer.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Transformer modules.""" import math diff --git a/ultralytics/nn/modules/utils.py b/ultralytics/nn/modules/utils.py index a7c86391..c7837ebe 100644 --- a/ultralytics/nn/modules/utils.py +++ b/ultralytics/nn/modules/utils.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Module utils.""" import copy diff --git a/ultralytics/nn/tasks.py b/ultralytics/nn/tasks.py index 43047432..cdb8fc3d 100644 --- a/ultralytics/nn/tasks.py +++ b/ultralytics/nn/tasks.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import contextlib import pickle diff --git a/ultralytics/solutions/__init__.py b/ultralytics/solutions/__init__.py index 25b7d8fa..635cb3ad 100644 --- a/ultralytics/solutions/__init__.py +++ b/ultralytics/solutions/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .ai_gym import AIGym from .analytics import Analytics diff --git a/ultralytics/solutions/ai_gym.py b/ultralytics/solutions/ai_gym.py index 359ed9dd..4cf48544 100644 --- a/ultralytics/solutions/ai_gym.py +++ b/ultralytics/solutions/ai_gym.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.solutions.solutions import BaseSolution from ultralytics.utils.plotting import Annotator diff --git a/ultralytics/solutions/analytics.py b/ultralytics/solutions/analytics.py index cfdb86bf..3a62e8c2 100644 --- a/ultralytics/solutions/analytics.py +++ b/ultralytics/solutions/analytics.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from itertools import cycle diff --git a/ultralytics/solutions/distance_calculation.py b/ultralytics/solutions/distance_calculation.py index 95d43c20..c0d8e77b 100644 --- a/ultralytics/solutions/distance_calculation.py +++ b/ultralytics/solutions/distance_calculation.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import math diff --git a/ultralytics/solutions/heatmap.py b/ultralytics/solutions/heatmap.py index acb29625..98c79d8f 100644 --- a/ultralytics/solutions/heatmap.py +++ b/ultralytics/solutions/heatmap.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import cv2 import numpy as np diff --git a/ultralytics/solutions/object_counter.py b/ultralytics/solutions/object_counter.py index d52acda7..d202ca51 100644 --- a/ultralytics/solutions/object_counter.py +++ b/ultralytics/solutions/object_counter.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.solutions.solutions import BaseSolution from ultralytics.utils.plotting import Annotator, colors diff --git a/ultralytics/solutions/parking_management.py b/ultralytics/solutions/parking_management.py index fdb710a5..91f91936 100644 --- a/ultralytics/solutions/parking_management.py +++ b/ultralytics/solutions/parking_management.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import json diff --git a/ultralytics/solutions/queue_management.py b/ultralytics/solutions/queue_management.py index 043bd371..4fcf8fa7 100644 --- a/ultralytics/solutions/queue_management.py +++ b/ultralytics/solutions/queue_management.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.solutions.solutions import BaseSolution from ultralytics.utils.plotting import Annotator, colors diff --git a/ultralytics/solutions/region_counter.py b/ultralytics/solutions/region_counter.py index 6f8d4edd..5a2953f3 100644 --- a/ultralytics/solutions/region_counter.py +++ b/ultralytics/solutions/region_counter.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.solutions.solutions import BaseSolution from ultralytics.utils import LOGGER diff --git a/ultralytics/solutions/security_alarm.py b/ultralytics/solutions/security_alarm.py index 73633078..e07119bc 100644 --- a/ultralytics/solutions/security_alarm.py +++ b/ultralytics/solutions/security_alarm.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.solutions.solutions import BaseSolution from ultralytics.utils import LOGGER diff --git a/ultralytics/solutions/solutions.py b/ultralytics/solutions/solutions.py index 5a19599e..8b526f43 100644 --- a/ultralytics/solutions/solutions.py +++ b/ultralytics/solutions/solutions.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from collections import defaultdict diff --git a/ultralytics/solutions/speed_estimation.py b/ultralytics/solutions/speed_estimation.py index 0c4bc5f0..43eacece 100644 --- a/ultralytics/solutions/speed_estimation.py +++ b/ultralytics/solutions/speed_estimation.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from time import time diff --git a/ultralytics/solutions/streamlit_inference.py b/ultralytics/solutions/streamlit_inference.py index fe56a3a4..50cc2584 100644 --- a/ultralytics/solutions/streamlit_inference.py +++ b/ultralytics/solutions/streamlit_inference.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import io from typing import Any diff --git a/ultralytics/solutions/trackzone.py b/ultralytics/solutions/trackzone.py index 0492c0a7..b1d32f2d 100644 --- a/ultralytics/solutions/trackzone.py +++ b/ultralytics/solutions/trackzone.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import cv2 import numpy as np diff --git a/ultralytics/trackers/__init__.py b/ultralytics/trackers/__init__.py index bf51b8df..2919511b 100644 --- a/ultralytics/trackers/__init__.py +++ b/ultralytics/trackers/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .bot_sort import BOTSORT from .byte_tracker import BYTETracker diff --git a/ultralytics/trackers/basetrack.py b/ultralytics/trackers/basetrack.py index c78ee359..47b27269 100644 --- a/ultralytics/trackers/basetrack.py +++ b/ultralytics/trackers/basetrack.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Module defines the base classes and structures for object tracking in YOLO.""" from collections import OrderedDict diff --git a/ultralytics/trackers/bot_sort.py b/ultralytics/trackers/bot_sort.py index 1f10dc7f..8a2d02e0 100644 --- a/ultralytics/trackers/bot_sort.py +++ b/ultralytics/trackers/bot_sort.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from collections import deque diff --git a/ultralytics/trackers/byte_tracker.py b/ultralytics/trackers/byte_tracker.py index 31637de9..807f4ad6 100644 --- a/ultralytics/trackers/byte_tracker.py +++ b/ultralytics/trackers/byte_tracker.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import numpy as np diff --git a/ultralytics/trackers/track.py b/ultralytics/trackers/track.py index b0103cf9..e55db6d4 100644 --- a/ultralytics/trackers/track.py +++ b/ultralytics/trackers/track.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from functools import partial from pathlib import Path diff --git a/ultralytics/trackers/utils/__init__.py b/ultralytics/trackers/utils/__init__.py index 9e68dc12..77a19dcf 100644 --- a/ultralytics/trackers/utils/__init__.py +++ b/ultralytics/trackers/utils/__init__.py @@ -1 +1 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license diff --git a/ultralytics/trackers/utils/gmc.py b/ultralytics/trackers/utils/gmc.py index 22314395..e3cd2dc8 100644 --- a/ultralytics/trackers/utils/gmc.py +++ b/ultralytics/trackers/utils/gmc.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import copy diff --git a/ultralytics/trackers/utils/kalman_filter.py b/ultralytics/trackers/utils/kalman_filter.py index d103d0bb..8a212ba6 100644 --- a/ultralytics/trackers/utils/kalman_filter.py +++ b/ultralytics/trackers/utils/kalman_filter.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import numpy as np import scipy.linalg diff --git a/ultralytics/trackers/utils/matching.py b/ultralytics/trackers/utils/matching.py index 4a3a420a..e4b354f1 100644 --- a/ultralytics/trackers/utils/matching.py +++ b/ultralytics/trackers/utils/matching.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import numpy as np import scipy diff --git a/ultralytics/utils/__init__.py b/ultralytics/utils/__init__.py index f5ff78c1..104c1231 100644 --- a/ultralytics/utils/__init__.py +++ b/ultralytics/utils/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import contextlib import importlib.metadata diff --git a/ultralytics/utils/autobatch.py b/ultralytics/utils/autobatch.py index a2c91c6c..085001a1 100644 --- a/ultralytics/utils/autobatch.py +++ b/ultralytics/utils/autobatch.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Functions for estimating the best YOLO batch size to use a fraction of the available CUDA memory in PyTorch.""" import os diff --git a/ultralytics/utils/benchmarks.py b/ultralytics/utils/benchmarks.py index 8c79ee82..a161f302 100644 --- a/ultralytics/utils/benchmarks.py +++ b/ultralytics/utils/benchmarks.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Benchmark a YOLO model formats for speed and accuracy. diff --git a/ultralytics/utils/callbacks/__init__.py b/ultralytics/utils/callbacks/__init__.py index 116babe9..920cc4fa 100644 --- a/ultralytics/utils/callbacks/__init__.py +++ b/ultralytics/utils/callbacks/__init__.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from .base import add_integration_callbacks, default_callbacks, get_default_callbacks diff --git a/ultralytics/utils/callbacks/base.py b/ultralytics/utils/callbacks/base.py index 98b20256..11e0a897 100644 --- a/ultralytics/utils/callbacks/base.py +++ b/ultralytics/utils/callbacks/base.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Base callbacks.""" from collections import defaultdict diff --git a/ultralytics/utils/callbacks/clearml.py b/ultralytics/utils/callbacks/clearml.py index 05c518d0..5afc7a36 100644 --- a/ultralytics/utils/callbacks/clearml.py +++ b/ultralytics/utils/callbacks/clearml.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import LOGGER, SETTINGS, TESTS_RUNNING diff --git a/ultralytics/utils/callbacks/comet.py b/ultralytics/utils/callbacks/comet.py index ef6e88c3..910e3c42 100644 --- a/ultralytics/utils/callbacks/comet.py +++ b/ultralytics/utils/callbacks/comet.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import LOGGER, RANK, SETTINGS, TESTS_RUNNING, ops from ultralytics.utils.metrics import ClassifyMetrics, DetMetrics, OBBMetrics, PoseMetrics, SegmentMetrics diff --git a/ultralytics/utils/callbacks/dvc.py b/ultralytics/utils/callbacks/dvc.py index ab51dc52..1cc0c632 100644 --- a/ultralytics/utils/callbacks/dvc.py +++ b/ultralytics/utils/callbacks/dvc.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import LOGGER, SETTINGS, TESTS_RUNNING, checks diff --git a/ultralytics/utils/callbacks/hub.py b/ultralytics/utils/callbacks/hub.py index aa2d1585..4709fbea 100644 --- a/ultralytics/utils/callbacks/hub.py +++ b/ultralytics/utils/callbacks/hub.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import json from time import time diff --git a/ultralytics/utils/callbacks/mlflow.py b/ultralytics/utils/callbacks/mlflow.py index 33faa5a5..49c8a200 100644 --- a/ultralytics/utils/callbacks/mlflow.py +++ b/ultralytics/utils/callbacks/mlflow.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ MLflow Logging for Ultralytics YOLO. diff --git a/ultralytics/utils/callbacks/neptune.py b/ultralytics/utils/callbacks/neptune.py index 978a445b..7adfdad1 100644 --- a/ultralytics/utils/callbacks/neptune.py +++ b/ultralytics/utils/callbacks/neptune.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import LOGGER, SETTINGS, TESTS_RUNNING diff --git a/ultralytics/utils/callbacks/raytune.py b/ultralytics/utils/callbacks/raytune.py index d92dc322..e7e01d09 100644 --- a/ultralytics/utils/callbacks/raytune.py +++ b/ultralytics/utils/callbacks/raytune.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import SETTINGS diff --git a/ultralytics/utils/callbacks/tensorboard.py b/ultralytics/utils/callbacks/tensorboard.py index 5f4e0f02..2920fa23 100644 --- a/ultralytics/utils/callbacks/tensorboard.py +++ b/ultralytics/utils/callbacks/tensorboard.py @@ -1,5 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license - +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import LOGGER, SETTINGS, TESTS_RUNNING, colorstr diff --git a/ultralytics/utils/callbacks/wb.py b/ultralytics/utils/callbacks/wb.py index 0898a293..7242d51e 100644 --- a/ultralytics/utils/callbacks/wb.py +++ b/ultralytics/utils/callbacks/wb.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import SETTINGS, TESTS_RUNNING from ultralytics.utils.torch_utils import model_info_for_loggers diff --git a/ultralytics/utils/checks.py b/ultralytics/utils/checks.py index 335b53ae..b3162711 100644 --- a/ultralytics/utils/checks.py +++ b/ultralytics/utils/checks.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import glob import inspect diff --git a/ultralytics/utils/dist.py b/ultralytics/utils/dist.py index 5564db32..8b7e5bbe 100644 --- a/ultralytics/utils/dist.py +++ b/ultralytics/utils/dist.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import os import shutil diff --git a/ultralytics/utils/downloads.py b/ultralytics/utils/downloads.py index 5d535b6f..8c948575 100644 --- a/ultralytics/utils/downloads.py +++ b/ultralytics/utils/downloads.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import re import shutil diff --git a/ultralytics/utils/errors.py b/ultralytics/utils/errors.py index 86aee1d9..8cb7aae1 100644 --- a/ultralytics/utils/errors.py +++ b/ultralytics/utils/errors.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.utils import emojis diff --git a/ultralytics/utils/files.py b/ultralytics/utils/files.py index 059e9588..0af6b0c2 100644 --- a/ultralytics/utils/files.py +++ b/ultralytics/utils/files.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import contextlib import glob diff --git a/ultralytics/utils/instance.py b/ultralytics/utils/instance.py index aac23d23..e92a9614 100644 --- a/ultralytics/utils/instance.py +++ b/ultralytics/utils/instance.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from collections import abc from itertools import repeat diff --git a/ultralytics/utils/loss.py b/ultralytics/utils/loss.py index 857fccf4..f42a5778 100644 --- a/ultralytics/utils/loss.py +++ b/ultralytics/utils/loss.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch import torch.nn as nn diff --git a/ultralytics/utils/metrics.py b/ultralytics/utils/metrics.py index 7781b55e..2b5821cb 100644 --- a/ultralytics/utils/metrics.py +++ b/ultralytics/utils/metrics.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Model validation metrics.""" import math diff --git a/ultralytics/utils/ops.py b/ultralytics/utils/ops.py index b2c453a2..52b51552 100644 --- a/ultralytics/utils/ops.py +++ b/ultralytics/utils/ops.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import contextlib import math diff --git a/ultralytics/utils/patches.py b/ultralytics/utils/patches.py index e9ba5dfb..1531cd7f 100644 --- a/ultralytics/utils/patches.py +++ b/ultralytics/utils/patches.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Monkey patches to update/extend functionality of existing functions.""" import time diff --git a/ultralytics/utils/plotting.py b/ultralytics/utils/plotting.py index 3f071805..c308e8d2 100644 --- a/ultralytics/utils/plotting.py +++ b/ultralytics/utils/plotting.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import math import warnings diff --git a/ultralytics/utils/tal.py b/ultralytics/utils/tal.py index eec2a3b2..e4a40f5e 100644 --- a/ultralytics/utils/tal.py +++ b/ultralytics/utils/tal.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import torch import torch.nn as nn diff --git a/ultralytics/utils/torch_utils.py b/ultralytics/utils/torch_utils.py index fc8dc71e..85f511e6 100644 --- a/ultralytics/utils/torch_utils.py +++ b/ultralytics/utils/torch_utils.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license import gc import math diff --git a/ultralytics/utils/triton.py b/ultralytics/utils/triton.py index cc53ed57..e8b97d89 100644 --- a/ultralytics/utils/triton.py +++ b/ultralytics/utils/triton.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from typing import List from urllib.parse import urlsplit diff --git a/ultralytics/utils/tuner.py b/ultralytics/utils/tuner.py index 165c788a..0b0ac765 100644 --- a/ultralytics/utils/tuner.py +++ b/ultralytics/utils/tuner.py @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license from ultralytics.cfg import TASK2DATA, TASK2METRIC, get_save_dir from ultralytics.utils import DEFAULT_CFG, DEFAULT_CFG_DICT, LOGGER, NUM_THREADS, checks