prototypical networks
1.0.0
Code pour les réseaux prototypiques de papier NIPS 2017 pour l'apprentissage à quelques coups.
Si vous utilisez ce code, veuillez citer notre 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 ou python setup.py develop .sh download_omniglot.sh .python scripts/train/few_shot/run_train.py . Cela organisera une formation et placera les résultats dans results .--log.exp_dir EXP_DIR , où EXP_DIR est le répertoire de sortie souhaité.--data.cuda .python scripts/train/few_shot/run_trainval.py . Cela sauvera votre modèle dans results/trainval par défaut.python scripts/predict/few_shot/run_eval.py --model.model_path results/trainval/best_model.pt .