Skip to content

COMP6248-Reproducability-Challenge/Free-Lunch-for-Few-Shot-Learning

Repository files navigation

COMP6248 Reproducibility Challenge - Free Lunch for Few-Shot Learning: Distribution Calibration

Paper: https://openreview.net/forum?id=JWOiYxMG92s

To show that the results from the paper is reproducible, we re-implemented the algorithm mentioned in the paper. The authors' code for creating the dataset and few shot learning task are kept here to ensure we use the same data for comparison. Implementing the distribution calibration algorithm using PyTorch improves the efficiency of the algorithm.

Run using extracted feature

  1. Download extracted features from this link: https://drive.google.com/drive/folders/1IjqOYLRH0OwkMZo8Tp4EG02ltDppi61n?usp=sharing
  2. Create an empty folder 'cache'
  3. Create an empty folder 'checkpoints'
  4. Put the downloaded files under the folder './checkpoints/[miniImagenet/CUB]/WideResNet28_10_S2M2_R/last/'.
  5. Run python evaluate_DC.py

References

@inproceedings{
yang2021free,
title={Free Lunch for Few-shot Learning:  Distribution Calibration},
author={Yang, Shuo and Liu, Lu and Xu, Min},
booktitle={International Conference on Learning Representations (ICLR)},
year={2021},
}

About

Reimplementation of the distribution calibration algorithm described in the paper: https://openreview.net/pdf?id=JWOiYxMG92s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published