Closed RunsenXu closed 11 months ago
@RunsenXu probably best to upgrade your timm
version. latest ver of openclip requires >= 0.9.8
my guess is that try except block was relevant for previous versions of timm but not anymore?
it's a bit more complicated than 'requires' as if you don't use the models that need the latest timm you can e.g. use the normal 'ViT' models, etc. However, 0.4.12 is way old.
I've been on the fence re forcing the ver in requirements.txt up to the latest or leaving it slack for people to figure out as they need to reduce dep conflicts. requirements-training.txt
always up to the latest needed to support all models.
Yeah, you are right. People should check the requirements-training.txt if needed.
Hi Open CLIP team,
I am using timm 0.4.12 and the latest version of the open clip, but the codes below will make timm = None since
import timm.models.layers.attention_pool2d
causes an errorModuleNotFoundError: No module named 'timm.models.layers.attention_pool2d'
. I think your requirements.txt may specify the timm version?Thanks for your great work!
Best, Runsen