Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

Prototypical Networks

AI GitHub ReposAI Models & LLMsOpen source · Linux, macOS, Windows

This repository contains the code for the NeurIPS 2017 paper "Prototypical Networks for Few-shot Learning." It provides an implementation of a novel approach to few-shot learning, enabling models to learn from a small number of examples.

View Repository
Share
View Repository
Share

Prototypical Networks for Few-shot Learning is an AI model implementation based on the NeurIPS 2017 paper of the same name. This project offers the codebase that underpins the research presented in the paper, focusing on a specific methodology for few-shot learning. Few-shot learning is a subfield of machine learning that deals with problems where only a few labeled examples are available for training.

Read More

The core idea behind Prototypical Networks is to learn a metric space in which classification can be performed by computing distances to prototype representations of each class. For each class, a single prototype is computed as the mean of the embedded support examples. During testing, new examples are classified based on their distance to these class prototypes. This approach is particularly effective when dealing with limited training data, a common challenge in many real-world applications.

The repository provides the necessary scripts and code to train and evaluate prototypical networks. It includes instructions for setting up the environment, installing dependencies such as PyTorch and torchnet, and preparing datasets like Omniglot. Users can train the model by running specific Python scripts and can specify output directories for results. Evaluation is also facilitated through dedicated scripts, allowing users to test the model's performance on unseen data.

This project is valuable for researchers and developers interested in few-shot learning, metric learning, and deep learning. It serves as a practical resource for understanding and implementing prototypical networks, offering a foundation for further experimentation and development in low-data learning scenarios. The code is made available under an MIT license, promoting open access and collaboration within the AI community.

  • CategoryAI Models & LLMs
  • Pricing ModelOpen source
  • DeploymentSelf-hosted
  • PlatformsLinux, macOS, Windows

  • Implementation of Prototypical Networks for few-shot learning

  • Code based on the NeurIPS 2017 paper "Prototypical Networks for Few-shot Learning"

  • Supports training and evaluation of few-shot learning models

  • Includes scripts for dataset setup (e.g., Omniglot)

  • Utilizes PyTorch for model implementation

  • Provides instructions for dependency installation

  • Allows specification of custom output directories for training results

  • Facilitates model evaluation with provided scripts

  • Learns a metric space for classification

  • Computes class prototypes as means of embedded support examples

  • Classifies new examples based on distance to prototypes

  1. Install dependencies: Set up PyTorch, torchvision, and torchnet.

  2. Install package: Run 'python setup.py install' or 'python setup.py develop'.

  3. Set up dataset: Download the Omniglot dataset using the provided script.

  4. Train model: Execute 'python scripts/train/few_shot/run_train.py', optionally specifying log directory and GPU usage.

  5. Re-run in trainval mode: Use 'python scripts/train/few_shot/run_trainval.py' to save the model.

  6. Evaluate model: Run 'python scripts/predict/few_shot/run_eval.py' with the model path.

  • Few-shot image classification
  • Low-data learning scenarios
  • Metric learning research
  • Rapid prototyping
  • Robotics and AI agents
  • Medical image analysis

From GitHub

Prototypical Networks Reviews

Loading...

Popular AI Tools Like Prototypical Networks

LearningToCompare_FSL

AI GitHub Repos

This repository provides PyTorch code for the CVPR 2018 paper 'Learning to Compare: Relation Network for Few-Shot Learning'. It focuses on the Few-Shot Learning aspect, offering…

AI Models & LLMs
View Tool

AI GitHub Repos

This repository provides PyTorch code for the CVPR 2018 paper 'Learning to Compare: Relation Network for Few-Shot Learning'. It focuses on the Few-Shot Learning aspect, offering…

AI Models & LLMs
See the Top 250 AI GitHub Repos

YOLOR

AI GitHub Repos

YOLOR is an implementation of the paper 'You Only Learn One Representation: Unified Network for Multiple Tasks'. It aims to provide a unified network for handling multiple tasks…

Computer Vision Tools
View Tool

AI GitHub Repos

Implementation of the paper 'You Only Learn One Representation: Unified Network for Multiple Tasks'. It aims to provide a unified network for handling multiple tasks…YOLOR is an implementation of the paper 'You Only Learn One Representation: Unified Network for Multiple Tasks'. It aims to provide a unified network for handling multiple tasks…

Computer Vision Tools
See the Top 250 AI GitHub Repos

🤗 Transformers is a model-definition framework designed for state-of-the-art machine learning models across text, vision, audio, and multimodal domains, facilitating both…

Machine Learning Platforms
View Tool

🤗 Transformers is a model-definition framework designed for state-of-the-art machine learning models across text, vision, audio, and multimodal domains, facilitating both…

FeaturedMachine Learning Platforms
See the Top 250 AI GitHub Repos

RepVGG

AI GitHub Repos

RepVGG is a powerful and simple ConvNet architecture that achieves high accuracy on ImageNet. It utilizes a VGG-style design with re-parameterization techniques, allowing for…

AI Models & LLMs
View Tool

AI GitHub Repos

Powerful and simple ConvNet architecture that achieves high accuracy on ImageNet. It utilizes a VGG-style design with re-parameterization techniques, allowing for…RepVGG is a powerful and simple ConvNet architecture that achieves high accuracy on ImageNet. It utilizes a VGG-style design with re-parameterization techniques, allowing for…

AI Models & LLMs
See the Top 250 AI GitHub Repos

Neuroph

AI GitHub Repos

Neuroph is an open-source neural network framework written in Java. It simplifies the development and implementation of artificial neural networks for various applications. The…

Machine Learning Platforms
View Tool

AI GitHub Repos

Open-source neural network framework written in Java. It simplifies the development and implementation of artificial neural networks for various applications. The…Neuroph is an open-source neural network framework written in Java. It simplifies the development and implementation of artificial neural networks for various applications. The…

Machine Learning Platforms
See the Top 250 AI GitHub Repos

MiniGPT-4 & MiniGPT-v2

AI GitHub Repos

Open-sourced code for MiniGPT-4 and MiniGPT-v2, advanced large language models enhancing vision-language understanding. These models enable multi-task learning for vision-language…

AI Models & LLMs
View Tool

AI GitHub Repos

Open-sourced code for MiniGPT-4 and MiniGPT-v2, advanced large language models enhancing vision-language understanding. These models enable multi-task learning for vision-language…

AI Models & LLMs
See the Top 250 AI GitHub Repos

Keras

AI GitHub Repos

Keras is an open-source deep learning library designed for humans. It simplifies the process of building neural networks and allows developers to contribute to its development on…

Machine Learning Platforms
View Tool

AI GitHub Repos

Open-source deep learning library designed for humans. It simplifies the process of building neural networks and allows developers to contribute to its development on…Keras is an open-source deep learning library designed for humans. It simplifies the process of building neural networks and allows developers to contribute to its development on…

FeaturedMachine Learning Platforms
See the Top 250 AI GitHub Repos

TensorFlow

AI GitHub Repos

TensorFlow is an open-source machine learning framework designed for everyone. It provides a comprehensive ecosystem for building and deploying machine learning models, making it…

Machine Learning Platforms
View Tool

AI GitHub Repos

Open-source machine learning framework designed for everyone. It provides a comprehensive ecosystem for building and deploying machine learning models, making it…TensorFlow is an open-source machine learning framework designed for everyone. It provides a comprehensive ecosystem for building and deploying machine learning models, making it…

FeaturedMachine Learning Platforms
See the Top 250 AI GitHub Repos
1 of 8