Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

defalut.yaml 7.9 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
  1. # Ultralytics YOLO 🚀, AGPL-3.0 license
  2. # Default training settings and hyperparameters for medium-augmentation COCO training
  3. task: detect # (str) YOLO task, i.e. detect, segment, classify, pose
  4. mode: train # (str) YOLO mode, i.e. train, val, predict, export, track, benchmark
  5. # Train settings -------------------------------------------------------------------------------------------------------
  6. model: yolov8n.yaml # (str, optional) path to model file, i.e. yolov8n.pt, yolov8n.yaml
  7. data: # (str, optional) path to data file, i.e. coco128.yaml
  8. epochs: 100 # (int) number of epochs to train for
  9. time: # (float, optional) number of hours to train for, overrides epochs if supplied
  10. patience: 50 # (int) epochs to wait for no observable improvement for early stopping of training
  11. batch: 16 # (int) number of images per batch (-1 for AutoBatch)
  12. imgsz: 640 # (int | list) input images size as int for train and val modes, or list[w,h] for predict and export modes
  13. save: True # (bool) save train checkpoints and predict results
  14. save_period: -1 # (int) Save checkpoint every x epochs (disabled if < 1)
  15. cache: False # (bool) True/ram, disk or False. Use cache for data loading
  16. device: 0 # (int | str | list, optional) device to run on, i.e. cuda device=0 or device=0,1,2,3 or device=cpu
  17. workers: 16 # (int) number of worker threads for data loading (per RANK if DDP)
  18. project: yolo # (str, optional) project name
  19. name: tset # (str, optional) experiment name, results saved to 'project/name' directory
  20. exist_ok: False # (bool) whether to overwrite existing experiment
  21. pretrained: True # (bool | str) whether to use a pretrained model (bool) or a model to load weights from (str)
  22. optimizer: auto # (str) optimizer to use, choices=[SGD, Adam, Adamax, AdamW, NAdam, RAdam, RMSProp, auto]
  23. verbose: True # (bool) whether to print verbose output
  24. seed: 0 # (int) random seed for reproducibility
  25. deterministic: True # (bool) whether to enable deterministic mode
  26. single_cls: False # (bool) train multi-class data as single-class
  27. rect: False # (bool) rectangular training if mode='train' or rectangular validation if mode='val'
  28. cos_lr: False # (bool) use cosine learning rate scheduler
  29. close_mosaic: 10 # (int) disable mosaic augmentation for final epochs (0 to disable)
  30. resume: True
  31. amp: True # (bool) Automatic Mixed Precision (AMP) training, choices=[True, False], True runs AMP check
  32. fraction: 1.0 # (float) dataset fraction to train on (default is 1.0, all images in train set)
  33. profile: False # (bool) profile ONNX and TensorRT speeds during training for loggers
  34. freeze: None # (int | list, optional) freeze first n layers, or freeze list of layer indices during training
  35. multi_scale: False # (bool) Whether to use multi-scale during training
  36. # Segmentation
  37. overlap_mask: True # (bool) masks should overlap during training (segment train only)
  38. mask_ratio: 4 # (int) mask downsample ratio (segment train only)
  39. # Classification
  40. dropout: 0.0 # (float) use dropout regularization (classify train only)
  41. # Val/Test settings ----------------------------------------------------------------------------------------------------
  42. val: True # (bool) validate/test during training
  43. split: val # (str) dataset split to use for validation, i.e. 'val', 'test' or 'train'
  44. save_json: False # (bool) save results to JSON file
  45. save_hybrid: False # (bool) save hybrid version of labels (labels + additional predictions)
  46. conf: # (float, optional) object confidence threshold for detection (default 0.25 predict, 0.001 val)
  47. iou: 0.7 # (float) intersection over union (IoU) threshold for NMS
  48. max_det: 300 # (int) maximum number of detections per image
  49. half: False # (bool) use half precision (FP16)
  50. dnn: False # (bool) use OpenCV DNN for ONNX inference
  51. plots: True # (bool) save plots and images during train/val
  52. # Predict settings -----------------------------------------------------------------------------------------------------
  53. source: # (str, optional) source directory for images or videos
  54. vid_stride: 1 # (int) video frame-rate stride
  55. stream_buffer: False # (bool) buffer all streaming frames (True) or return the most recent frame (False)
  56. visualize: False # (bool) visualize model features
  57. augment: False # (bool) apply image augmentation to prediction sources
  58. agnostic_nms: False # (bool) class-agnostic NMS
  59. classes: # (int | list[int], optional) filter results by class, i.e. classes=0, or classes=[0,2,3]
  60. retina_masks: False # (bool) use high-resolution segmentation masks
  61. embed: # (list[int], optional) return feature vectors/embeddings from given layers
  62. # Visualize settings ---------------------------------------------------------------------------------------------------
  63. show: False # (bool) show predicted images and videos if environment allows
  64. save_frames: False # (bool) save predicted individual video frames
  65. save_txt: False # (bool) save results as .txt file
  66. save_conf: False # (bool) save results with confidence scores
  67. save_crop: False # (bool) save cropped images with results
  68. show_labels: True # (bool) show prediction labels, i.e. 'person'
  69. show_conf: True # (bool) show prediction confidence, i.e. '0.99'
  70. show_boxes: True # (bool) show prediction boxes
  71. line_width: # (int, optional) line width of the bounding boxes. Scaled to image size if None.
  72. # Export settings ------------------------------------------------------------------------------------------------------
  73. format: torchscript # (str) format to export to, choices at https://docs.ultralytics.com/modes/export/#export-formats
  74. keras: False # (bool) use Kera=s
  75. optimize: False # (bool) TorchScript: optimize for mobile
  76. int8: False # (bool) CoreML/TF INT8 quantization
  77. dynamic: False # (bool) ONNX/TF/TensorRT: dynamic axes
  78. simplify: False # (bool) ONNX: simplify model
  79. opset: # (int, optional) ONNX: opset version
  80. workspace: 4 # (int) TensorRT: workspace size (GB)
  81. nms: False # (bool) CoreML: add NMS
  82. # Hyperparameters ------------------------------------------------------------------------------------------------------
  83. lr0: 0.01 # (float) initial learning rate (i.e. SGD=1E-2, Adam=1E-3)
  84. lrf: 0.01 # (float) final learning rate (lr0 * lrf)
  85. momentum: 0.937 # (float) SGD momentum/Adam beta1
  86. weight_decay: 0.0005 # (float) optimizer weight decay 5e-4
  87. warmup_epochs: 3.0 # (float) warmup epochs (fractions ok)
  88. warmup_momentum: 0.8 # (float) warmup initial momentum
  89. warmup_bias_lr: 0.1 # (float) warmup initial bias lr
  90. box: 7.5 # (float) box loss gain
  91. cls: 0.5 # (float) cls loss gain (scale with pixels)
  92. dfl: 1.5 # (float) dfl loss gain
  93. pose: 12.0 # (float) pose loss gain
  94. kobj: 1.0 # (float) keypoint obj loss gain
  95. label_smoothing: 0.0 # (float) label smoothing (fraction)
  96. nbs: 64 # (int) nominal batch size
  97. hsv_h: 0.015 # (float) image HSV-Hue augmentation (fraction)
  98. hsv_s: 0.7 # (float) image HSV-Saturation augmentation (fraction)
  99. hsv_v: 0.4 # (float) image HSV-Value augmentation (fraction)
  100. degrees: 0.0 # (float) image rotation (+/- deg)
  101. translate: 0.1 # (float) image translation (+/- fraction)
  102. scale: 0.5 # (float) image scale (+/- gain)
  103. shear: 0.0 # (float) image shear (+/- deg)
  104. perspective: 0.0 # (float) image perspective (+/- fraction), range 0-0.001
  105. flipud: 0.0 # (float) image flip up-down (probability)
  106. fliplr: 0.5 # (float) image flip left-right (probability)
  107. mosaic: 1.0 # (float) image mosaic (probability)
  108. mixup: 0.0 # (float) image mixup (probability)
  109. copy_paste: 0.0 # (float) segment copy-paste (probability)
  110. auto_augment: randaugment # (str) auto augmentation policy for classification (randaugment, autoaugment, augmix)
  111. erasing: 0.4 # (float) probability of random erasing during classification training (0-1)
  112. crop_fraction: 1.0 # (float) image crop fraction for classification evaluation/inference (0-1)
  113. # Custom config.yaml ---------------------------------------------------------------------------------------------------
  114. cfg: # (str, optional) for overriding defaults.yaml
  115. # Tracker settings ------------------------------------------------------------------------------------------------------
  116. tracker: botsort.yaml # (str) tracker type, choices=[botsort.yaml, bytetrack.yaml]
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...