ViCCo-Group / thingsvision

Python package for extracting representations from state-of-the-art computer vision models
https://vicco-group.github.io/thingsvision/
MIT License
157 stars 21 forks source link

Adaption to timm 0.9.x naming scheme #172

Closed a1247418 closed 6 months ago

a1247418 commented 6 months ago

In timm 0.9.x, the model naming scheme has changed, e.g. vit_base_patch16_224_in21k -> vit_base_patch16_224.augreg_in21k (the datasets are now separated by a '.'), but the part after '.' is omitted in timm.list_models(). The change of the if-statement is a minimal change that allows for compatibility to both versions of timm.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.44%. Comparing base (9d41265) to head (706afa2).

:exclamation: Current head 706afa2 differs from pull request most recent head d0b8b8e. Consider uploading reports for the commit d0b8b8e to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #172 +/- ## ======================================= Coverage 74.44% 74.44% ======================================= Files 36 36 Lines 1851 1851 Branches 247 247 ======================================= Hits 1378 1378 Misses 396 396 Partials 77 77 ``` | [Flag](https://app.codecov.io/gh/ViCCo-Group/thingsvision/pull/172/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ViCCo-Group) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/ViCCo-Group/thingsvision/pull/172/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ViCCo-Group) | `74.44% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ViCCo-Group#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.