Skip to content

feat(segmentation): add minimal SegmentationEvaluator prototype (non-…#551

Open
Venuenugula wants to merge 1 commit into
JdeRobot:masterfrom
Venuenugula:master
Open

feat(segmentation): add minimal SegmentationEvaluator prototype (non-…#551
Venuenugula wants to merge 1 commit into
JdeRobot:masterfrom
Venuenugula:master

Conversation

@Venuenugula
Copy link
Copy Markdown

This PR introduces a minimal SegmentationEvaluator that extracts the common
evaluation loop (dataset iteration + model.predict + metrics update).

Scope is intentionally limited:

  • Only Torch default eval path uses the evaluator
  • Advanced features (ontology translation, saving, per-sample metrics) remain unchanged
  • No behavior or output changes

Goal is to validate this abstraction incrementally before extending it to
other backends (TF/ONNX).

…breaking)

- Introduces SegmentationEvaluator to extract common evaluation loop
  (dataset iteration + model.predict + metrics aggregation)
- Integrated only into TorchImageSegmentationModel.eval() default path
- Advanced evaluation paths (ontology translation, saving, per-sample metrics)
  remain unchanged
- No dataset/model interface changes
- No evaluation output changes

This is a minimal, incremental step to reduce duplication and enable
future extension (e.g., TF/ONNX support) without large refactors.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant