Giter Site home page Giter Site logo

atl-net's Introduction

ATL-Net

Learning Task-aware Local Representations for Few-shot Learning, IJCAI 2020

Prerequisites

  • Python 3
  • PyTorch 1.4.0

DataSets

Please refer to DN4.

Train & Test

DataSet is miniImagenet, CUB, StanfordCar or StanfordDog.

  • Train:
python -u trainer.py -c ./config/${DataSet}_Conv64F_5way_1shot.json -d 0
python -u trainer.py -c ./config/${DataSet}_Conv64F_5way_5shot.json -d 0
  • Test:
python -u test.py -r ./results/${DataSet}_Conv64F_5way_1shot -d 0
python -u test.py -r ./results/${DataSet}_Conv64F_5way_5shot -d 0

Note

Sorry about the mistakes in the Eq.(4) and the Eq.(7), the Eq.(4) is a step function, and Eq.(7) is the approximation of the Eq.(4) with the adaptive threshold, both of them repeatedly introduce the process of the Eq.(5), the paper after correction is here. avatar

Citation

If you use this code for your research, please cite our paper.

@inproceedings{ijcai2020-100,
  title     = {Learning Task-aware Local Representations for Few-shot Learning},
  author    = {Dong, Chuanqi and Li, Wenbin and Huo, Jing and Gu, Zheng and Gao, Yang},
  booktitle = {Proceedings of the Twenty-Ninth International Joint Conference on
               Artificial Intelligence, {IJCAI-20}},
  publisher = {International Joint Conferences on Artificial Intelligence Organization},             
  editor    = {Christian Bessiere}	
  pages     = {716--722},
  year      = {2020},
  month     = {7},
  note      = {Main track}
  doi       = {10.24963/ijcai.2020/100},
  url       = {https://doi.org/10.24963/ijcai.2020/100},
}

Reference

Our code is based on DN4.

atl-net's People

Contributors

legendogsan avatar

Watchers

James Cloos 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.