GithubHelp home page GithubHelp logo

mrusci / snatcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minkij/snatcher

0.0 0.0 0.0 53 KB

[CVPR 2021] Few-shot Open-set Recognition by Transformation Consistency

License: MIT License

Python 100.00%

snatcher's Introduction

Few-shot Open-set Recognition by Transformation Consistency [CVPR 2021]

Link to paper: arXiv

Description

This code executes SnaTCHer-F on miniImageNet and tieredImageNet

Prerequisites

  • Ubuntu 18.04
  • Python 3.7
  • PyTorch 1.6
  • CUDA 10.1
  • Anaconda 4.9.2
  • CUDNN v7.6.3

Usage

  1. Prepare datasets and checkpoints from link
  2. Move datasets under './data' (see main.py)
  3. Move checkpoints under './checkpoints' with prefix (mini- or tiered-, see main.py)
  4. Run main.py

Running example

  • miniImageNet 5-way 1-shot python main.py --dataset MiniImageNet --shot 1

  • tieredImageNet 5-way 5-shot python main.py --dataset TieredImageNet --shot 5

Results

Acc (%) Probability (%) Distance (%) SnaTCHer (%)
Mini1shot 66.15 59.37 68.74 69.39
Mini5shot 81.87 62.71 76.01 77.36
Tiered1shot 70.41 63.88 69.80 74.38
Tiered5shot 84.79 73.79 77.25 81.78

SnaTCHer details

See model/trainer/fsl_trainer_SnatCHerF.py

Acknowledgement

The code is based on github.com/Sha-Lab/FEAT

snatcher's People

Contributors

minkij 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.