Skip to content

Code for Few-Shot Attribute and Multi-Label Classification Using Deep Neural Network implemented in pytorch

Notifications You must be signed in to change notification settings

pratikm141/Few-Shot-Attribute-and-Multi-Label-Classification-Using-Deep-Neural-Network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Few-Shot-Attribute-and-Multi-Label-Classification-Using-Deep-Neural-Network

Code for Few-Shot Attribute and Multi-Label Classification Using Deep Neural Network implemented in pytorch

Installation

  • Install PyTorch by selecting your environment on the website and running the appropriate command.
  • Clone this repository.
    • Note: We currently only support Python 3+.
  • Install unzip and unrar
  • Then download the dataset by following the instructions below.
  • Follow the run instructions below for training and testing the model.

Datasets

Experiments

  • Run the <...>_train_test.py file to get the results for our proposed Multi-Label model
  • Run the <...>_train_test_baseline.py file to get the results for the baseline
  • Provide additional choices:
    • --gpu _ : gpu id on which the program will be run
    • --epochs _ : Number of iterations(default 20) for Phase 1 (train on first half of labels and test on remaining) and Phase 2 (train on second half of labels and test on remaining). Each iteration has 1000 episodes
    • --shot _ : N-shot - Number of support examples per label (default 20).
  • Average Test F1 Score will be displayed after the Phase 1 and Phase 2 tests are completed

About

Code for Few-Shot Attribute and Multi-Label Classification Using Deep Neural Network implemented in pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published