peal.data.custom_datasets.FollicleDataset¶
- class peal.data.custom_datasets.FollicleDataset[source]¶
Bases:
Image2MixedDatasetOvarian follicle images with expert annotations, taken from Hugging Face.
On first use the
janphhe/follicles_true_featuresdataset (metadata, images, cut-outs and masks) is downloaded - which requires a Hugging Face login - and written to<dataset_path>asdata.csvplus the directoriesimgs/,imgs_cut/andmasks/.- Parameters:
config (
DataConfig) – Usesdataset_path.**kwargs – Forwarded to
Image2MixedDataset.
Notes
The export loop builds every output filename from
attribute_values[attributes.index("imgs")], i.e. from a whole metadata column rather than from the current row, so in practice the dataset directory is expected to exist already.Methods
Attributes