Code Monkey home page Code Monkey logo

a-met's Introduction

Detach and Unite: A Simple Meta-Transfer for Few-Shot Learning

This repo is for the paper 'Detach and Unite: A Simple Meta-Transfer for Few-Shot Learning'

Prerequisites

The following packages are required to run the scripts:

  • PyTorch 1.8
  • Python 3.7

Datasets

For Omniglot, the data split settings is proposed by [1,2]. For mini-ImageNet, the data split is proposed by [3].

[1] Vinyals O, Blundell C, Lillicrap T, et al. Matching networks for one shot learning[J]. Advances in neural information processing systems, 2016, 29.

[2] Lake B M, Salakhutdinov R, Tenenbaum J B. Human-level concept learning through probabilistic program induction[J]. Science, 2015, 350(6266): 1332-1338.

[3] Ravi S, Larochelle H. Optimization as a model for few-shot learning[C]//International conference on learning representations. 2017.

Code Structures

There are five parts in the code:

  • backbones: It contains the backbone network (Conv4 and ResNet-12) for the experiments.
  • configs: Training settings.
  • datasets: Dataloader and Samplers of different datasets.
  • models: Baseline network and model register.
  • utils: Help tools.

Training scripts

  • Pre-training

python met.py --config train.yaml --gpu 0 --seed 1 --mode train --mannr whole

  • Train MET

python met.py --config train.yaml --gpu 0 --seed 1 --mode train --mannr episode

  • Train A-MET

python amet.py --config train_amet.yaml --gpu 0 --seed 1 --mode train --mannr episode

Acknowledgment

Our project references the codes in the following repos.

a-met's People

Contributors

yaoyz96 avatar

Stargazers

Chao He avatar ZhuChao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.