DeepAL+ is an extended toolkit originated from DeepAL toolkit. Including python implementations of the following active learning algorithms:
We support 10 datasets, MNIST, FashionMNIST, EMNIST, SVHN, CIFAR10, CIFAR100, Tiny ImageNet, BreakHis, PneumoniaMNIST, Waterbirds. One can add a new dataset by adding a new function get_newdataset()
in data.py
.
Tiny ImageNet, BreakHis, PneumoniaMNIST need to be downloaded manually, the corresponding data addresses can be found in data.py
.
In DeepAL+, we use ResNet18 as the basic classifier. One can replace it with other basic classifiers and add them to nets.py
.
You can also use the following command to install the conda environment
conda env create -f environment.yml
faiss-gpu
and wilds should use pip install
.
python demo.py \
-a RandomSampling \
-s 100 \
-q 1000 \
-b 100 \
-d MNIST \
--seed 4666 \
-t 3 \
-g 0
See arguments.py
for more instructions.
We have also constructed a comparative survey based on DeepAL+.
Please refer to here for more details.
Please consider citing our paper if you use our code in your research or applications.
@article{zhan2022comparative,
title={A comparative survey of deep active learning},
author={Zhan, Xueying and Wang, Qingzhong and Huang, Kuan-hao and Xiong, Haoyi and Dou, Dejing and Chan, Antoni B},
journal={arXiv preprint arXiv:2203.13450},
year={2022}
}
[1] A Sequential Algorithm for Training Text Classifiers, SIGIR, 1994
[2] Active Hidden Markov Models for Information Extraction, IDA, 2001
[3] Active learning literature survey. University of Wisconsin-Madison Department of Computer Sciences, 2009
[4] Deep Bayesian Active Learning with Image Data, ICML, 2017
[5] Active Learning for Convolutional Neural Networks: A Core-Set Approach, ICLR, 2018
[6] Adversarial Active Learning for Deep Networks: a Margin Based Approach, arXiv, 2018
[7] Semantic segmentation of small objects and modeling of uncertainty in urban remote sensing images using deep convolutional neural networks, CVPR, 2016
[8] Elementary applied statistics: for students in behavioral science. New York: Wiley, 1965
[9] Cost-effective active learning for deep image classification. TCSVT, 2016
[10] Deep batch active learning by diverse, uncertain gradient lower bounds. ICLR, 2020
[11] Learning loss for active learning. CVPR, 2019
[12] Variational adversarial active learning, ICCV, 2019
[13] Deep active learning: Unified and principled method for query and training. AISTATS, 2020
If you have any further questions or want to discuss Active Learning with me or contribute your own Active Learning approaches to our toolkit, please contact xueyingz@andrew.cmu.edu (my spare email is sinezhan17@gmail.com).