Commit
·
73eaf1d
1
Parent(s):
911f30f
Try print debug
Browse files- CXR_Reports.py +5 -0
CXR_Reports.py
CHANGED
|
@@ -44,7 +44,12 @@ class ReportsCXR(datasets.GeneratorBasedBuilder):
|
|
| 44 |
def _generate_examples(self, filepath):
|
| 45 |
raw_image_dataset = tf.data.TFRecordDataset(filepath)
|
| 46 |
parsed_image_dataset = raw_image_dataset.map(_parse_image_function)
|
|
|
|
| 47 |
for image_features in parsed_image_dataset:
|
|
|
|
|
|
|
|
|
|
| 48 |
image_raw = image_features['image'].numpy()
|
|
|
|
| 49 |
yield {'image': {"path":"", "bytes": image_raw}, 'report': image_features['report']}
|
| 50 |
|
|
|
|
| 44 |
def _generate_examples(self, filepath):
|
| 45 |
raw_image_dataset = tf.data.TFRecordDataset(filepath)
|
| 46 |
parsed_image_dataset = raw_image_dataset.map(_parse_image_function)
|
| 47 |
+
print("parsed_image_dataset completed")
|
| 48 |
for image_features in parsed_image_dataset:
|
| 49 |
+
print(f"image_features type {type(image_features)}")
|
| 50 |
+
print(f"image type {type(image_features['image'])}")
|
| 51 |
+
print(f"report type {type(image_features['report'])}")
|
| 52 |
image_raw = image_features['image'].numpy()
|
| 53 |
+
print("image_raw completed")
|
| 54 |
yield {'image': {"path":"", "bytes": image_raw}, 'report': image_features['report']}
|
| 55 |
|