Code Monkey home page Code Monkey logo

deep-transfer-meta-learning's Introduction

Cross-Domain Few-Shot Learning

Enviroment

Python 3.5.5

Pytorch 0.4.1

h5py 2.9.0

Model

ResNet10: https://drive.google.com/file/d/1Nk60qqkYThXtE4phBtg2TGfxbe91Rm9p/view?usp=sharing,

ResNet12:https://drive.google.com/file/d/1VbpSb94HnATihRkPePx-zPOId_1CJpoT/view?usp=sharing,

ResNet18:https://drive.google.com/file/d/1lA6gt47fm4kUCGU2QoE5PeQRnLweHpOM/view?usp=sharing

Steps

  1. Change configuration file ./configs.py to reflect the correct paths to each dataset. Please see the existing example paths for information on which subfolders these paths should point to.

  2. Train base models on miniImageNet

    Standard supervised learning on miniImageNet

        python ./train.py --dataset miniImageNet --model ResNet10  --method baseline --train_aug

    Train meta-learning method (protonet) on miniImageNet

        python ./train.py --dataset miniImageNet --model ResNet10  --method protonet --n_shot 5 --train_aug
  3. Test

    Finetune

        python finetune.py --model ResNet10 --method baseline  --train_aug --n_shot 5 

References

Framework: https://github.com/IBM/cdfsl-benchmark
Backbone: https://github.com/wyharveychen/CloserLookFewShot

deep-transfer-meta-learning's People

Contributors

darkria8 avatar

Stargazers

 avatar

Watchers

 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.