ieee8023 / covid-chestxray-dataset

We are building an open database of COVID-19 cases with chest X-ray or CT images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Covid dataset label help

aniketmaurya opened this issue · comments

In Covid dataloader, d_covid19[idx]['lab'] is an array of length 25.
Is covid label at location 3, i.e. d_covid19[idx]['lab'][3]?

The lab array is aligned with dataset.pathologies which varies between datasets.

Take a look at: https://github.com/mlmed/torchxrayvision/blob/master/scripts/xray_datasets.ipynb
At the bottom xrv.datasets.relabel_dataset is used to align the pathologies and labels across all the datasets.

so after doing this my lab array will only contain label for covid-19 positive or negative, where positive means 1?

pathalogies = ['COVID-19']
relabel_dataset(pathalogies, d_covid19)

Yes exactly.

I urge you to read over the other tasks discussed in this paper which may be more relevant to helping physicians manage patients. Detecting COVID-19 is not that useful. https://arxiv.org/abs/2006.11988

sure! thanks a lot for the quick response