From ae3d05a8b85139ab1c0be2b82cf6edcdbecd8a6b Mon Sep 17 00:00:00 2001 From: UltralyticsAssistant Date: Wed, 15 Jan 2025 13:13:49 +0000 Subject: [PATCH] Auto-format by https://ultralytics.com/actions --- benchmarks.py | 1 - classify/predict.py | 1 - classify/train.py | 1 - classify/val.py | 1 - detect.py | 1 - export.py | 1 - hubconf.py | 1 - models/common.py | 1 - models/experimental.py | 1 - models/tf.py | 1 - models/yolo.py | 1 - segment/predict.py | 1 - segment/train.py | 1 - segment/val.py | 1 - train.py | 1 - utils/__init__.py | 1 - utils/activations.py | 1 - utils/augmentations.py | 1 - utils/autoanchor.py | 1 - utils/autobatch.py | 1 - utils/callbacks.py | 1 - utils/dataloaders.py | 1 - utils/downloads.py | 1 - utils/flask_rest_api/example_request.py | 1 - utils/flask_rest_api/restapi.py | 1 - utils/general.py | 1 - utils/loggers/__init__.py | 1 - utils/loggers/clearml/clearml_utils.py | 1 - utils/loss.py | 1 - utils/metrics.py | 1 - utils/plots.py | 1 - utils/segment/augmentations.py | 1 - utils/segment/dataloaders.py | 1 - utils/segment/metrics.py | 1 - utils/torch_utils.py | 1 - utils/triton.py | 1 - val.py | 1 - 37 files changed, 37 deletions(-) diff --git a/benchmarks.py b/benchmarks.py index 96c6ded691..7c215dede6 100644 --- a/benchmarks.py +++ b/benchmarks.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Run YOLOv3 benchmarks on all supported export formats. diff --git a/classify/predict.py b/classify/predict.py index e5c0605a73..9e191933e9 100644 --- a/classify/predict.py +++ b/classify/predict.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Run YOLOv3 classification inference on images, videos, directories, globs, YouTube, webcam, streams, etc. diff --git a/classify/train.py b/classify/train.py index da76954c4d..9eef8e0715 100644 --- a/classify/train.py +++ b/classify/train.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Train a YOLOv3 classifier model on a classification dataset. diff --git a/classify/val.py b/classify/val.py index 1782c83de0..f8079941cc 100644 --- a/classify/val.py +++ b/classify/val.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Validate a trained YOLOv3 classification model on a classification dataset. diff --git a/detect.py b/detect.py index a6a6380a62..6668a504e3 100644 --- a/detect.py +++ b/detect.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Run YOLOv3 detection inference on images, videos, directories, globs, YouTube, webcam, streams, etc. diff --git a/export.py b/export.py index 5c3ad770e0..56ab25b3c8 100644 --- a/export.py +++ b/export.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Export a YOLOv3 PyTorch model to other formats. TensorFlow exports authored by https://github.com/zldrobit. diff --git a/hubconf.py b/hubconf.py index a7aa6471a0..16dcb68477 100644 --- a/hubconf.py +++ b/hubconf.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ PyTorch Hub models https://pytorch.org/hub/ultralytics_yolov5. diff --git a/models/common.py b/models/common.py index ec6197187a..9372150e86 100644 --- a/models/common.py +++ b/models/common.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Common modules.""" import ast diff --git a/models/experimental.py b/models/experimental.py index f13d1bed73..50d1cd0d4a 100644 --- a/models/experimental.py +++ b/models/experimental.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Experimental modules.""" import math diff --git a/models/tf.py b/models/tf.py index 4048fde6de..5f6f2a6374 100644 --- a/models/tf.py +++ b/models/tf.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ TensorFlow, Keras and TFLite versions of YOLOv3 Authored by https://github.com/zldrobit in PR https://github.com/ultralytics/yolov5/pull/1127. diff --git a/models/yolo.py b/models/yolo.py index 46f72e0130..7b00e7ef67 100644 --- a/models/yolo.py +++ b/models/yolo.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ YOLO-specific modules. diff --git a/segment/predict.py b/segment/predict.py index 499922ccd3..529332c12c 100644 --- a/segment/predict.py +++ b/segment/predict.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Run YOLOv3 segmentation inference on images, videos, directories, streams, etc. diff --git a/segment/train.py b/segment/train.py index 0abb118ab7..78ade178da 100644 --- a/segment/train.py +++ b/segment/train.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Train a YOLOv3 segment model on a segment dataset Models and datasets download automatically from the latest YOLOv3 release. diff --git a/segment/val.py b/segment/val.py index 379db21b47..2da9a7e1ac 100644 --- a/segment/val.py +++ b/segment/val.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Validate a trained YOLOv3 segment model on a segment dataset. diff --git a/train.py b/train.py index 485a1d40a0..878f1e614f 100644 --- a/train.py +++ b/train.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Train a YOLOv3 model on a custom dataset. Models and datasets download automatically from the latest YOLOv3 release. diff --git a/utils/__init__.py b/utils/__init__.py index 2979d2261a..a7b86410d0 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """utils/initialization.""" import contextlib diff --git a/utils/activations.py b/utils/activations.py index b764c2ddb4..0a1a79766a 100644 --- a/utils/activations.py +++ b/utils/activations.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Activation functions.""" import torch diff --git a/utils/augmentations.py b/utils/augmentations.py index 7505c347b1..65a0435758 100644 --- a/utils/augmentations.py +++ b/utils/augmentations.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Image augmentation functions.""" import math diff --git a/utils/autoanchor.py b/utils/autoanchor.py index 16481295b7..3599d66865 100644 --- a/utils/autoanchor.py +++ b/utils/autoanchor.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """AutoAnchor utils.""" import random diff --git a/utils/autobatch.py b/utils/autobatch.py index de9f3517c7..915ba35575 100644 --- a/utils/autobatch.py +++ b/utils/autobatch.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Auto-batch utils.""" from copy import deepcopy diff --git a/utils/callbacks.py b/utils/callbacks.py index 2478727163..279741b5d7 100644 --- a/utils/callbacks.py +++ b/utils/callbacks.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Callback utils.""" import threading diff --git a/utils/dataloaders.py b/utils/dataloaders.py index 68e3d283eb..e3227e8470 100644 --- a/utils/dataloaders.py +++ b/utils/dataloaders.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Dataloaders and dataset utils.""" import contextlib diff --git a/utils/downloads.py b/utils/downloads.py index f756ad6772..54d02dcaee 100644 --- a/utils/downloads.py +++ b/utils/downloads.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Download utils.""" import logging diff --git a/utils/flask_rest_api/example_request.py b/utils/flask_rest_api/example_request.py index bf4fa0ba24..db88e80407 100644 --- a/utils/flask_rest_api/example_request.py +++ b/utils/flask_rest_api/example_request.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Perform test request.""" import pprint diff --git a/utils/flask_rest_api/restapi.py b/utils/flask_rest_api/restapi.py index 98930387cf..fa8af4833c 100644 --- a/utils/flask_rest_api/restapi.py +++ b/utils/flask_rest_api/restapi.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Run a Flask REST API exposing one or more YOLOv5s models.""" import argparse diff --git a/utils/general.py b/utils/general.py index e2f30ed301..e8572419cd 100644 --- a/utils/general.py +++ b/utils/general.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """General utils.""" import contextlib diff --git a/utils/loggers/__init__.py b/utils/loggers/__init__.py index 9e7ecce19d..8aaafd1c52 100644 --- a/utils/loggers/__init__.py +++ b/utils/loggers/__init__.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Logging utils.""" import os diff --git a/utils/loggers/clearml/clearml_utils.py b/utils/loggers/clearml/clearml_utils.py index 468dce1af3..215c830cb0 100644 --- a/utils/loggers/clearml/clearml_utils.py +++ b/utils/loggers/clearml/clearml_utils.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Main Logger class for ClearML experiment tracking.""" import glob diff --git a/utils/loss.py b/utils/loss.py index ab147f34c8..b3fa859838 100644 --- a/utils/loss.py +++ b/utils/loss.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Loss functions.""" import torch diff --git a/utils/metrics.py b/utils/metrics.py index e0564cdb8e..205136547e 100644 --- a/utils/metrics.py +++ b/utils/metrics.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Model validation metrics.""" import math diff --git a/utils/plots.py b/utils/plots.py index 2793df65d7..a8fa09c882 100644 --- a/utils/plots.py +++ b/utils/plots.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Plotting utils.""" import contextlib diff --git a/utils/segment/augmentations.py b/utils/segment/augmentations.py index 09220f9822..cdec000e33 100644 --- a/utils/segment/augmentations.py +++ b/utils/segment/augmentations.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Image augmentation functions.""" import math diff --git a/utils/segment/dataloaders.py b/utils/segment/dataloaders.py index f666c8b9b8..ee4ed6c49f 100644 --- a/utils/segment/dataloaders.py +++ b/utils/segment/dataloaders.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Dataloaders.""" import os diff --git a/utils/segment/metrics.py b/utils/segment/metrics.py index 9551ac2557..3ff6c6a58c 100644 --- a/utils/segment/metrics.py +++ b/utils/segment/metrics.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Model validation metrics.""" import numpy as np diff --git a/utils/torch_utils.py b/utils/torch_utils.py index 1cf113cece..9b0f81d76a 100644 --- a/utils/torch_utils.py +++ b/utils/torch_utils.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """PyTorch utils.""" import math diff --git a/utils/triton.py b/utils/triton.py index c216d699c9..630292e6eb 100644 --- a/utils/triton.py +++ b/utils/triton.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """Utils to interact with the Triton Inference Server.""" import typing diff --git a/val.py b/val.py index 924c6b9f21..e33a65816f 100644 --- a/val.py +++ b/val.py @@ -1,5 +1,4 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license - """ Validate a trained YOLOv3 detection model on a detection dataset.