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

I2V - Failed to import transformers.models.timm #417

Open
Kvento opened this issue Mar 6, 2025 · 3 comments
Open

I2V - Failed to import transformers.models.timm #417

Kvento opened this issue Mar 6, 2025 · 3 comments

Comments

@Kvento
Copy link

Kvento commented Mar 6, 2025

When trying to use i2v example I get a crash in the (Down)Load HunyuanVideo TextEncoder node:

Failed to import transformers.models.timm_wrapper.configuration_timm_wrapper because of the following error (look up to see its traceback):
cannot import name 'ImageNetInfo' from 'timm.data' (F:\All_AIs\Image_Video\ComfyUI_windows_portable\python_embeded\Lib\site-packages\timm\data_init
.py)_

ComfyUI updated via update/update_comfyui_and_python_dependencies.bat
And nodes are also updated.

I use RTX 2080ti. Worked fine in T2V mode.

Any ideas what might be wrong?

@kijai
Copy link
Owner

kijai commented Mar 6, 2025

I think this was due to outdated transformers and/or timm -packages. Probably timm

@Kvento
Copy link
Author

Kvento commented Mar 6, 2025

I think this was due to outdated transformers and/or timm -packages. Probably timm

My versions:
transformers 4.49.0
timm 1.0.9

@kijai
Copy link
Owner

kijai commented Mar 6, 2025

I'm on timm 1.0.15

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