Skip to content

chcorbi/AttributeBasedTransferLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attribute Based Learning implementation

Authors : Charles Corbière, Bernardo Cardoso Cordeiro, Aymeric Zhuo, Luciano Di Palma

Synopsis

This package implement differents attribute-based learning approach:

  • Direct Attributed Prediction (iAP)
  • Indirect Attributed Prediction (IAP)

For this matter, we choose to try two learner :

  • SVM
  • Neural Network

Dataset included:

  • Animals with Attributed dataset
  • PubFig

For AwA dataset, how to use it

  1. Download Animal VGG19 features here and decompress it.

  2. Compute features into animal categories in ./feat folder

python createFeaturesVector.py pathToFeatures
  1. Concatenate features into a training dataset and a test dataset with their respectives labels in ./CreatedDataset
python concatenateSetFeatures.py
  1. Train and predict a model given a method and a classifier. Platt parameters, prediction and probabilities saved in ./DAP
python DirectAttributePrediction.py DAP SVM
  1. (bis) Train and predict using IAP with SVM. Prediction and probabilities saved in ./IAP
python indirectAttributePrediction.py IAP
  1. Generate and save confusion matrix plot and roc in ./results given a classifier
python DAP_eval.py SVM
  1. (bis) Generate and save confusion matrix plot and roc in ./results given a classifier
python IAP_eval.py

For Pubfig dataset, how to use it

  1. Download Animal VGG19 features here and decompress it on Datasets/PubFig.

  2. Compute attributes_names, celebrities and attributes as an array

python preparePubFigFiles.py

About

Attribute Based Transfer Learning implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published