Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This is the official implementation of the 1st place for the DATACV competition (CVPR 2023 Workshop).

Notifications You must be signed in to change notification settings

yhaochen0617/SMP

Repository files navigation

Scoring Your Prediction !

This is the official implementation of the 1st place for the DATACV competition (CVPR 2023 Workshop).

We just train a tiny model (about 6 KB) to score another model predictions (ResNet or RepVGG) ! We can obtain the exciting results when estimating accuracy on label-free test set.

Prepare

  • Before running the code, you should install torch(1.13.0) and torchvision(0.14.0).
  • Download and unzip the origin train/val/test data from link into DATASET.
  • Create a symbolic link in the ROOT
ln -s DATASET data

data folder structure :

data
   - cifar10 (Standard cifar10 dataset)
   - test_data
   - train_data
   - val

Usage

Note that the code only support running on the single GPU. You just need run a line code for reproduction.

For ResNet:

python3 evaluate_resnet.py

For RepVGG:

python3 evaluate_repvgg.py

Note that our codebase saves some intermediate results, and thus the speed will be slightly slower when first time running, but it will be very fast when running again.

The RMSE results of ResNet/RepVGG on the validation sets are as follows:

model Fid SMP(ours)
ResNet 4.98 3.15
RepVGG 5.96 4.35

We also provide the checkpoints to re-implement the result we submitted on the leadboard.

For ResNet,

python3 evaluate_resnet.py -l checkpoint/resnet/model.pth

We must emphasize the fact here that this checkpoint is not the model that produces the final result of ResNet. Because of our oversight, the model has not been saved. This checkpoint is our re-implementation, and the performance of the two models on validation sets is comparable (RMSE on validation sets is about 3.15).

For RepVGG:

python3 evaluate_repvgg.py -e checkpoint/repvgg/model_cnn.pth+checkpoint/repvgg/model_vit.pth

It can produce the same prediction with the best result on leadboard ( for RepVGG ). We adopt the ensemble method of two models to obtain the RepVGG prediction due to difficulty (In fact, only using MLP also can obtain similar performance ).

About

This is the official implementation of the 1st place for the DATACV competition (CVPR 2023 Workshop).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages