The code in this repository is for the experiments in Addressing Catastrophic Forgetting in Few-Shot Problems.
- Python 3.8
- PyTorch 1.8.0
- Tensorboard 2.5.0
- Torchmeta 1.8.0
-
Install requirements:
pip install -r requirements.txt
and internal modules:pip install -e .
-
Install PyTorch based on the download information in PyTorch website.
-
See
data_prepare
README to prepare for the datasets necessary for this project. -
A 16GB GPU is sufficient to run any of the experiments, although a smaller GPU might also be possible by setting
cuda_img=false
in the config files.
-
Use main file
main_la_seqdataset.py
for LA,main_vi_seqdataset.py
for VI. -
Use config files
triathlon_*.json
for triathlon andpentathlon_*.json
pentathlon. -
data_path
takes the path of the parent folder containing all datasets.python train/<MAIN_FILE> --config_path config/<CONFIG_FILE> --data_path <PARENT_DATA_PATH>
-
Use main file
main_la_seqtask.py
and config fileomniglot_seqtask_la.json
for LA,main_vi_seqtask.py
andomniglot_seqtask_vi.json
for VI.python train/<MAIN_FILE> --config_path config/<CONFIG_FILE> --data_path <PARENT_DATA_PATH>