lindawangg / COVID-Net

COVID-Net Open Source Initiative
Other
1.15k stars 477 forks source link

Error when running create_ricord_dataset.ipynb #164

Closed codaibk closed 3 years ago

codaibk commented 3 years ago

Hello, When i run create_ricord_dataset.ipynb, it gets this error. AttributeError: Unable to convert the pixel data as the following required elements are missing from the dataset: PixelData. Do you know how to fix it? Thanks.

haydengunraj commented 3 years ago

Hi @codaibk ,

This is an odd error which I haven't seen before. For context, the RICORD dataset is provided in DICOM format, which is essentially a structured medical image with a detailed header and a number of data fields. PixelData is the field containing the actual image data, and so it seems that this error is saying that one of the images has no image data.

Would you be able to print out the particular filename for which this error occurs? Something like this should do the trick:

try:
    # the code where the error occurs
except AttributeError:
    print(<filename variable>)

If you could provide the full traceback rather than just the error, that would also be helpful.

haydengunraj commented 3 years ago

Closing due to inactivity