question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linear evaluation weight problems ("_IncompatibleKeys" and access issues)

See original GitHub issue

Hello, thanks for all the amazing work you put into this. I tried downloading the pretrained weights for the 3 available ViT models and have encountered some issues:

  1. ViT-S/16 gives me an “Access denied” message whenever I try downloading it.
  2. For ViT-S/8 or ViT-B/16, their weights seem corrupted? Whenever I try loading them into eval_linear.py, I get a message listing a long list of missing and unexpected keys. Not exactly sure what is wrong here. The loss also starts at a quite high value and although it’s dropping off, I don’t think this is the intended behavior from a pretrained model.

Here’s the training output (not the log) for ViT-S/8 TrainingOutput.txt

Thank you again for your work.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mathildecaron31commented, Sep 28, 2021

hi @kikacaty can you do a fresh clone and run again ? The problem with vit_base is due to a discrepency in the way I concatenated the features (related to https://github.com/facebookresearch/dino/issues/134) but that should be fixed in this commit https://github.com/facebookresearch/dino/commit/d2f3156bb34c32ae54312de7fe4e31580f12ff7f

image

1reaction
mathildecaron31commented, Sep 23, 2021

@KnockerPulsar

I have tried to improve the code so you can easily load the pretrained linear weights and check their performance (situation b. in my post above). For example you can run:

python eval_linear.py --evaluate --arch vit_small --patch_size 16 --data_path /path/to/imagenet/train
python eval_linear.py --evaluate --arch vit_small --patch_size 8 --data_path /path/to/imagenet/train
python eval_linear.py --evaluate --arch vit_base --patch_size 16 --n_last_blocks 1 --avgpool_patchtokens true --data_path /path/to/imagenet/train
python eval_linear.py --evaluate --arch vit_base --patch_size 8 --n_last_blocks 1 --avgpool_patchtokens true --data_path /path/to/imagenet/train
python eval_linear.py --evaluate --arch resnet50 --data_path /path/to/imagenet/train

https://github.com/facebookresearch/dino/commit/d2f3156bb34c32ae54312de7fe4e31580f12ff7f

Hope that helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

torch.nn.modules.module — transformers 4.4.2 documentation
"Please file an issue at https://github.com/pytorch/pytorch/issues/new?template=bug-report.md " "if a complex module does not work as expected.
Read more >
Problem with missing and unexpected keys while loading my ...
The problem is that the keys in state_dict are "fully qualified", which means that if you look at your network as a tree...
Read more >
A multiple classifier system approach and empirical evaluation
The problem of determining instance-level correspondences is referred to as record matching (or linkage) and instance (or entity) identification ...
Read more >
Mesmerize Documentation
Mesmerize is a platform for the annotation and analysis of neuronal calcium imaging data. It encompasses the entire.
Read more >
Untitled
This may lead to serious problems in the rules' application. ... a very important issue to evaluate the performance of transmission control protocol...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found