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

运行问题 #3

Open
Wrjz opened this issue Apr 20, 2022 · 2 comments
Open

运行问题 #3

Wrjz opened this issue Apr 20, 2022 · 2 comments

Comments

@Wrjz
Copy link

Wrjz commented Apr 20, 2022

学长好,在这段代码里运行的时候他会报错
from timm.data.transforms import _pil_interp, RandomResizedCropAndInterpolation, ToNumpy, ToTensor, RandomResize,
MultiRandomHorizontalFlip, MultiRandomResize, MultiRandomCrop, MultiColorJitter, MultiToNumpy,
MultiFlicker, MultiRotate, MultiConcate, MultiBlur
报错:ImportError: cannot import name '_pil_interp' from 'timm.data.transforms' (D:\Anaconda\envs\pytorch\lib\site-packages\timm\data\transforms.py)
我查了一下可能是因为原生代码和本地的pytorch不一致,有什么解决办法吗?谢谢学长

@huangshiyu13
Copy link
Member

这个你只能自己重新配一下环境?

@Wrjz
Copy link
Author

Wrjz commented Apr 20, 2022

这个你只能自己重新配一下环境?
谢谢学长。

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