WenbinLee / DN4

Pytorch code of "Revisiting Local Descriptor based Image-to-Class Measure for Few-shot Learning", CVPR 2019.
Other
191 stars 43 forks source link
few-shot-learning image-to-class local-descriptors

DN4 in PyTorch (2023 Version)

We provide a PyTorch implementation of DN4 for few-shot learning. If you use this code, please cite:

Revisiting Local Descriptor based Image-to-Class Measure for Few-shot Learning.
Wenbin Li, Lei Wang, Jinglin Xu, Jing Huo, Yang Gao and Jiebo Luo. In CVPR 2019.

Prerequisites

Getting Started

Installation

Datasets

Caltech-UCSD Birds-200-2011, Standford Cars, Standford Dogs, miniImageNet and tieredImageNet are available at Google Drive and 百度网盘(提取码:yr1w).

miniImageNet Few-shot Classification

Latest results on miniImageNet (2023)

(Compared to the originally reported results in the paper. * denotes that ResNet256F is used.)

Method Backbone 5-way 1-shot 5-way 5-shot
2019 Version 2023 Version 2019 Version 2023 Version
DN4 Conv64F_Local 51.24 51.97 71.02 73.19
ResNet12 54.37* 61.23 74.44* 75.66

Citation

If you use this code for your research, please cite our paper.

@inproceedings{DN4_CVPR_2019,
  author       = {Wenbin Li and
                  Lei Wang and
                  Jinglin Xu and
                  Jing Huo and
                  Yang Gao and
                  Jiebo Luo},
  title        = {Revisiting Local Descriptor Based Image-To-Class Measure for Few-Shot Learning},
  booktitle    = {{IEEE} Conference on Computer Vision and Pattern Recognition (CVPR)},
  pages        = {7260--7268},
  year         = {2019}
}