Skip to content

Commit

Permalink
add dbot/crossmae refined models to torchhub
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktAlkin committed Jun 4, 2024
1 parent be49d6f commit 05441c0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ model = torch.hub.load("ml-jku/MIM-Refiner", "mae_refined_h14")
model = torch.hub.load("ml-jku/MIM-Refiner", "mae_refined_twob14")
model = torch.hub.load("ml-jku/MIM-Refiner", "d2v2_refined_l16")
model = torch.hub.load("ml-jku/MIM-Refiner", "d2v2_refined_h14")
model = torch.hub.load("ml-jku/MIM-Refiner", "dbot_refined_l16")
model = torch.hub.load("ml-jku/MIM-Refiner", "dbot_refined_h14")
model = torch.hub.load("ml-jku/MIM-Refiner", "crossmae_refined_l16")
```

An example how to use torchhub models for a k-NN classifier can be
Expand Down
15 changes: 15 additions & 0 deletions hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
ctor_kwargs=VIT_CONFIGS["l16"],
url="https://ml.jku.at/research/mimrefiner/download/maerefined_l16.th",
),
"dbot_refined_l16": dict(
ctor=PrenormVit,
ctor_kwargs=VIT_CONFIGS["l16"],
url="https://ml.jku.at/research/mimrefiner/download/dbotrefined_l16.th",
),
"crossmae_refined_l16": dict(
ctor=PrenormVit,
ctor_kwargs=VIT_CONFIGS["l16"],
url="https://ml.jku.at/research/mimrefiner/download/crossmaerefined_l16.th",
),
"d2v2_refined_l16": dict(
ctor=PostnormVit,
ctor_kwargs=VIT_CONFIGS["l16"],
Expand All @@ -35,6 +45,11 @@
ctor_kwargs=VIT_CONFIGS["h14"],
url="https://ml.jku.at/research/mimrefiner/download/maerefined_h14.th",
),
"dbot_refined_h14": dict(
ctor=PrenormVit,
ctor_kwargs=VIT_CONFIGS["h14"],
url="https://ml.jku.at/research/mimrefiner/download/dbotrefined_h14.th",
),
"d2v2_refined_h14": dict(
ctor=PostnormVit,
ctor_kwargs=VIT_CONFIGS["h14"],
Expand Down

0 comments on commit 05441c0

Please sign in to comment.