Repository navigation
Add DINOv2 across detectors, selectable losses and bounded-memory feature heads - #6
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The YAML builder previously limited backbone and detector combinations, preventing DINO experiments across the available pipelines. This PR adds frozen DINOv2 small/base features with patch-grid padding and extends the detector/loss selector.
Validation: 153 CPU tests passed, including real random-weight DINO small/base, all new losses, analytic PaDiM covariance, bounded/chunked PatchCore distances, 416/512/704 outputs, YAML train/fit–calibrate–test workflows and strict checkpoint reloads. Compileall, pyflakes and diff checks passed. Earlier in this PR, pretrained timm DINOv2-small also completed a 512-pixel CPU SSN training/reload smoke check.
Limits: no physical RTX 5070 Ti was available, so 16 GB fit and CUDA/BF16 execution require running the documented memory smoke command on the target card. Synthetic tests do not validate anomaly accuracy or saturate a large PatchCore reservoir. These experimental detector combinations do not claim published benchmark equivalence.
Main remains unchanged pending review and merge.