-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register all timm models with ImageNet-1K and update documentation (#24)
* register all timm models with imagenet 1k * remove eva * update readme
- Loading branch information
Showing
6 changed files
with
494 additions
and
183 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ einops | |
pillow | ||
gradio | ||
itables | ||
pandas | ||
pandas | ||
numpy<2.0.0 |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .eva02 import EVA02 | ||
from .load_timm_models import load_timm_models | ||
from .timm_model import TimmModel |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import timm | ||
|
||
from ..model_registry import ModelInputOutput, register_model | ||
from .timm_model import TimmModel | ||
|
||
|
||
def load_timm_models(): | ||
model_list = timm.list_models("*1k*", pretrained=True) | ||
|
||
for model_id in model_list: | ||
register_model(model_id, "timm", ModelInputOutput.IMAGE_TO_CATEGORIES)( | ||
TimmModel | ||
) | ||
|
||
|
||
load_timm_models() |