A minor correction in a comment (#12782)

* A minor correction in a comment

I added the 'h' in 'https' in the link to the label smoothing issue.

Signed-off-by: Kumar Selvakumaran <62794224+kumar-selvakumaran@users.noreply.github.com>

* Auto-format by https://ultralytics.com/actions

---------

Signed-off-by: Kumar Selvakumaran <62794224+kumar-selvakumaran@users.noreply.github.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Kumar SelvakumaranandUltralyticsAssistant authored and GitHub committed 2024-03-04 21:11:17 +01:00
1 parent b939236170
commit b24177bf99
5 files changed
+7 -4

No files matched your search

+3 -3
View File
@@ -742,9 +742,9 @@ def pipeline_coreml(model, im, file, names, y, prefix=colorstr("CoreML Pipeline:
model = ct.models.MLModel(pipeline.spec)
model.input_description["image"] = "Input image"
model.input_description["iouThreshold"] = f"(optional) IOU Threshold override (default: {nms.iouThreshold})"
model.input_description[
"confidenceThreshold"
] = f"(optional) Confidence Threshold override (default: {nms.confidenceThreshold})"
model.input_description["confidenceThreshold"] = (
f"(optional) Confidence Threshold override (default: {nms.confidenceThreshold})"
)
model.output_description["confidence"] = 'Boxes × Class confidence (see user-defined metadata "classes")'
model.output_description["coordinates"] = "Boxes × [x, y, width, height] (relative to image size)"
model.save(f) # pipelined
+1
View File
@@ -1,5 +1,6 @@
# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license
"""Experimental modules."""
import math
import numpy as np
+1
View File
@@ -1,5 +1,6 @@
# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license
"""Logging utils."""
import json
import os
import warnings
+1
View File
@@ -1,4 +1,5 @@
"""Main Logger class for ClearML experiment tracking."""
import glob
import re
from pathlib import Path
+1 -1
View File
@@ -9,7 +9,7 @@ from utils.torch_utils import de_parallel
def smooth_BCE(eps=0.1):
"""Returns label smoothing BCE targets for reducing overfitting; pos: `1.0 - 0.5*eps`, neg: `0.5*eps`. For details see ttps://github.com/ultralytics/yolov3/issues/238#issuecomment-598028441"""
"""Returns label smoothing BCE targets for reducing overfitting; pos: `1.0 - 0.5*eps`, neg: `0.5*eps`. For details see https://github.com/ultralytics/yolov3/issues/238#issuecomment-598028441"""
return 1.0 - 0.5 * eps, 0.5 * eps