-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor dinov2 tests, check against official implementation
- Loading branch information
1 parent
4f94dfb
commit 1a8ea91
Showing
5 changed files
with
120 additions
and
118 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ venv/ | |
|
||
# tests' model weights | ||
tests/weights/ | ||
tests/repos/ | ||
|
||
# ruff | ||
.ruff_cache | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,12 @@ Then, download and convert all the necessary weights. Be aware that this will us | |
python scripts/prepare_test_weights.py | ||
``` | ||
|
||
Some tests require cloning the original implementation of the model as they use `torch.hub.load`: | ||
|
||
```bash | ||
git clone [email protected]:facebookresearch/dinov2.git tests/repos/dinov2 | ||
``` | ||
|
||
Finally, run the tests: | ||
|
||
```bash | ||
|
This file contains 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
This file contains 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
This file contains 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