kaiko-ai / eva

Evaluation framework for oncology foundation models (FMs)
https://kaiko-ai.github.io/eva/
Apache License 2.0
66 stars 4 forks source link

`timm_model` in registry always uses `dynamic_img_size` in `kwargs` #637

Closed nkaenzig closed 2 months ago

nkaenzig commented 2 months ago

We should remove this, and instead pass this as a model_kwarg in the .yaml configs. https://github.com/kaiko-ai/eva/blob/e5d615ab6fce64ed3265baf70258acb70e312980/src/eva/vision/models/networks/backbones/timm/backbones.py#L46

Currently this fails when trying to load models such as resnet that don't expect a dynamic_img_size argument.