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

Unable to run ViT experiments #13

Closed
goirik-chakrabarty opened this issue Apr 29, 2024 · 4 comments
Closed

Unable to run ViT experiments #13

goirik-chakrabarty opened this issue Apr 29, 2024 · 4 comments

Comments

@goirik-chakrabarty
Copy link
Contributor

Hi,

Firstly, thanks a lot for the excellent repo! I was trying to use the transformer architectures to reproduce the numbers however I am not able to understand which ARCH_NAME to use. The split_head function also gives an error.

This may be due to a mismatch in the Timm version, but I am unsure.

@RobMarsden
Copy link
Collaborator

Hi,

all our experiments use the models provided by torchvision. If you want to reproduce some of the experiments, you should have a look at the run.sh. Alternatively, you can manually set MODEL.ARCH to vit_b_16 or swin_b. If you encounter any errors after updating the environment, please provide the details.

@manogna-s
Copy link

Hi,

I had the same issue. I was able to use vit_b_16 architecture. However, I get this error on using swin_b :

raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'SwinTransformer' object has no attribute 'patch_embed'

Any suggestions to resolve this?

@RobMarsden
Copy link
Collaborator

Hi,
can you provide the configuration you are using?

@goirik-chakrabarty
Copy link
Contributor Author

Thank you! @RobMarsden it worked for me.

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

3 participants