-
Notifications
You must be signed in to change notification settings - Fork 23
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
For --model mae_vit_base_patch8_128, KeyError #7
Comments
Thank you for your kind reminder. Please use the right command |
I then get
|
You can simply modify lines 291-292 by deleting 'pos_embed_spatial' in main_finetune.py to run the code. If the same error persists, try applying the same method again. |
OK after removing |
I suggest to modify the source code in the following way in case of other potential problems. from if k in checkpoint_model and checkpoint_model[k].shape != state_dict[k].shape: to if k in checkpoint_model and k in state_dict and checkpoint_model[k].shape != state_dict[k].shape: |
Running
eurosat_finetune
, from the error:Adding
print(list(models_vit_tensor.__dict__.keys())
I see:Possibly missing from the script:
import models_mae_spectral
and at line 273:model = models_mae_spectral.__dict__[args.model]()
However I then get
AttributeError: 'MaskedAutoencoderViT' object has no attribute 'head'
The text was updated successfully, but these errors were encountered: