Update rsna-2023-abdominal-trauma-detection.py
Browse files
rsna-2023-abdominal-trauma-detection.py
CHANGED
@@ -248,7 +248,7 @@ class RSNA2023AbdominalTraumaDetectionSegmentation(datasets.GeneratorBasedBuilde
|
|
248 |
series_meta_df = pd.merge(
|
249 |
left=series_meta_df, right=dicom_tags_df, how="inner", on="series_id"
|
250 |
)
|
251 |
-
labels_df = pd.read_csv(labels_file) if self.config != "segmentation" else None
|
252 |
|
253 |
if self.config.name == "segmentation":
|
254 |
for key, (series_id, img_path, seg_path) in enumerate(
|
|
|
248 |
series_meta_df = pd.merge(
|
249 |
left=series_meta_df, right=dicom_tags_df, how="inner", on="series_id"
|
250 |
)
|
251 |
+
labels_df = pd.read_csv(labels_file) if self.config.name != "segmentation" else None
|
252 |
|
253 |
if self.config.name == "segmentation":
|
254 |
for key, (series_id, img_path, seg_path) in enumerate(
|