Skip to content

Conversation

RHeckerIntel
Copy link
Contributor

Big refactor of the output for C++.

Generalize the output to one Scene object. This allows us to reduce a lot of the pointer logic for the model base.

Scene contains all output. For example: Classification and Detection models will output boxes into the scene. Segmentation models will output masks which can then be used to generate polygons or rotated rectangles.

This is a rather huge refactor so I'm listing some todos until we're ready:

  • Update documentation
  • Clean up comments or small misses
  • Verify the scene structure

There is a lot more work to be done. But in the spirit of trying to keep PRs small lets start with this.

This allows the virtual overrides not to bother with pointer logic.
This is the first step. The next step should be to consolidate every
model type to scene output without a sub ResultBase. This can now be
done gradually
Refactored quite a bit for the tiler since saliency maps are cv::Mats now.
Due to changes in the structure it was not possible to keep the same
reference. This means that the python string output needs to be changed too
slightly. This can be done without changing the python structure.
The public scope reference output is different now
Until python output will match the cpp we will split the reference output.
@github-actions github-actions bot added tests Related to tests cpp C++ related changes build Related to build scripts samples labels May 19, 2025
@RHeckerIntel
Copy link
Contributor Author

The generic output pattern will not be flexible enough for the future. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to build scripts cpp C++ related changes samples tests Related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant