frameworks.ultralytics.services.model.logger.object_detection¶
object_detection
¶
Classes:
Name | Description |
---|---|
UltralyticsObjectDetectionMetricMapping |
Defines the metric mapping for object detection tasks using the Ultralytics framework. |
UltralyticsObjectDetectionLogger |
Logger for Ultralytics-based object detection models. |
UltralyticsObjectDetectionMetricMapping()
¶
Bases: UltralyticsBaseMetricMapping
Defines the metric mapping for object detection tasks using the Ultralytics framework.
This mapping class registers framework-specific metric names and their corresponding standard names for both training and validation phases. It includes loss components, label metrics, and evaluation metrics.
Sets up metric associations for box loss, classification loss, distribution focal loss (DFL), precision, recall, and mAP values.
Methods:
Name | Description |
---|---|
add_metric |
Add a metric to the specified phase. |
get_mapping |
Get mapping of framework names to standard names for a given phase. |
Attributes:
Name | Type | Description |
---|---|---|
mappings |
dict[str, list[Metric]]
|
|
UltralyticsObjectDetectionLogger(experiment, metric_mapping)
¶
Bases: BaseLogger
Logger for Ultralytics-based object detection models.
This logger uses an UltralyticsObjectDetectionMetricMapping to normalize metric names and logs them to a Picsellia experiment during training and validation phases.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Experiment
|
The experiment object used for logging. |
required |
|
UltralyticsObjectDetectionMetricMapping
|
Mapping for translating framework-specific metrics. |
required |
Methods:
Name | Description |
---|---|
log_metric |
Log a metric value (e.g. for line plot). |
log_value |
Log a scalar value (e.g., accuracy score). |
log_image |
Log an image file. |
log_confusion_matrix |
Log a confusion matrix as a heatmap. |
log_table |
Log a table (either a key-value dict or 2D matrix). |
get_log_name |
Construct log name with optional phase and mapped name. |
Attributes:
Name | Type | Description |
---|---|---|
experiment |
|
|
metric_mapping |
|