Coder Social home page Coder Social logo

mlosr's Introduction

Deep-CNN based Multi-task Learning for Open-Set Recognition

This is official implimentation of the paper Deep-CNN based Multi-task Learning for Open-Set Recognition

Installation

  1. Install pytorch
  2. Install Matlab
  3. Clone this repository
git clone https://github.com/otkupjnoz/mlosr.git

Data Setup

  1. You can download the ood sets in mat format from here,

https://livejohnshopkins-my.sharepoint.com/:u:/g/personal/poza2_jh_edu/EeJ1RQQm425MsuFGfV5JO58BMU5Q9m2uzM_Nd3akC-MCLA?e=TXQtzR

  1. For open-set experiments convert your datasets in matfiles (or modify the code to create your own dataloader.)
  2. Make sure while saving in matlab you use '-v7.3'.
  3. Create train, test and validation and save it by name train_label.mat, train_data.mat, test_label.mat, test_data.mat, validation_data.mat, validation_label.mat etc.
  4. Save all the datasets in the dataset/ folder

Training

  1. set up your data as described above
  2. The code is running OOD experiments of the paper which uses pytorch dataloader
  3. make sure you have your dataset mat files in datasets/data_set_name/ make sure to add parameter.py file in master/parameters/data_set_name/ make sure to add create following folders :
    save_folder/models/data_set_name/mlosr
    save_folder/models/data_set_name/checkpoint
    save_folder/results/data_set_name/encoded_images
  4. Use following command to run the code (make changes in the parameter file to run the code for different experiment)
    sh run_train.sh

Testing

  1. Use following command
sh run_test.sh
  1. open Matlab
  2. run getResultsMLOSR.m file which will calculate and display the F-measure

mlosr's People

Contributors

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