RL-VIG/LibFewShot
RL-VIG/LibFewShot has 1,073 GitHub stars and 199 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 10:42 UTC. Last push 2025-10-27.
[TPAMI 2023] LibFewShot: A Comprehensive Library for Few-shot Learning.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalLibFewShot
Make few-shot learning easy.
LibFewShot: A Comprehensive Library for Few-shot Learning.
Wenbin Li, Ziyi Wang, Xuesong Yang, Chuanqi Dong, Pinzhuo Tian, Tiexin Qin, Jing Huo, Yinghuan Shi, Lei Wang, Yang Gao, Jiebo Luo. In TPAMI 2023.

Supported Methods
Non-episodic methods (a.k.a Fine-tuning based methods)
- Baseline (ICLR 2019)
- Baseline++ (ICLR 2019)
- RFS (ECCV 2020)
- SKD (BMVC 2021)
- Negcos (ECCV 2020)
- S2M2 (WACV 2020)
- Meta-Baseline (ICCV 2021)
- Diffkendall(NeurIPS 2023)
Meta-learning based methods
- MatchingNet (NeurIPS 2016)
- MAML (ICML 2017)
- Versa (NeurIPS 2018)
- R2D2 (ICLR 2019)
- LEO (ICLR 2019)
- MTL (CVPR 2019)
- ANIL (ICLR 2020)
- IFSL(NeurIPS 2020)
- BOIL (ICLR 2021)
- MeTAL (ICCV 2021)
Metric-learning based methods
- ProtoNet (NeurIPS 2017)
- RelationNet (CVPR 2018)
- ConvaMNet (AAAI 2019)
- DN4 (CVPR 2019)
- CAN (NeurIPS 2019)
- ATL-Net (IJCAI 2020)
- ADM (IJCAI 2020)
- DSN (CVPR 2020)
- FEAT (CVPR 2020)
- RENet (ICCV 2021)
- FRN (CVPR 2021)
- DeepBDC (CVPR 2022)
- MCL (CVPR 2022)
- CPEA (ICCV 2023)
Quick Installation
Please refer to install.md(安装) for installation.
Complete tutorials can be found at document(中文文档).
Reproduction
We provide some validated configs in reproduce, please refer to ./reproduce/<Method_Name>/README.md for further infomations. The meanings of the symbols are as follows:
:book: The accuracies reproted by the papers.
:computer: The accuracies reproted by ourselves.
:arrow_down: Hyperlinks to download the checkpoints folder. (Containing
config.yaml,model_best.pthand thetrain/test log):clipboard: Hyperlinks to the config file.
You can also find these checkpoints at model_zoo.
Datasets
Caltech-UCSD Birds-200-2011, Standford Cars, Standford Dogs, miniImageNet, tieredImageNet and WebCaricature are available at Google Drive and 百度网盘(提取码:yr1w).
Contributing
Please feel free to contribute any kind of functions or enhancements, where the coding style follows PEP 8. Please kindly refer to contributing.md(贡献代码) for the contributing guidelines.
License
This project is licensed under the MIT License. See LICENSE for more details.
Acknowledgement
LibFewShot is an open source project designed to help few-shot learning researchers quickly understand the classic methods and code structures. We welcome other contributors to use this framework to implement their own or other impressive methods and add them to LibFewShot. This library can only be used for academic research. We welcome any feedback during using LibFewShot and will try our best to continually improve the library.
Citation
If you use this code for your research, please cite our paper.
@article{li2021LibFewShot,
title = {LibFewShot: A Comprehensive Library for Few-Shot Learning},
author={Li, Wenbin and Wang, Ziyi and Yang, Xuesong and Dong, Chuanqi and Tian, Pinzhuo and Qin, Tiexin and Huo Jing and Shi, Yinghuan and Wang, Lei and Gao, Yang and Luo, Jiebo},
journal = {IEEE Transactions on Pattern Analysis & Machine Intelligence},
year = {2023},
number = {01},
issn = {1939-3539},
pages = {1-18}
}
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,400 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,668 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,261 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
145,835 stars