XueJiang16 / NegLabel

[ICLR 2024 Spotlight] "Negative Label Guided OOD Detection with Pretrained Vision-Language Models"
Apache License 2.0
20 stars 3 forks source link

about timm version #4

Closed myhakureimu closed 5 months ago

myhakureimu commented 5 months ago

Could the author kindly share the version of timm used in this repo? I tried the code with latest timm but there is bug reported:

from timm.models import create_model, apply_test_time_pool, load_checkpoint, is_model, list_models, set_fast_norm ImportError: cannot import name 'apply_test_time_pool' from 'timm.models' (/usr/miniconda3/envs/neglabel/lib/python3.8/site-packages/timm/models/init.py)

So I guess it's due to version mismatch.

XueJiang16 commented 5 months ago

I used timm 0.7.0.dev0.

myhakureimu commented 5 months ago

Thank you for the answer!

JB0527 commented 4 months ago

I am leaving a message in the hope that it will be helpful. There is no 0.7.0.dev0. so I used timm 0.6.13 ....