-
Notifications
You must be signed in to change notification settings - Fork 317
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 'Conv2dSame' from 'timm.models.layers' (unknown location) #61
Comments
Hi, Thanks for the great work, I was trying to check how this code works. raceback (most recent call last): |
I downloaded the files in layers directory from https://github.com/huggingface/pytorch-image-models/tree/main/timm/layers and substituted the corresponding directory of 'mm-cot/timm/models/layers', which solved the ImportError. |
Thanks, this solve the issue.
…On Mon, Oct 9, 2023 at 12:14 PM Zhimin00 ***@***.***> wrote:
I downloaded the files in layers directory from
https://github.com/huggingface/pytorch-image-models/tree/main/timm/layers
and substituted the corresponding directory of 'mm-cot/timm/models/layers',
which solved the ImportError.
—
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANHWSSMKRVQT67LFOM6D6A3X6OMOVAVCNFSM6AAAAAA4565RF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJSGQZDMNJRG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
ImportError: cannot import name 'convert_norm_act' from 'timm.models.layers' |
I downloaded the files from https://github.com/huggingface/pytorch-image-models/ and Replace the entire timm folder. It works for me |
When I run the script
extract_features.py
, I encountered the following error:ImportError: cannot import name 'Conv2dSame' from 'timm.models.layers' (unknown location)
My Python version is 3.9.12. Do I need to use Python 3.8 or 3.7 instead?"
The text was updated successfully, but these errors were encountered: