prototypical networks
1.0.0
رمز لشبكات NIPS 2017 Paper Orgeical لتعلم القليل من اللقطة.
إذا كنت تستخدم هذا الرمز ، يرجى الاستشهاد بالورقة:
@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 أو python setup.py develop .sh download_omniglot.sh .python scripts/train/few_shot/run_train.py . سيؤدي ذلك إلى تشغيل التدريب ووضع النتائج في results .--log.exp_dir EXP_DIR ، حيث يكون EXP_DIR دليل الإخراج المطلوب.--data.cuda .python scripts/train/few_shot/run_trainval.py . سيؤدي هذا إلى حفظ النموذج الخاص بك في results/trainval افتراضيًا.python scripts/predict/few_shot/run_eval.py --model.model_path results/trainval/best_model.pt .