Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor YOLOv5 code for readability, maintainability, and efficiency #13117

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2211ef5
Refactor YOLOv5 code for readability, maintainability, and efficiency
sanowl Jun 21, 2024
112c6a9
Auto-format by https://ultralytics.com/actions
UltralyticsAssistant Jun 21, 2024
0efe293
Implement YOLOv5 model with training pipeline - Add core YOLOv5 arch…
sanowl Jun 21, 2024
434471f
Merge branch 'refactor/yolov5-improvements' of https://github.com/san…
sanowl Jun 21, 2024
76f541d
Auto-format by https://ultralytics.com/actions
UltralyticsAssistant Jun 21, 2024
b12fb20
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jun 22, 2024
ae2a80e
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jun 30, 2024
8aa84bb
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jun 30, 2024
39d03a0
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jun 30, 2024
2a3cfae
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 5, 2024
d9a422b
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 8, 2024
28a52f0
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 8, 2024
a09cdd7
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 8, 2024
22fbdeb
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 10, 2024
c4d9a39
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 13, 2024
9572b66
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 15, 2024
d0610e9
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 15, 2024
3cbdaf1
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 17, 2024
dc83795
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 17, 2024
104911c
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 22, 2024
d3acc9b
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 23, 2024
7a1b5e7
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 25, 2024
70b2059
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 29, 2024
388fde8
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Jul 29, 2024
152932d
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Aug 11, 2024
2fbf827
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Aug 14, 2024
a568611
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Aug 14, 2024
969cab9
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Aug 19, 2024
ada3f1c
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Aug 20, 2024
c621302
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Aug 20, 2024
b16c12c
Merge branch 'master' into refactor/yolov5-improvements
UltralyticsAssistant Aug 24, 2024
0ed15c7
Auto-format by https://ultralytics.com/actions
UltralyticsAssistant Aug 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def __init__(self, cfg="yolov5s-seg.yaml", ch=3, nc=None, anchors=None):
class ClassificationModel(BaseModel):
# YOLOv5 classification model
def __init__(self, cfg=None, model=None, nc=1000, cutoff=10):
"""Initializes YOLOv5 model with config file `cfg`, input channels `ch`, number of classes `nc`, and `cuttoff`
"""Initializes YOLOv5 model with config file `cfg`, input channels `ch`, number of classes `nc`, and `cutoff`
index.
"""
super().__init__()
Expand Down