prototypical networks
1.0.0
รหัสสำหรับเครือข่ายต้นแบบกระดาษ NIPS 2017 สำหรับการเรียนรู้ไม่กี่ครั้ง
หากคุณใช้รหัสนี้โปรดอ้างอิงกระดาษของเรา:
@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@masterpython setup.py install หรือ python setup.py developsh download_omniglot.shpython scripts/train/few_shot/run_train.py สิ่งนี้จะดำเนินการฝึกอบรมและวางผลลัพธ์ลงใน results--log.exp_dir EXP_DIR โดยที่ EXP_DIR เป็นไดเรกทอรีเอาต์พุตที่คุณต้องการ--data.cudapython 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