Integration of dinov3, including optional train and inference scripts. #324
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.
Description
Integration of Dinov3 wrapper into RFDETR pipeline.
Included are scripts which allow training of both v2 and v3 using rfdetr, as well as inference test scripts.
Due to the recent release of Dinov3; the weights required can be accessed by setting your HUGGINGFACE_HUB_TOKEN for private access (requires permission) or by requesting access to Dinov3 weights from Meta and cloning the Dinov3 repo locally.
Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?
Tested via the training and inference scripts supplied, still allows activation and use of v2 whilst enabling user to also use v3. More training of pre-trained weights required for inference to be on par with dinov2 pretrained rfdetr.
Any specific deployment considerations
Licensing requirements need to be checked by RFDETR owners before deployment of this branch.
I have read the CLA Document and I sign the CLA.