GithubHelp home page GithubHelp logo

emilia-re / multi-task-curriculum-framework-for-open-set-ssl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yu1ut/multi-task-curriculum-framework-for-open-set-ssl

0.0 0.0 0.0 586 KB

Code for "Multi-Task Curriculum Framework for Open-Set Semi-Supervised Learning"

License: MIT License

Python 100.00%

multi-task-curriculum-framework-for-open-set-ssl's Introduction

Multi-Task Curriculum Framework for Open-Set SSL

This is the official PyTorch implementation of Multi-Task Curriculum Framework for Open-Set Semi-Supervised Learning.

architecture

Requirements

  • Python 3.7
  • PyTorch 1.1.0
  • torchvision 0.3.0
  • tensorboardX
  • progress
  • matplotlib
  • numpy
  • scikit-learn
  • scikit-image

Preparation

Download out-of-distributin datasets from Dropbox.

mkdir data
cd data
wget https://www.dropbox.com/s/7nj0sfunoqu9alu/OOD_data.zip
unzip OOD_data.zip
cd ..

Usage

Train baseline

Run

python run.py --gpu {GPU_ID} --n-labeled {#LABELED_SAMPLES} --data {OOD_DATASET} --method baseline

For example, train MixMatch with 250 labeled samples and TinyImageNet as OOD, please run:

python run.py --gpu 0 --n-labeled 250 --data TIN --method baseline

Trained model will be saved at runs_baseline.

Train proposed method

Run

python run.py --gpu {GPU_ID} --n-labeled {#LABELED_SAMPLES} --data {OOD_DATASET} --method proposed

For example, train proposed method with 250 labeled samples and TinyImageNet as OOD, please run:

python run.py --gpu 0 --n-labeled 250 --data TIN --method proposed

Trained model will be saved at runs_proposed.

For more details and parameters, please refer to --help option.

References

  • [1]: Qing Yu, Daiki Ikami, Go Irie and Kiyoharu Aizawa. "Multi-Task Curriculum Framework for Open-Set Semi-Supervised Learning", in ECCV, 2020.

multi-task-curriculum-framework-for-open-set-ssl's People

Contributors

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