covid-chestxray-dataset icon indicating copy to clipboard operation
covid-chestxray-dataset copied to clipboard

ids in metadata.csv do not correspond to filenames ?

Open amgsharma opened this issue 4 years ago • 7 comments

How does one link the metadata file to the image files? Also there seem to be less metadata than there are images?

amgsharma avatar Mar 20 '20 16:03 amgsharma

@amgsharma Use the filename column. You can join the path to the images directory with the filename from each row to obtain the path to each image.

bganglia avatar Mar 20 '20 17:03 bganglia

You can use the dataloader here: https://github.com/mlmed/torchxrayvision just put the paths to the images and csv file.

ieee8023 avatar Mar 20 '20 17:03 ieee8023

You can use the dataloader here: https://github.com/mlmed/torchxrayvision just put the paths to the images and csv file.

can you please elaborate as in how to use the data loader?

ankamdeepika avatar Jan 10 '21 15:01 ankamdeepika

can you please elaborate as in how to use the data loader?

You can use this as an example: https://github.com/ieee8023/covid-chestxray-dataset/blob/master/scripts/test_dataloader.py

ieee8023 avatar Jan 10 '21 15:01 ieee8023

can you please elaborate as in how to use the data loader?

You can use this as an example: https://github.com/ieee8023/covid-chestxray-dataset/blob/master/scripts/test_dataloader.py

its throwing this error ParserError: Error tokenizing data. C error: Expected 1 fields in line 71, saw 2

ankamdeepika avatar Jan 10 '21 15:01 ankamdeepika

I just created an example here: https://colab.research.google.com/drive/1A-gIZ6Xp-eh2b4CGS6BHH7-OgZtyjeP2

ieee8023 avatar Jan 10 '21 16:01 ieee8023

@ieee8023 Thank you so much

ankamdeepika avatar Jan 10 '21 16:01 ankamdeepika