Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'str_to_pil_interp' from 'timm.data.transforms' #14

Open
yujialiang1997 opened this issue Jul 27, 2022 · 1 comment

Comments

@yujialiang1997
Copy link

No matter how I run msunas.py or evaluator.py or train_cifar.py,There will always be such mistakes:
sudo+ssh://[email protected]:8002/root/anaconda3/bin/python3.7 -u /home/yujialiang/nsganetv2-master/train_cifar.py
Traceback (most recent call last):
File "/home/yujialiang/nsganetv2-master/train_cifar.py", line 20, in
from evaluator import OFAEvaluator
File "/home/yujialiang/nsganetv2-master/evaluator.py", line 9, in
from codebase.run_manager import get_run_config
File "/home/yujialiang/nsganetv2-master/codebase/run_manager/init.py", line 5, in
from codebase.data_providers.dtd import *
File "/home/yujialiang/nsganetv2-master/codebase/data_providers/dtd.py", line 5, in
from timm.data.transforms import str_to_pil_interp
ImportError: cannot import name 'str_to_pil_interp' from 'timm.data.transforms' (/root/anaconda3/lib/python3.7/site-packages/timm/data/transforms.py)

I think it may be that the version of timm does not correspond,but the timm version I did install was 0.1.30.
I don 't know where the problem is. Would you like to anwser this question?
Thank you very much!

@yongyuan-chen
Copy link

pip install timm==0.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants