Coder Social home page Coder Social logo

fewshot-cvpr's Introduction

Few-Shot Image Recognition by Predicting Parameters from Activations

Torch implementation for few-shot learning by predicting parameters from activations:

Few-Shot Image Recognition by Predicting Parameters from Activations
Siyuan Qiao, Chenxi Liu, Wei Shen, Alan Yuille
In Conference on Computer Vision and Pattern Recognition (CVPR), 2018 Spotlight

@inproceedings{Act2Param,
   title = {Few-Shot Image Recognition by Predicting Parameters from Activations},
   author = {Siyuan Qiao and Chenxi Liu and Wei Shen and Alan L. Yuille},
   booktitle = {CVPR},
   year = {2018}
}

Introduction

Our method is inspired by the close relationship between the activations before the final fully-connected layer which classifies images and the parameters of that fully-connected layer. We plot the t-SNE results on the average activations of each category before the fully-connected layer of a 50-layer ResNet pre-trained on a subset of ImageNet (left) and the parameters of each category in the last fully-connected layer (right). Each point represents a category. Highlighted points with the same color and shape correspond to the same category. Circles are mammals, triangles are birds, diamonds are buses, and squares are home appliances. Comparing them and we observe a high similarity in both the local and the global structures. More importantly, the semantic structures are also preserved in both activations and parameters, indicating a promising generalizability to unseen categories. These results suggest the existence of a category-agnostic mapping from the activations to the parameters given a good feature extractor. In our work, we parameterize this mapping with a feedforward network that is learned by back-propagation.

Implementation

We use Torch (and PyTorch for other datasets) to implement our idea. This repository contains the codes we use to get the performances reported in the paper. The repository will be organized according to the dataset for easier presentation. The codes for MiniImageNet dataset are available now (we re-ran the codes on our end several times to make sure the results are reproducible). The codes for the full ImageNet will also be put here later.

fewshot-cvpr's People

Contributors

joe-siyuan-qiao 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.