You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting [1] 1774566 floating point exception python main_finetune.py --batch_size 16 --model vit_large_patch16 --epochs 50 when trying to run your finetuning script. I also slightly changed the code to try out non-distributed mode, but to no avail.
Your dependencies are very outdated, python3.7 is no longer supported, the timm version is 4 years old.
I tried running without the version requirements (so torch>=2, latest timm), but then, I get
# use a separate environment because it requires timm version 0.3.2 for loading the model, otherwise
# x = global_pool_nlc(x, pool_type=pool_type, num_prefix_tokens=self.num_prefix_tokens)
# File "/lustre/home/mmordig/micromamba/envs/retfound/lib/python3.10/site-packages/timm/models/vision_transformer.py", line 409, in global_pool_nlc
# assert not pool_type, f'Unknown pool type {pool_type}'
# AssertionError: Unknown pool type True
timm0.3.2 is not compatible with recent versions of torch (due to importing torch._six).
Do you have a pretrained model that is compatible with more recent torch/timm versions?
The text was updated successfully, but these errors were encountered:
I’m encountering the same issue. This is particularly challenging because I should downgrade my Python version to 3.7.1 to use torch==1.7.1, which supports torch._six, a dependency for timm==0.3.2. At the same time I need Python 3.10 or later for specific functions not supported in earlier Python versions.
It would be highly beneficial if a compatible model could be provided that works with a more recent version of timm.
I am getting
[1] 1774566 floating point exception python main_finetune.py --batch_size 16 --model vit_large_patch16 --epochs 50
when trying to run your finetuning script. I also slightly changed the code to try out non-distributed mode, but to no avail.Your dependencies are very outdated, python3.7 is no longer supported, the timm version is 4 years old.
I tried running without the version requirements (so torch>=2, latest timm), but then, I get
timm0.3.2 is not compatible with recent versions of torch (due to importing
torch._six
).Do you have a pretrained model that is compatible with more recent torch/timm versions?
The text was updated successfully, but these errors were encountered: