yinboc/prototypical-network-pytorch
yinboc/prototypical-network-pytorch has 330 GitHub stars and 61 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-21 01:19 UTC. Last push 2020-03-26.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
A re-implementation of "Prototypical Networks for Few-shot Learning"
머신러닝README.md
OriginalPrototypical Network
A re-implementation of Prototypical Network.
With ConvNet-4 backbone on miniImageNet.
For deep backbones (ResNet), see Meta-Baseline.
Results
1-shot: 49.1% (49.4% in the paper)
5-shot: 66.9% (68.2% in the paper)
Environment
- python 3
- pytorch 0.4.0
Instructions
Download the images: https://drive.google.com/open?id=0B3Irx3uQNoBMQ1FlNXJsZUdYWEE
Make a folder
materials/imagesand put those images into it.
--gpu to specify device for program.
1-shot Train
python train.py
1-shot Test
python test.py
5-shot Train
python train.py --shot 5 --train-way 20 --save-path ./save/proto-5
5-shot Test
python test.py --load ./save/proto-5/max-acc.pth --shot 5