Update Tuberculosis_Dataset.py
Browse files- Tuberculosis_Dataset.py +2 -2
Tuberculosis_Dataset.py
CHANGED
|
@@ -76,11 +76,11 @@ class TuberculosisDataset(GeneratorBasedBuilder):
|
|
| 76 |
merged_df['age'] = merged_df['age'].astype('int8')
|
| 77 |
|
| 78 |
# Extract and prepare image file paths
|
| 79 |
-
image_file_paths = self._prepare_image_file_paths(images_zip
|
| 80 |
|
| 81 |
# Yield examples
|
| 82 |
for idx, row in merged_df.iterrows():
|
| 83 |
-
image_file = image_file_paths.get(row["pmcid"])
|
| 84 |
|
| 85 |
yield idx, {
|
| 86 |
"case_id": row["case_id"],
|
|
|
|
| 76 |
merged_df['age'] = merged_df['age'].astype('int8')
|
| 77 |
|
| 78 |
# Extract and prepare image file paths
|
| 79 |
+
image_file_paths = self._prepare_image_file_paths(images_zip)
|
| 80 |
|
| 81 |
# Yield examples
|
| 82 |
for idx, row in merged_df.iterrows():
|
| 83 |
+
image_file = image_file_paths.get(row["pmcid"],null)
|
| 84 |
|
| 85 |
yield idx, {
|
| 86 |
"case_id": row["case_id"],
|