After initialising a conda environment with the requirements in the environment.yml file, then:
git clone https://github.com/amalyali/xclass.git
cd xclass
python setup.py installcd xclass
python build_labelled_dataset.py -v 'v0001' -cfg '../cfg/train.yml'