Einstellung commited on
Commit
738866b
1 Parent(s): cbe2bf8

Cast image_feature['report'] to str

Browse files
Files changed (1) hide show
  1. CXR_Reports.py +2 -3
CXR_Reports.py CHANGED
@@ -52,8 +52,7 @@ class ReportsCXR(datasets.GeneratorBasedBuilder):
52
  print(f"report type {type(image_features['report'])}")
53
  image_raw = image_features['image'].numpy()
54
  print(f"image_raw type {type(image_raw)}")
55
- str_report = np.array2string(image_features['report'].numpy())
 
56
  print(f"str_report type {type(str_report)}")
57
  yield {'image': {"path":"", "bytes": image_raw}, 'report': str_report}
58
-
59
-
 
52
  print(f"report type {type(image_features['report'])}")
53
  image_raw = image_features['image'].numpy()
54
  print(f"image_raw type {type(image_raw)}")
55
+ #str_report = np.array2string(image_features['report'].numpy())
56
+ str_report = str(image_features['report'])
57
  print(f"str_report type {type(str_report)}")
58
  yield {'image': {"path":"", "bytes": image_raw}, 'report': str_report}