Dahyun Kang Ahmet Iscen Eunchan Jo Sua Choi Minsu Cho Cordelia Schmid
This repo is the official implementation of the TMLR 2025 paper Memory-Modular Classification: Learning to Generalize with Memory Replacement
conda env create -f environment.yml --prefix $YOURPREFIX$YOUPREFIX is typically /home/anaconda3
python main.py \
--datapath $YOURDATASETPATH \
--dataset {imagenetunseen/cub200} \
--logpath $YOURLOGPATHpython main.py \
--datapath $YOURDATASETPATH \
--dataset {imagenetunseen/cub200} \
--logpath $YOURLOGPATH
--evalDownload and extract ImageNet100 from here. Then download and extract the wiki text into the same directory, and the directory tree of data is expected to be like this:
{your root path}/imagenet100/
train.X1
train.X2
train.X3
train.X4
val.X
wiki/
desc_1.txt
labels.txt
- Raise
--nowandbfor no wandb logging - Raise
--evalfor evaluating the best checkpoint of the corresponding--logpathexperiment - Raise
--resumefor resume from the last checkpoint of the corresponding--logpathexperiment
