lr0 |
0.01 |
|
(float) initial learning rate (SGD=1e-2, Adam/AdamW=1e-3) |
lrf |
0.01 |
|
(float) final LR fraction; final LR = lr0 * lrf |
momentum |
0.937 |
|
(float) SGD momentum or Adam beta1 |
weight_decay |
0.0005 |
|
(float) weight decay (L2 regularization) |
warmup_epochs |
3.0 |
|
(float) warmup epochs (fractions allowed) |
warmup_momentum |
0.8 |
|
(float) initial momentum during warmup |
warmup_bias_lr |
0.1 |
|
(float) bias learning rate during warmup |
box |
7.5 |
|
(float) box loss gain |
cls |
0.5 |
|
(float) classification loss gain |
cls_pw |
0.0 |
|
(float) class weights power for class imbalance (0.0=disable, 1.0=full inverse) |
dfl |
1.5 |
|
(float) box distance loss gain (DFL when reg_max > 1, L1 on DFL-free YOLO26) |
pose |
12.0 |
|
(float) pose loss gain (pose tasks) |
kobj |
1.0 |
|
(float) keypoint objectness loss gain (pose tasks) |
rle |
1.0 |
|
(float) rle loss gain (pose tasks) |
angle |
1.0 |
|
(float) oriented angle loss gain (obb tasks) |
dlog |
1.0 |
|
(float) depth log (SILog) loss gain (depth tasks) |
dgrad |
0.5 |
|
(float) depth gradient loss gain (depth tasks) |
dlam |
1.0 |
|
(float) depth SILog variance focus: 1.0 = scale-invariant, 0.0 = log-RMSE (depth tasks) |
nbs |
64 |
|
(int) nominal batch size; gradients accumulate over round(nbs / batch) batches per optimizer step |
hsv_h |
0.015 |
|
(float) HSV hue augmentation fraction |
hsv_s |
0.7 |
|
(float) HSV saturation augmentation fraction |
hsv_v |
0.4 |
|
(float) HSV value (brightness) augmentation fraction |
degrees |
0.0 |
|
(float) rotation degrees (+/-) |
translate |
0.1 |
|
(float) translation fraction (+/-) |
scale |
0.5 |
|
(float | tuple) scale gain (+/-) as float, or explicit (min, max) tuple |
shear |
0.0 |
|
(float) shear degrees (+/-) |
perspective |
0.0 |
|
(float) perspective fraction (0–0.001 typical) |
flipud |
0.0 |
|
(float) vertical flip probability |
fliplr |
0.5 |
|
(float) horizontal flip probability |
bgr |
0.0 |
|
(float) RGB↔BGR channel swap probability |
mosaic |
1.0 |
|
(float) mosaic augmentation probability |
mixup |
0.0 |
|
(float) MixUp augmentation probability |
cutmix |
0.0 |
|
(float) CutMix augmentation probability |
copy_paste |
0.0 |
|
(float) segment/semantic/obb copy-paste fraction of eligible objects |
copy_paste_mode |
flip |
|
(str) segment/semantic/obb copy-paste strategy: flip or mixup |
auto_augment |
randaugment |
|
(str) classification auto augmentation: randaugment, autoaugment, augmix |
erasing |
0.4 |
|
(float) random erasing probability for classification (0.0–1.0) |
cfg |
null |
|
(str, optional) path to a config.yaml that overrides Ultralytics defaults |