Pedestrian-Attribute-Recognition



How to set-up

  1. Clone the repo
git clone git@github.com:davidygp/Pedestrian-Attribute-Recognition.git  
cd Pedestrian-Attribute-Recognition/working_code  
  1. Install the required packages
pip install -r requirements.txt  
  1. Get the raw data
  1. Run the .py script to process the PETA images and generate the new PETA.mat file in the "./data" folder
    (Note: Ordering of the image names differs between Windows & Mac, to get the exact same IDs it should be run on Windows)
python ./process_updated_labels_n_images_v3.1.py  
  1. Run the .py script to generate the dataset.pkl file in the "./data" folder
python ./format_peta.py  
  1. Copy the "./data" folder to the main repo folder
mv ./data ../  
  1. Run the training as required
cd ../  
python ./train.py  

To run with different configurations place the parameters behind train.py

(see config.py for examples)

python ./train.py --batchsize 128 --train_epoch 100



PETA dataset can be obtained from: http://mmlab.ie.cuhk.edu.hk/projects/PETA.html



Acknowledgements

Codes are based on the repositories. (Thank you for your released code!):