← Open Source
jakesnell

prototypical-networks

Code for the NeurIPS 2017 Paper "Prototypical Networks for Few-shot Learning".

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.24k
Stars
270
Forks
+1
This week
1
Contributors
Created 2017-11-05 · Updated 2026-10-14 · #11031 today
Top developers
jakesnell

jakesnell/prototypical-networks is ranked 11,031 with 1,235 stars.

Same-category comparison

jakesnell/prototypical-networks is ranked 11,031 among these 8 peers; BR-IDL/PaddleViT is ranked 11,029.

Same-category comparison
NameRankMetrics
SciML/NeuralPDE.jl11,024
Language:
Julia
Stars:
1,236
Forks:
252
Description:
Physics-Informed Neural Networks (PINN) Solvers of (Partial) Differential Equations for Scientific Machine Learning (SciML) accelerated simulation.
facebookresearch/simsiam11,026
Language:
Python
Stars:
1,236
Forks:
174
Description:
PyTorch implementation of SimSiam https//arxiv.org/abs/2011.10566.
ivan-vasilev/neuralnetworks11,027
Language:
Java
Stars:
1,236
Forks:
345
Description:
java deep learning algorithms and deep neural networks with gpu acceleration.
BR-IDL/PaddleViT11,029
Language:
Python
Stars:
1,235
Forks:
328
Description:
:robot: PaddleViT: State-of-the-art Visual Transformer and MLP Models for PaddlePaddle 2.0+.
jfzhang95/pytorch-video-recognition11,038
Language:
Python
Stars:
1,234
Forks:
251
Description:
PyTorch implemented C3D, R3D, R2Plus1D models for video activity recognition.
python-adaptive/adaptive11,050
Language:
Python
Stars:
1,230
Forks:
64
Description:
:chart_with_upwards_trend: Adaptive: parallel active learning of mathematical functions.
yuanxiaosc/Entity-Relation-Extraction11,052
Language:
Python
Stars:
1,230
Forks:
269
Description:
Entity and Relation Extraction Based on TensorFlow and BERT. Schema based Knowledge Extraction, SKE 2019.
huoyijie/AdvancedEAST11,054
Language:
Python
Stars:
1,229
Forks:
371
Description:
AdvancedEAST is an algorithm used for Scene image text detect, which is primarily based on EAST, and the significant improvement was also made, which make long text predictions more accurate.https://github.com/huoyijie/raspberrypi-car.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
Stars1,235
Forks270
Contributors1
Created date2017-11-05
Updated date2026-10-14
Stars in 1 day0
Stars in 7 days1
Rank11,031
Previous rank5,866
Rank change-5,165
7-day stars rank10,038
Previous 7-day stars rank10,079
7-day stars rank change41
Total stars rank9,473
Previous total stars rank9,463
Total stars rank change-10
README summary

Prototypical Networks for Few-shot Learning Code for the NIPS 2017 paper Prototypical Networks for Few-shot Learning. If you use this code, please cite our paper: Training a prototypical network Install dependencies This code has been tested on Ubuntu 16. Install the protonets package by running or . This will run training and place the results into . You can specify a different output directory by passing in the option , where is your desired output directory. If you are running on

a GPU you can pass in the option . This will save your model into by default.

Frequently asked questions

How many stars and forks are recorded?

jakesnell/prototypical-networks has 1,235 stars and 270 forks.

What is the repository rank?

jakesnell/prototypical-networks is ranked 11,031.

What language and category are recorded?

jakesnell/prototypical-networks has 1,235 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

jakesnell/prototypical-networks is compared with BR-IDL/PaddleViT, ranked 11,029 with 1,235 stars.

README

Prototypical Networks for Few-shot Learning

Code for the NIPS 2017 paper Prototypical Networks for Few-shot Learning.

If you use this code, please cite our paper:

@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}
 }

Training a prototypical network

Install dependencies

  • This code has been tested on Ubuntu 16.04 with Python 3.6 and PyTorch 0.4.
  • Install PyTorch and torchvision.
  • Install torchnet by running pip install git+https://github.com/pytorch/tnt.git@master.
  • Install the protonets package by running python setup.py install or python setup.py develop.

Set up the Omniglot dataset

  • Run sh download_omniglot.sh.

Train the model

  • Run python scripts/train/few_shot/run_train.py. This will run training and place the results into results.
    • You can specify a different output directory by passing in the option --log.exp_dir EXP_DIR, where EXP_DIR is your desired output directory.
    • If you are running on a GPU you can pass in the option --data.cuda.
  • Re-run in trainval mode python scripts/train/few_shot/run_trainval.py. This will save your model into results/trainval by default.

Evaluate

  • Run evaluation as: python scripts/predict/few_shot/run_eval.py --model.model_path results/trainval/best_model.pt.
Nearby in the ranking
Similar items