Open tonysy opened 2 years ago
@karttikeya Hi, I have sent you e-mail for this issue, but got no response, I'm curious about do you have any plan for this issue? @haooooooqi @lyttonhao Would you like to follow this issue and provide some suggestions?
Hi @tonysy,
Thanks for your interest in our work. The issue is arising because of the use of the test function. Since ImageNet has only a public validation set (and no test set), so we use the training+validation setting for validation.
If you wish only to run the eval, please simply comment out the call to train_epoch
and run the training+validation script as
python tools/run_net.py --cfg configs/ImageNet/REV_VIT_S.yaml \
DATA.PATH_TO_DATA_DIR data/imagenet/ \
TRAIN.CHECKPOINT_FILE_PATH path_to_rev_vit_s_checkpoint
It reproduces the result perfectly as I just tried it myself.
We will try to directly support reversible validation in future.
PS: I double-checked my inbox but seems like I did not receive your email. No worries, hope this solves the issue.
Thanks for the reply, I will try your solution. One more question, can I use this configuration file configs/ImageNet/REV_VIT_S.yaml
to train the model and reproduce the accuracy?
Yes.
Additionally, here's a few days old 80.4 REV ViT S model trained with configs/ImageNet/REV_VIT_S.yaml
along with the training log, so it is easier to reproduce.
Model + Log: https://drive.google.com/drive/folders/1JYSpejA4ckOdEbbw3PFHrzT4YugiZTJU?usp=share_link
Great, many thanks.
Yes.
Additionally, here's a few days old 80.4 REV ViT S model trained with
configs/ImageNet/REV_VIT_S.yaml
along with the training log, so it is easier to reproduce.Model + Log: https://drive.google.com/drive/folders/1JYSpejA4ckOdEbbw3PFHrzT4YugiZTJU?usp=share_link
Hi, @karttikeya The accuracy at 10 epoch is very high in this log, does it means you load trained model to get 80.4?
Hi @tonysy,
Thanks for noticing the erroneous run. I've retrained another model in the last few days with the current codebase and replaced the files on the same link with the correct log and Rev-ViT-S model with 79.75 acc. The model is trained from scratch.
Hopefully you've been able to to reproduce the validation accuracy for the model provided in the model zoo with the aforementioned procedure.
Hi, Could you provide the script to reproduce the Rev-ViT validation accuracy?
I use the following command and cannot get the right accuracy.
I can run the above command only when comment the following lines https://github.com/facebookresearch/SlowFast/blob/5b5d9ecb15a54188943af0cbf5f7c420d8409018/tools/test_net.py#L131-L135 and https://github.com/facebookresearch/SlowFast/blob/5b5d9ecb15a54188943af0cbf5f7c420d8409018/tools/test_net.py#L225-L229
Finally :
Could you give some hints? Thanks @haooooooqi @karttikeya