NKI-AI / ahcore

Ahcore is the AI for Oncology core computational pathology toolkit
Apache License 2.0
15 stars 1 forks source link

Image labels are not included in `datasets_from_data_description` #35

Closed BPdeRooij closed 9 months ago

BPdeRooij commented 9 months ago

Describe the bug Currently labels from the Image class are written in the database but not read from the record when creating a dataset.

To Reproduce Create a database with ImageLabels populating labels in Image, create datasets with the datasets_from_data_description. The ImageLabels are not included as labels in TiledWsiDataset.

Expected behavior For each image in the record, the ImageLabels should be included in the TiledWsiDataset. They should extend the labels from the patient (if they exist).

Environment dlup version: 0.3.33 How installed: Python version: 3.10 Operating System: MacOS Ventura 13.6

Additional context None