Code Monkey home page Code Monkey logo

strongprotonet's Introduction

Prototypical Networks for Few-shot Learning

Updated implementation of ProtoNet. Using this code, you will get 80.0% acc on MiniImagenet 5-shot task with ResNet12. Because someone only achieved 72% acc, this repo will be very helpful to those guys. The key ingredient of achieving such high acc is using SGD+StepLR.

create the dataset

plz refer to CloserLookAtFewShotLearning

train the Baseline

python train.py --method_type baseline --name baseline

train the ProtoNet

python train.py --method_type protonet --name baseline --warmup output/baseline_baseline_ResNet12_5shot

test

python train.py --method_type protonet --name baseline --test

strongprotonet's People

Contributors

franklin-yao avatar

Stargazers

Mohamed El Hacen Habib avatar  avatar yunkai avatar  avatar Wenlong avatar Leegend老峻峻 avatar Khoi Nguyen avatar Guangyuan SHI avatar  avatar

Watchers

 avatar

Forkers

leegendlee

strongprotonet's Issues

5-shot accuracy 73%

I use the default parameters to train the baseline, then use the pre-trained model to initialize, and train protonet, the 1-shot and 5-shot accuracy is 53.6% and 73.0% respectively. The accuracy seems to be far off, comparing to the claimed 80%, What do I miss ?

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.