Sense-X / UniFormer

[ICLR2022] official implementation of UniFormer
Apache License 2.0
828 stars 111 forks source link

pos_embed key missing from checkpoints #110

Closed schmitzmatheus closed 1 year ago

schmitzmatheus commented 1 year ago

On main.py (https://github.com/Sense-X/UniFormer/blob/main/image_classification/main.py#L276), we try to access key pos_embed on the loaded checkpoint, but for the checkpoints provided, the key is missing and so the code fails.

This happens when running run.sh (https://github.com/Sense-X/UniFormer/blob/main/image_classification/exp/uniformer_small/run.sh) with the provided checkpoints for fineturning (--finetune ).

schmitzmatheus commented 1 year ago

I just saw #88