frameworks.ultralytics.services.model.logger.segmentation¶
segmentation
¶
Classes:
Name | Description |
---|---|
UltralyticsSegmentationMetricMapping |
Defines the metric mapping for segmentation tasks using the Ultralytics framework. |
UltralyticsSegmentationLogger |
Logger for Ultralytics-based segmentation models. |
UltralyticsSegmentationMetricMapping()
¶
Bases: UltralyticsObjectDetectionMetricMapping
Defines the metric mapping for segmentation tasks using the Ultralytics framework.
This class extends the object detection mapping and adds segmentation-specific metrics, such as segmentation loss and mask-based precision, recall, and mAP.
Adds metrics for training and validation segmentation loss, as well as mask precision, recall, mAP50, and mAP50-95.
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]]
|
|
UltralyticsSegmentationLogger(experiment, metric_mapping)
¶
Bases: BaseLogger
Logger for Ultralytics-based segmentation models.
This logger uses an UltralyticsSegmentationMetricMapping to log metrics during training and validation phases to a Picsellia experiment.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Experiment
|
The experiment used for logging. |
required |
|
UltralyticsSegmentationMetricMapping
|
The segmentation-specific metric mapping. |
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 |
|