prepare_all_data¶
prepare_helen_dset¶
prepare_lfpw_dset¶
prepare_cat_dset¶
_prepare_ibug_dset¶
-
_prepare_ibug_dset
(zip_file, dset_name, out_dir, remove_zip=False, normalize_pca_rot=True)[source]¶ Prepares an ibug dataset (from a given zipfile)
Parameters: - zip_file (str) – the zip archive containing the data
- dset_name (str) – the dataset’s name
- out_dir (str) – the output directory
- remove_zip (bool, optional) – whether or not to remove the ZIP file after finishing the preparation
- normalize_pca_rot (bool, optional) – whether or not to normalize the data’s rotation during PCA
See also
_prepare_cats¶
_process_single_cat_file¶
_make_pca¶
-
_make_pca
(data_dir, out_file, normalize_rot=False, rotation_idxs=())[source]¶ Creates a PCA from data in a given directory
Parameters: - data_dir (str) – directory containing the image and landmark files
- out_file (str) – file the pca will be saved to
- normalize_rot (bool, optional) – whether or not to normalize the data’s rotation
- rotation_idxs (tuple, optional) – indices for rotation normalization, msut be specified if
normalize_rot=True