Improve exporting process for AHOY with OBB models #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Refactored the model export process to ensure the ONNX graph retains all simplifications implemented in the original ultralytics repository.
Also, new naming convention:
-
AHOY
-->AHOYv1
-
AHOYOBB
-->AHOYv2
Tip
You can still use
AHOY(obj_det_weigths="", hor_det_weigths="", ...)
; the correct version will be selected automatically based on the provided weights 🤞Why?
Addressed these key issues in the export pipeline:
Note
There is nothing wrong with
AHOYOBB
, but… what if in the future we do both object and horizon detection with OBB models? Would we call itAHOYOBBOBB
orAHOYOBB²
?A more conventional naming scheme (a.k.a.
AHOYv*
) could help keep architectural insights and naming separate. You don’t see names likeYOLOAnchorless
orYOLOFlashAttention
, those details are captured in documentation or model cards, not embedded in the name. Following that spirit keeps names clean and evolution-friendly.How
logging
toLOGGER
for unified loggingprepare_for_export()
to centralize export logic in model classesAHOY
base class and subclasses forAHOYv1
andAHOYv2
.Backout plan
The changes improve the exporting, they should not be reverted.
Testing
W&B integration
Before
After