peal.data.custom_datasets.SkinConDataset¶
- class peal.data.custom_datasets.SkinConDataset[source]¶
Bases:
Image2MixedDatasetFitzpatrick17k skin lesions with the skin tone as confounder.
On first use the
spycoder/fitzpatrickmetadata is loaded, the SkinCon annotation csv is downloaded, and every image whosemd5hashappears in the annotations is fetched from its source url (with retries) and stored asimgs/<md5hash>.png.data.csvgets the columnsimg, label, confounder, the label being malignant vs. not (fromthree_partition_label) and the confounder a dark skin type (Fitzpatrick scale 4 or higher). Images whose url fails are skipped.- Parameters:
config (
DataConfig) – Usesdataset_path.**kwargs – Forwarded to
Image2MixedDataset.
Methods
Attributes