Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Add label file and import read_csv from pandas
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -4,6 +4,7 @@ import datasets
|
|
4 |
from datasets.tasks import ImageClassification
|
5 |
|
6 |
from requests import get
|
|
|
7 |
|
8 |
logger = datasets.logging.get_logger(__name__)
|
9 |
|
@@ -49,6 +50,7 @@ _IMAGE_URLS = [
|
|
49 |
_URLS = {
|
50 |
'train_val_list': 'https://huggingface.co/datasets/alkzar90/NIH-Chest-X-ray-dataset/raw/main/dummy/0.0.0/train_val_list.txt',
|
51 |
'test_list': 'https://huggingface.co/datasets/alkzar90/NIH-Chest-X-ray-dataset/raw/main/dummy/0.0.0/test_list.txt',
|
|
|
52 |
'image_urls': _IMAGE_URLS
|
53 |
}
|
54 |
|
|
|
4 |
from datasets.tasks import ImageClassification
|
5 |
|
6 |
from requests import get
|
7 |
+
from pandas import read_csv
|
8 |
|
9 |
logger = datasets.logging.get_logger(__name__)
|
10 |
|
|
|
50 |
_URLS = {
|
51 |
'train_val_list': 'https://huggingface.co/datasets/alkzar90/NIH-Chest-X-ray-dataset/raw/main/dummy/0.0.0/train_val_list.txt',
|
52 |
'test_list': 'https://huggingface.co/datasets/alkzar90/NIH-Chest-X-ray-dataset/raw/main/dummy/0.0.0/test_list.txt',
|
53 |
+
'labels': 'https://huggingface.co/datasets/alkzar90/NIH-Chest-X-ray-dataset/raw/main/dummy/0.0.0/Data_Entry_2017_v2020.csv',
|
54 |
'image_urls': _IMAGE_URLS
|
55 |
}
|
56 |
|