diff --git a/README.md b/README.md
index 42f814eb90..11ff2b82b7 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ To request an Enterprise License please complete the form at [Ultralytics Licens
-
+
@@ -291,7 +291,7 @@ For Ultralytics bug reports and feature requests please visit [GitHub Issues](ht
-
+
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 769c9e1ecb..2d1708a8b6 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -38,7 +38,7 @@
-
+
@@ -293,7 +293,7 @@ Ultralytics 提供两种许可证选项以适应各种使用场景:
-
+
diff --git a/docs/README.md b/docs/README.md
index 37a5ac2a85..564ee06f5b 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,5 +1,5 @@
-
+
# 📚 Ultralytics Docs
@@ -139,7 +139,7 @@ For bug reports and feature requests, navigate to [GitHub Issues](https://github
-
+
diff --git a/docs/en/hub/app/android.md b/docs/en/hub/app/android.md
index 5c96400448..f9d3a32673 100644
--- a/docs/en/hub/app/android.md
+++ b/docs/en/hub/app/android.md
@@ -20,7 +20,7 @@ keywords: Ultralytics, Android app, real-time object detection, YOLO models, Ten
-
+
diff --git a/docs/en/hub/app/index.md b/docs/en/hub/app/index.md
index 3a5d2f795f..968c6887c3 100644
--- a/docs/en/hub/app/index.md
+++ b/docs/en/hub/app/index.md
@@ -20,7 +20,7 @@ keywords: Ultralytics HUB, YOLO models, mobile app, iOS, Android, hardware accel
-
+
diff --git a/docs/en/hub/app/ios.md b/docs/en/hub/app/ios.md
index ef9c4a8869..ad8d21c969 100644
--- a/docs/en/hub/app/ios.md
+++ b/docs/en/hub/app/ios.md
@@ -20,7 +20,7 @@ keywords: Ultralytics, iOS App, YOLO models, real-time object detection, Apple N
-
+
diff --git a/docs/en/hub/index.md b/docs/en/hub/index.md
index 99ace7402f..68f363815d 100644
--- a/docs/en/hub/index.md
+++ b/docs/en/hub/index.md
@@ -43,7 +43,7 @@ We hope that the resources here will help you get the most out of HUB. Please br
-
+
diff --git a/docs/en/index.md b/docs/en/index.md
index b90a85b579..f8fc4e686a 100644
--- a/docs/en/index.md
+++ b/docs/en/index.md
@@ -47,7 +47,7 @@ Explore the YOLOv8 Docs, a comprehensive resource designed to help you understan
-
+
diff --git a/docs/en/integrations/dvc.md b/docs/en/integrations/dvc.md
index 1572396ae4..fcf70f59b1 100644
--- a/docs/en/integrations/dvc.md
+++ b/docs/en/integrations/dvc.md
@@ -138,7 +138,7 @@ dvc plots diff $(dvc exp list --names-only)
After executing this command, DVC generates plots comparing the metrics across different experiments, which are saved as HTML files. Below is an example image illustrating typical plots generated by this process. The image showcases various graphs, including those representing mAP, recall, precision, loss values, and more, providing a visual overview of key performance metrics:
- +
### Displaying DVC Plots diff --git a/docs/en/yolov5/index.md b/docs/en/yolov5/index.md index 61c6284263..ac3020d5ba 100644 --- a/docs/en/yolov5/index.md +++ b/docs/en/yolov5/index.md @@ -79,14 +79,14 @@ This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultraly - + ## Connect and Contribute -Your journey with YOLOv5 doesn't have to be a solitary one. Join our vibrant community on [GitHub](https://github.com/ultralytics/yolov5), connect with professionals on [LinkedIn](https://www.linkedin.com/company/ultralytics/), share your results on [Twitter](https://twitter.com/ultralytics), and find educational resources on [YouTube](https://youtube.com/ultralytics?sub_confirmation=1). Follow us on [TikTok](https://www.tiktok.com/@ultralytics) and [Instagram](https://www.instagram.com/ultralytics/) for more engaging content. +Your journey with YOLOv5 doesn't have to be a solitary one. Join our vibrant community on [GitHub](https://github.com/ultralytics/yolov5), connect with professionals on [LinkedIn](https://www.linkedin.com/company/ultralytics/), share your results on [Twitter](https://twitter.com/ultralytics), and find educational resources on [YouTube](https://youtube.com/ultralytics?sub_confirmation=1). Follow us on [TikTok](https://www.tiktok.com/@ultralytics) and [BiliBili](https://ultralytics.com/bilibili) for more engaging content. Interested in contributing? We welcome contributions of all forms; from code improvements and bug reports to documentation updates. Check out our [contributing guidelines](../help/contributing.md/) for more information. diff --git a/ultralytics/nn/modules/block.py b/ultralytics/nn/modules/block.py index 148c3db317..4572b1699c 100644 --- a/ultralytics/nn/modules/block.py +++ b/ultralytics/nn/modules/block.py @@ -789,7 +789,7 @@ class CIB(nn.Module): self.cv1 = nn.Sequential( Conv(c1, c1, 3, g=c1), Conv(c1, 2 * c_, 1), - Conv(2 * c_, 2 * c_, 3, g=2 * c_) if not lk else RepVGGDW(2 * c_), + RepVGGDW(2 * c_) if lk else Conv(2 * c_, 2 * c_, 3, g=2 * c_), Conv(2 * c_, c2, 1), Conv(c2, c2, 3, g=c2), ) diff --git a/ultralytics/nn/modules/head.py b/ultralytics/nn/modules/head.py index b06f8b736e..d80864844d 100644 --- a/ultralytics/nn/modules/head.py +++ b/ultralytics/nn/modules/head.py @@ -110,8 +110,7 @@ class Detect(nn.Module): else: dbox = self.decode_bboxes(self.dfl(box), self.anchors.unsqueeze(0)) * self.strides - y = torch.cat((dbox, cls.sigmoid()), 1) - return y + return torch.cat((dbox, cls.sigmoid()), 1) def bias_init(self): """Initialize Detect() biases, WARNING: requires stride availability.""" diff --git a/ultralytics/nn/tasks.py b/ultralytics/nn/tasks.py index 9ca682efd6..b6de935984 100644 --- a/ultralytics/nn/tasks.py +++ b/ultralytics/nn/tasks.py @@ -693,7 +693,7 @@ class Ensemble(nn.ModuleList): @contextlib.contextmanager -def temporary_modules(modules={}, attributes={}): +def temporary_modules(modules=None, attributes=None): """ Context manager for temporarily adding or modifying modules in Python's module cache (`sys.modules`). @@ -718,6 +718,10 @@ def temporary_modules(modules={}, attributes={}): applications or libraries. Use this function with caution. """ + if modules is None: + modules = {} + if attributes is None: + attributes = {} import sys from importlib import import_module