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

LearningToCompare_FSL

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 implementations for training and testing models on datasets like Omniglot and mini-Imagenet.

View Repository
Share
View Repository
Share

The LearningToCompare_FSL repository hosts the PyTorch implementation for the "Learning to Compare: Relation Network for Few-Shot Learning" paper, presented at CVPR 2018. This project specifically addresses the Few-Shot Learning (FSL) component of the research, enabling users to replicate and experiment with the Relation Network model.

Read More

The codebase is designed to facilitate training and evaluation on popular few-shot learning benchmarks. It includes scripts for both the Omniglot and mini-Imagenet datasets. For Omniglot experiments, pre-resized images are provided directly within the repository. For mini-Imagenet, users are instructed to download the dataset and preprocess it using the provided `proc_image.py` script, following a methodology similar to that used in the MAML (Model-Agnostic Meta-Learning) framework.

The repository offers clear command-line instructions for training models with various configurations, such as different numbers of ways (classes) and shots (examples per class) for both Omniglot and mini-Imagenet. For instance, users can train for Omniglot 5-way 1-shot or 5-way 5-shot, and similarly for mini-Imagenet. The training scripts allow for adjustments to the batch size parameter, which can be modified based on available GPU memory. The repository also notes that it currently loads pre-trained models, with instructions on how to delete them for users wishing to train from scratch.

Testing procedures are also outlined, with example commands for evaluating the trained models on specific few-shot learning tasks. The project is built using Python 2.7 and PyTorch 0.3. For those interested in the Zero-Shot Learning part of the original paper, a separate link to the relevant repository is provided. The project is licensed under the MIT license, promoting open access and modification.

This resource is valuable for researchers and practitioners in the field of meta-learning and few-shot learning, providing a direct implementation of a foundational paper in relation-based meta-learning approaches. It serves as a practical tool for understanding and advancing few-shot learning techniques.

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

  • PyTorch implementation of Relation Network for Few-Shot Learning

  • Code for CVPR 2018 paper 'Learning to Compare'

  • Supports Omniglot dataset experiments

  • Supports mini-Imagenet dataset experiments

  • Includes scripts for training few-shot learning models

  • Includes scripts for testing few-shot learning models

  • Preprocessed Omniglot images provided

  • Data preprocessing script for mini-Imagenet

  • Configurable training parameters (ways, shots, batch size)

  • Option to train from scratch or use pre-trained models

  • MIT License

  1. Set up environment: Install Python 2.7 and PyTorch 0.3

  2. Prepare data: Download mini-Imagenet and run `proc_image.py` if needed

  3. Train model: Execute training scripts (e.g., `omniglot_train_one_shot.py`) with desired parameters

  4. Test model: Run testing scripts (e.g., `omniglot_test_one_shot.py`) to evaluate performance

  5. Adapt parameters: Adjust batch size (`-b`) based on GPU memory

  6. Explore Zero-Shot Learning: Visit the linked repository for ZSL implementation

  • Few-Shot Image Classification
  • Meta-Learning Research
  • Model Replication
  • Few-Shot Learning Benchmarking
  • Transfer Learning Exploration

From GitHub

A feature of GitHub AI Developer Platform.

LearningToCompare_FSL Reviews

Loading...

Popular AI Tools Like LearningToCompare_FSL

Prototypical Networks

AI GitHub Repos

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,…

AI Models & LLMs
View Tool

AI GitHub Repos

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,…

AI Models & LLMs
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

UNITER

AI GitHub Repos

UNITER is a research code repository for the ECCV 2020 paper 'UNITER: UNiversal Image-TExt Representation Learning'. It provides code for finetuning and inference across various…

AI Models & LLMs
View Tool

AI GitHub Repos

Research code repository for the ECCV 2020 paper 'UNITER: UNiversal Image-TExt Representation Learning'. It provides code for finetuning and inference across various…UNITER is a research code repository for the ECCV 2020 paper 'UNITER: UNiversal Image-TExt Representation Learning'. It provides code for finetuning and inference across various…

AI Models & LLMs
See the Top 250 AI GitHub Repos

MPNet

AI GitHub Repos

MPNet is a novel pre-training method for language understanding tasks, improving upon BERT and XLNet. It offers a unified implementation for various pre-training models and…

AI Models & LLMs
View Tool

AI GitHub Repos

Novel pre-training method for language understanding tasks, improving upon BERT and XLNet. It offers a unified implementation for various pre-training models and…MPNet is a novel pre-training method for language understanding tasks, improving upon BERT and XLNet. It offers a unified implementation for various pre-training models and…

AI Models & LLMs
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

ConvMixer

AI GitHub Repos

This repository provides an implementation of ConvMixer, a convolutional neural network architecture for image recognition tasks. It is based on the paper "Patches Are All You…

AI Models & LLMs
View Tool

AI GitHub Repos

This repository provides an implementation of ConvMixer, a convolutional neural network architecture for image recognition tasks. It is based on the paper "Patches Are All You…

AI Models & LLMs
See the Top 250 AI GitHub Repos

LLaVA

AI GitHub Repos

LLaVA is a visual instruction tuning model that combines large language and vision capabilities. It aims to achieve GPT-4V level performance, enabling multimodal understanding and…

AI Models & LLMs
View Tool

AI GitHub Repos

Visual instruction tuning model that combines large language and vision capabilities. It aims to achieve GPT-4V level performance, enabling multimodal understanding and…LLaVA is a visual instruction tuning model that combines large language and vision capabilities. It aims to achieve GPT-4V level performance, enabling multimodal understanding and…

AI Models & LLMs
See the Top 250 AI GitHub Repos

Vision Transformer

AI GitHub Repos

The Vision Transformer (ViT) repository provides models and code for image recognition tasks. It includes implementations of the Vision Transformer and MLP-Mixer architectures,…

Computer Vision Tools
View Tool

AI GitHub Repos

The Vision Transformer (ViT) repository provides models and code for image recognition tasks. It includes implementations of the Vision Transformer and MLP-Mixer architectures,…

Computer Vision Tools
See the Top 250 AI GitHub Repos
1 of 8