π [Add] function document (by autodoc)
Browse files- docs/6_function_docs/0_solver.rst +10 -2
- docs/6_function_docs/3_config.rst +188 -0
- docs/6_function_docs/4_dataloader.rst +8 -0
- docs/MODELS.md +0 -30
docs/6_function_docs/0_solver.rst
CHANGED
@@ -1,4 +1,12 @@
|
|
1 |
-
.. _Solver:
|
2 |
-
|
3 |
Solver
|
4 |
======
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
Solver
|
2 |
======
|
3 |
+
|
4 |
+
.. automodule:: yolo.tools.solver
|
5 |
+
:members:
|
6 |
+
:undoc-members:
|
7 |
+
:show-inheritance:
|
8 |
+
|
9 |
+
.. automodule:: yolo.utils.bounding_box_utils
|
10 |
+
:members:
|
11 |
+
:undoc-members:
|
12 |
+
:show-inheritance:
|
docs/6_function_docs/3_config.rst
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Config
|
2 |
+
======
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
.. autoclass:: yolo.config.config.Config
|
7 |
+
:members:
|
8 |
+
:undoc-members:
|
9 |
+
|
10 |
+
.. automodule:: yolo.config.config
|
11 |
+
:members:
|
12 |
+
:undoc-members:
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
.. mermaid::
|
17 |
+
|
18 |
+
classDiagram
|
19 |
+
class AnchorConfig {
|
20 |
+
List~int~ strides
|
21 |
+
Optional~int~ reg_max
|
22 |
+
Optional~int~ anchor_num
|
23 |
+
List~List~int~~ anchor
|
24 |
+
}
|
25 |
+
|
26 |
+
class LayerConfig {
|
27 |
+
Dict args
|
28 |
+
Union~List~int~~ source
|
29 |
+
str tags
|
30 |
+
}
|
31 |
+
|
32 |
+
class BlockConfig {
|
33 |
+
List~Dict~LayerConfig~~ block
|
34 |
+
}
|
35 |
+
|
36 |
+
class ModelConfig {
|
37 |
+
Optional~str~ name
|
38 |
+
AnchorConfig anchor
|
39 |
+
Dict~BlockConfig~ model
|
40 |
+
}
|
41 |
+
|
42 |
+
AnchorConfig --> ModelConfig
|
43 |
+
LayerConfig --> BlockConfig
|
44 |
+
BlockConfig --> ModelConfig
|
45 |
+
|
46 |
+
.. mermaid::
|
47 |
+
|
48 |
+
classDiagram
|
49 |
+
class DownloadDetail {
|
50 |
+
str url
|
51 |
+
int file_size
|
52 |
+
}
|
53 |
+
|
54 |
+
class DownloadOptions {
|
55 |
+
Dict~DownloadDetail~ details
|
56 |
+
}
|
57 |
+
|
58 |
+
class DatasetConfig {
|
59 |
+
str path
|
60 |
+
int class_num
|
61 |
+
List~str~ class_list
|
62 |
+
Optional~DownloadOptions~ auto_download
|
63 |
+
}
|
64 |
+
|
65 |
+
class DataConfig {
|
66 |
+
bool shuffle
|
67 |
+
int batch_size
|
68 |
+
bool pin_memory
|
69 |
+
int cpu_num
|
70 |
+
List~int~ image_size
|
71 |
+
Dict~int~ data_augment
|
72 |
+
Optional~Union~str~~ source
|
73 |
+
}
|
74 |
+
|
75 |
+
DownloadDetail --> DownloadOptions
|
76 |
+
DownloadOptions --> DatasetConfig
|
77 |
+
|
78 |
+
.. mermaid::
|
79 |
+
|
80 |
+
classDiagram
|
81 |
+
class OptimizerArgs {
|
82 |
+
float lr
|
83 |
+
float weight_decay
|
84 |
+
}
|
85 |
+
|
86 |
+
class OptimizerConfig {
|
87 |
+
str type
|
88 |
+
OptimizerArgs args
|
89 |
+
}
|
90 |
+
|
91 |
+
class MatcherConfig {
|
92 |
+
str iou
|
93 |
+
int topk
|
94 |
+
Dict~str~ factor
|
95 |
+
}
|
96 |
+
|
97 |
+
class LossConfig {
|
98 |
+
Dict~str~ objective
|
99 |
+
Union~bool~ aux
|
100 |
+
MatcherConfig matcher
|
101 |
+
}
|
102 |
+
|
103 |
+
class SchedulerConfig {
|
104 |
+
str type
|
105 |
+
Dict~str~ warmup
|
106 |
+
Dict~str~ args
|
107 |
+
}
|
108 |
+
|
109 |
+
class EMAConfig {
|
110 |
+
bool enabled
|
111 |
+
float decay
|
112 |
+
}
|
113 |
+
|
114 |
+
class TrainConfig {
|
115 |
+
str task
|
116 |
+
int epoch
|
117 |
+
DataConfig data
|
118 |
+
OptimizerConfig optimizer
|
119 |
+
LossConfig loss
|
120 |
+
SchedulerConfig scheduler
|
121 |
+
EMAConfig ema
|
122 |
+
ValidationConfig validation
|
123 |
+
}
|
124 |
+
|
125 |
+
class NMSConfig {
|
126 |
+
int min_confidence
|
127 |
+
int min_iou
|
128 |
+
}
|
129 |
+
|
130 |
+
class InferenceConfig {
|
131 |
+
str task
|
132 |
+
NMSConfig nms
|
133 |
+
DataConfig data
|
134 |
+
Optional~None~ fast_inference
|
135 |
+
bool save_predict
|
136 |
+
}
|
137 |
+
|
138 |
+
class ValidationConfig {
|
139 |
+
str task
|
140 |
+
NMSConfig nms
|
141 |
+
DataConfig data
|
142 |
+
}
|
143 |
+
|
144 |
+
OptimizerArgs --> OptimizerConfig
|
145 |
+
OptimizerConfig --> TrainConfig
|
146 |
+
MatcherConfig --> LossConfig
|
147 |
+
LossConfig --> TrainConfig
|
148 |
+
SchedulerConfig --> TrainConfig
|
149 |
+
EMAConfig --> TrainConfig
|
150 |
+
NMSConfig --> InferenceConfig
|
151 |
+
NMSConfig --> ValidationConfig
|
152 |
+
|
153 |
+
|
154 |
+
.. mermaid::
|
155 |
+
|
156 |
+
classDiagram
|
157 |
+
class GeneralConfig {
|
158 |
+
str name
|
159 |
+
Union~str~ device
|
160 |
+
int cpu_num
|
161 |
+
List~int~ class_idx_id
|
162 |
+
List~int~ image_size
|
163 |
+
str out_path
|
164 |
+
bool exist_ok
|
165 |
+
int lucky_number
|
166 |
+
bool use_wandb
|
167 |
+
bool use_TensorBoard
|
168 |
+
Optional~str~ weight
|
169 |
+
}
|
170 |
+
|
171 |
+
.. mermaid::
|
172 |
+
|
173 |
+
classDiagram
|
174 |
+
class Config {
|
175 |
+
Union~ValidationConfig~ task
|
176 |
+
DatasetConfig dataset
|
177 |
+
ModelConfig model
|
178 |
+
GeneralConfig model
|
179 |
+
}
|
180 |
+
|
181 |
+
DatasetConfig --> Config
|
182 |
+
DataConfig --> TrainConfig
|
183 |
+
DataConfig --> InferenceConfig
|
184 |
+
DataConfig --> ValidationConfig
|
185 |
+
InferenceConfig --> Config
|
186 |
+
ValidationConfig --> Config
|
187 |
+
TrainConfig --> Config
|
188 |
+
GeneralConfig --> Config
|
docs/6_function_docs/4_dataloader.rst
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Dataloader
|
2 |
+
==========
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
.. automodule:: yolo.tools.data_loader
|
7 |
+
:members:
|
8 |
+
:undoc-members:
|
docs/MODELS.md
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
# YOLO Model Zoo
|
2 |
-
|
3 |
-
Welcome to the YOLOv9 Model Zoo! Here, you will find a variety of pre-trained models tailored to different use cases and performance needs. Each model comes with detailed information about its training regime, performance metrics, and usage instructions.
|
4 |
-
|
5 |
-
## Standard Models
|
6 |
-
|
7 |
-
These models are trained on common datasets like COCO and provide a balance between speed and accuracy.
|
8 |
-
|
9 |
-
|
10 |
-
| Model | Support? |Test Size | AP<sup>val</sup> | AP<sub>50</sub><sup>val</sup> | AP<sub>75</sub><sup>val</sup> | Param. | FLOPs |
|
11 |
-
| :-- | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
|
12 |
-
| [**YOLOv9-S**]() |β
| 640 | **46.8%** | **63.4%** | **50.7%** | **7.1M** | **26.4G** |
|
13 |
-
| [**YOLOv9-M**]() |β
| 640 | **51.4%** | **68.1%** | **56.1%** | **20.0M** | **76.3G** |
|
14 |
-
| [**YOLOv9-C**]() |β
| 640 | **53.0%** | **70.2%** | **57.8%** | **25.3M** | **102.1G** |
|
15 |
-
| [**YOLOv9-E**]() | π§ | 640 | **55.6%** | **72.8%** | **60.6%** | **57.3M** | **189.0G** |
|
16 |
-
| | | | | | | |
|
17 |
-
| [**YOLOv7**]() |π§ | 640 | **51.4%** | **69.7%** | **55.9%** |
|
18 |
-
| [**YOLOv7-X**]() |π§ | 640 | **53.1%** | **71.2%** | **57.8%** |
|
19 |
-
| [**YOLOv7-W6**]() | π§ | 1280 | **54.9%** | **72.6%** | **60.1%** |
|
20 |
-
| [**YOLOv7-E6**]() | π§ | 1280 | **56.0%** | **73.5%** | **61.2%** |
|
21 |
-
| [**YOLOv7-D6**]() | π§ | 1280 | **56.6%** | **74.0%** | **61.8%** |
|
22 |
-
| [**YOLOv7-E6E**]() | π§ | 1280 | **56.8%** | **74.4%** | **62.1%** |
|
23 |
-
|
24 |
-
## Download and Usage Instructions
|
25 |
-
|
26 |
-
To use these models, download them from the links provided and use the following command to run detection:
|
27 |
-
|
28 |
-
```bash
|
29 |
-
$yolo detect weights=path/to/model.pt img=640 conf=0.25 source=your_image.jpg
|
30 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|