peal.data.custom_datasets.CelebAHQDataset¶
- class peal.data.custom_datasets.CelebAHQDataset[source]¶
Bases:
Image2MixedDatasetCelebA-HQ with the CelebAMask-HQ attribute annotations.
The annotation file is not a csv: it starts with a sample count and is aligned with variable whitespace. It is therefore pre-normalized by
datastrand handed toparse_csvasraw_data, overwriting theattributes,dataandkeysthatImage2MixedDataset.__init__has just built.- Parameters:
config (
DataConfig) – Usesdataset_path,label_rel_pathanddelimiter.mode (
str) – Split:"train","val","test"or"all".**kwargs – Forwarded to
Image2MixedDataset.data_diroverrides the annotation path, in which case the file is read byparse_csvitself instead of being pre-normalized.
Methods
Attributes