Removes unused argument label_smoothing (#16014)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Ultralytics Assistant <135830346+UltralyticsAssistant@users.noreply.github.com> Co-authored-by: Francesco Mattioli <Francesco.mttl@gmail.com> Co-authored-by: Laughing-q <1185102784@qq.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
acec3d9c1c
commit
c5fd0bb48a
4 changed files with 8 additions and 5 deletions
|
|
@ -160,7 +160,6 @@ CFG_FRACTION_KEYS = { # fractional float arguments with 0.0<=values<=1.0
|
|||
"weight_decay",
|
||||
"warmup_momentum",
|
||||
"warmup_bias_lr",
|
||||
"label_smoothing",
|
||||
"hsv_h",
|
||||
"hsv_s",
|
||||
"hsv_v",
|
||||
|
|
@ -436,6 +435,9 @@ def _handle_deprecation(custom):
|
|||
if key == "line_thickness":
|
||||
deprecation_warn(key, "line_width")
|
||||
custom["line_width"] = custom.pop("line_thickness")
|
||||
if key == "label_smoothing":
|
||||
deprecation_warn(key)
|
||||
custom.pop("label_smoothing")
|
||||
|
||||
return custom
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue