Giter Site home page Giter Site logo

bisonai / 1-shot-classification-with-reptile Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 1.0 2.16 MB

Fine Tuning for Image Recognition with a model trained with Reptile

License: MIT License

Python 3.67% Jupyter Notebook 95.75% Shell 0.58%
deep-learning reptile fine-tuning classification 1-shot-classification meta-learning omniglot

1-shot-classification-with-reptile's Introduction

1-shot classification with Reptile

Unofficial implementation of fine-tuning phase for meta-learning algorithm Reptile applied on image classification problem with 1-shot 3-way settings.

This repository contains a 1-shot 3-way Reptile model pre-trained on Omniglot dataset. We provide simple demos (Omniglot demo, MNIST demo and OpenAI demo) on three different datasets (Omniglot, MNIST and OpenAI).

We characterized the performance of our pre-trained model by performing an evaluation on both Omniglot and MNIST datasets with 1-shot 3-way settings. Cross entropy loss was used as an evaluation metric. The results can be found in the table below (under construction).

Dataset Learning rate Average loss train Average loss test
MNIST 0.01 1.48e-04 1.43
MNIST 0.001 0.0154 0.685
Omniglot 0.01 3.03e-04 0.252
Omniglot 0.001 0.0191 0.294

Requirements

  • Python 3.6+
  • Tensorflow
  • skimage
  • matplotlib
pip install -r requirements.txt

Demos

In the following demos, we randomly sample three classes and take one image from each of them. Then, we fine-tune our pre-trained model using three previously sampled images and finally we test performance by classifying another image belonging to one of three sampled classes. We provide Jupyter notebooks version of our demos. The learning rate and the number of epochs for the fine-tuning can be changed within Jupyter notebooks. We used three following datasets:

License

MIT License

1-shot-classification-with-reptile's People

Contributors

adelshb avatar martinkersner avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

zeta1999

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.