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

'bool' object has no attribute 'pos_embed #67

Open
helloworld-wu opened this issue Dec 18, 2021 · 2 comments
Open

'bool' object has no attribute 'pos_embed #67

helloworld-wu opened this issue Dec 18, 2021 · 2 comments

Comments

@helloworld-wu
Copy link

image
When I want to use the pretrained model, I got a problem likes this. Could you tell me how to slove it? Thanks!

@xmy0916
Copy link
Contributor

xmy0916 commented Jan 17, 2022

把这行改成https://github.com/yitu-opensource/T2T-ViT/blob/main/utils.py#L83

state_dict = load_state_dict(checkpoint_path, model, use_ema, num_classes)

就行了
@helloworld-wu

@helloworld-wu
Copy link
Author

把这行改成https://github.com/yitu-opensource/T2T-ViT/blob/main/utils.py#L83

state_dict = load_state_dict(checkpoint_path, model, use_ema, num_classes)

就行了 @helloworld-wu

谢谢!

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