Closed 111chengxuyuan closed 2 years ago
Hi, @111chengxuyuan , to debug, I wonder if you can use the one of the 3 vtab-datasets in the demo.ipynb, and see if the results are the same.
After a quick check on the config, the feature is different: should be "sup_vitb16_imagenet21k" instead of "sup_vitb16_224".
But I still recommend using the 3 vtab datasets in demo as a starting point for reproducing our results.
OK,thank you,I'll try
let me know how it goes! btw, could you use the lr, wd, seed values specified in the demo as well?
Yes, the demo can be used well, now the experimental results are the same as those in the paper. Thank you!
Awesome! I'm glad to hear that! Will close the issue for now, feel free to reopen if you have other questions!
After a quick check on the config, the feature is different: should be "sup_vitb16_imagenet21k" instead of "sup_vitb16_224".
But I still recommend using the 3 vtab datasets in demo as a starting point for reproducing our results.
what is the difference between these two models? using different datasets to pre-train?
the link provided in README, is it sup_vitb16_imagenet21k or sup_vitb16_224?
sup_vitb16_imagenet21k is not supported since you did not provide imagenet21k_ViT-B_16.npz. I can only set "sup_vitb16" as the pretrained model.
sup_vitb16_imagenet21k is not supported since you did not provide imagenet21k_ViT-B_16.npz. I can only set "sup_vitb16" as the pretrained model.
can you be more specific? i don't quite understand you.
sup_vitb16_imagenet21k is not supported since you did not provide imagenet21k_ViT-B_16.npz. I can only set "sup_vitb16" as the pretrained model.
can you be more specific? i don't quite understand you.
I am asking the similar questions like yours.
I cannot run with the feature set to sup_vitb16_imagenet21k.
@qianlanwyd @zhaoedf I see that there is some confusion over the feature names. The link provided in README is for ViT-Base pre-trained with ImageNet-21k, which is the main pre-trained model we used in the paper.
Due to legacy issue, I renamed the downloaded ckpt to imagenet21k_ViT-B_16.npz
from ViT-B_16.npz
. The new ckpt name is used for building the model. If you don't rename the checkpoint and set DATA.FEATURE = "sup_vitb16_imagenet21k"
, you will get a FileNotFound error.
There are two solutions:
(1) rename the downloaded ckpt to imagenet21k_ViT-B_16.npz
.
(2) change L35 of src/models/build_vit_backbone.py to ViT-B_16.npz
.
I recommend to use solution (1). I also added a note in README about this.
Hello I have done the vtab1k experiment on three datasets, but the experimental results are much different from the paper. The result of cifar100 dataset is 72.4, the result of smallnorb/azimuth dataset is 15.7, and the result of smallnorb/elevation dataset is 22.6. I don't know why. Is my profile wrong? My profile is as follows: