# WeaklyAttributesRecovery
Official Code Implementation of the paper Weakly Supervised Recovery of Semantic Attributes


<p align="center">
  <img  src="https://raw.githubusercontent.com/AmeenAli/WeaklySupervisedRecovery/master/images/model.png?token=ABU4KO2WHFKRVARC4KXY7C3AYCP2G">
</p>
<br>
<br>
To make it easy to reproduce our results, we provide the groundtruth attributes for each dataset, under the directory "groundtruth_attributes", All you have to do is to adjust manually the requested attribute file in "cross_f1.py" file with the intended dataset.

<br>
<br>
* You will have to manualy adjust the intended dataset path in utils/dataloader.py.
<br>

Running our model is simple and is done in the following way : <br>

  <code> python main.py --dataset DATASET --bits BITS --dimension DIMENSION </code>
  <br>
  DATASET = [ayahoo , apascal , cub , awa2].
