prototypical networks
1.0.0
Code für die prototypischen NIPS 2017-Papiernetzwerke für nur wenige Lernen.
Wenn Sie diesen Code verwenden, zitieren Sie bitte unser Papier:
@inproceedings{snell2017prototypical,
title={Prototypical Networks for Few-shot Learning},
author={Snell, Jake and Swersky, Kevin and Zemel, Richard},
booktitle={Advances in Neural Information Processing Systems},
year={2017}
}
pip install git+https://github.com/pytorch/tnt.git@master .python setup.py install oder python setup.py develop .sh download_omniglot.sh aus.python scripts/train/few_shot/run_train.py aus. Dadurch wird das Training ausgeführt und die Ergebnisse in results gelegt.--log.exp_dir EXP_DIR übergeben, wobei EXP_DIR Ihr gewünschtes Ausgabeverzeichnis ist.--data.cuda übergeben.python scripts/train/few_shot/run_trainval.py . Dadurch wird Ihr Modell standardmäßig in results/trainval gespeichert.python scripts/predict/few_shot/run_eval.py --model.model_path results/trainval/best_model.pt .