├── .gitignore ├── LICENSE.txt ├── README.md ├── configs ├── CUB │ ├── exp_neg-cosine.yml │ └── exp_neg-softmax.yml ├── mini2CUB │ ├── exp_neg-cosine.yml │ └── exp_neg-softmax.yml └── miniImagenet │ ├── exp_neg-cosine.yml │ └── exp_neg-softmax.yml ├── data ├── CUB │ ├── download_CUB.sh │ └── write_CUB_filelist.py └── miniImagenet │ ├── download_miniImagenet.sh │ ├── write_miniImagenet_base_val_filelist.py │ ├── write_miniImagenet_cross_filelist.py │ └── write_miniImagenet_filelist.py ├── lib ├── backbone │ ├── __init__.py │ ├── conv4.py │ ├── resnet12.py │ ├── resnet18.py │ └── wrn.py ├── config.py ├── dataset.py ├── dropblock.py ├── metric.py ├── model.py └── utils.py ├── main.py └── script ├── resnet12 ├── miniImagenet_neg-cosine_1-shot.sh ├── miniImagenet_neg-cosine_5-shot.sh ├── miniImagenet_neg-softmax_1-shot.sh └── miniImagenet_neg-softmax_5-shot.sh └── resnet18 ├── CUB_neg-cosine_1-shot.sh ├── CUB_neg-cosine_5-shot.sh ├── CUB_neg-softmax_1-shot.sh ├── CUB_neg-softmax_5-shot.sh ├── mini2CUB_neg-cosine_5-shot.sh ├── mini2CUB_neg-softmax_5-shot.sh ├── miniImagenet_neg-cosine_1-shot.sh ├── miniImagenet_neg-cosine_5-shot.sh ├── miniImagenet_neg-softmax_1-shot.sh └── miniImagenet_neg-softmax_5-shot.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/README.md -------------------------------------------------------------------------------- /configs/CUB/exp_neg-cosine.yml: -------------------------------------------------------------------------------- 1 | # nothing 2 | -------------------------------------------------------------------------------- /configs/CUB/exp_neg-softmax.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/configs/CUB/exp_neg-softmax.yml -------------------------------------------------------------------------------- /configs/mini2CUB/exp_neg-cosine.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/configs/mini2CUB/exp_neg-cosine.yml -------------------------------------------------------------------------------- /configs/mini2CUB/exp_neg-softmax.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/configs/mini2CUB/exp_neg-softmax.yml -------------------------------------------------------------------------------- /configs/miniImagenet/exp_neg-cosine.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/configs/miniImagenet/exp_neg-cosine.yml -------------------------------------------------------------------------------- /configs/miniImagenet/exp_neg-softmax.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/configs/miniImagenet/exp_neg-softmax.yml -------------------------------------------------------------------------------- /data/CUB/download_CUB.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/data/CUB/download_CUB.sh -------------------------------------------------------------------------------- /data/CUB/write_CUB_filelist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/data/CUB/write_CUB_filelist.py -------------------------------------------------------------------------------- /data/miniImagenet/download_miniImagenet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/data/miniImagenet/download_miniImagenet.sh -------------------------------------------------------------------------------- /data/miniImagenet/write_miniImagenet_base_val_filelist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/data/miniImagenet/write_miniImagenet_base_val_filelist.py -------------------------------------------------------------------------------- /data/miniImagenet/write_miniImagenet_cross_filelist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/data/miniImagenet/write_miniImagenet_cross_filelist.py -------------------------------------------------------------------------------- /data/miniImagenet/write_miniImagenet_filelist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/data/miniImagenet/write_miniImagenet_filelist.py -------------------------------------------------------------------------------- /lib/backbone/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/backbone/__init__.py -------------------------------------------------------------------------------- /lib/backbone/conv4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/backbone/conv4.py -------------------------------------------------------------------------------- /lib/backbone/resnet12.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/backbone/resnet12.py -------------------------------------------------------------------------------- /lib/backbone/resnet18.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/backbone/resnet18.py -------------------------------------------------------------------------------- /lib/backbone/wrn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/backbone/wrn.py -------------------------------------------------------------------------------- /lib/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/config.py -------------------------------------------------------------------------------- /lib/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/dataset.py -------------------------------------------------------------------------------- /lib/dropblock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/dropblock.py -------------------------------------------------------------------------------- /lib/metric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/metric.py -------------------------------------------------------------------------------- /lib/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/model.py -------------------------------------------------------------------------------- /lib/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/lib/utils.py -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/main.py -------------------------------------------------------------------------------- /script/resnet12/miniImagenet_neg-cosine_1-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet12/miniImagenet_neg-cosine_1-shot.sh -------------------------------------------------------------------------------- /script/resnet12/miniImagenet_neg-cosine_5-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet12/miniImagenet_neg-cosine_5-shot.sh -------------------------------------------------------------------------------- /script/resnet12/miniImagenet_neg-softmax_1-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet12/miniImagenet_neg-softmax_1-shot.sh -------------------------------------------------------------------------------- /script/resnet12/miniImagenet_neg-softmax_5-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet12/miniImagenet_neg-softmax_5-shot.sh -------------------------------------------------------------------------------- /script/resnet18/CUB_neg-cosine_1-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/CUB_neg-cosine_1-shot.sh -------------------------------------------------------------------------------- /script/resnet18/CUB_neg-cosine_5-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/CUB_neg-cosine_5-shot.sh -------------------------------------------------------------------------------- /script/resnet18/CUB_neg-softmax_1-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/CUB_neg-softmax_1-shot.sh -------------------------------------------------------------------------------- /script/resnet18/CUB_neg-softmax_5-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/CUB_neg-softmax_5-shot.sh -------------------------------------------------------------------------------- /script/resnet18/mini2CUB_neg-cosine_5-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/mini2CUB_neg-cosine_5-shot.sh -------------------------------------------------------------------------------- /script/resnet18/mini2CUB_neg-softmax_5-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/mini2CUB_neg-softmax_5-shot.sh -------------------------------------------------------------------------------- /script/resnet18/miniImagenet_neg-cosine_1-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/miniImagenet_neg-cosine_1-shot.sh -------------------------------------------------------------------------------- /script/resnet18/miniImagenet_neg-cosine_5-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/miniImagenet_neg-cosine_5-shot.sh -------------------------------------------------------------------------------- /script/resnet18/miniImagenet_neg-softmax_1-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/miniImagenet_neg-softmax_1-shot.sh -------------------------------------------------------------------------------- /script/resnet18/miniImagenet_neg-softmax_5-shot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bl0/negative-margin.few-shot/HEAD/script/resnet18/miniImagenet_neg-softmax_5-shot.sh --------------------------------------------------------------------------------