jherng commited on
Commit
61cff56
·
1 Parent(s): bc0d02c

Update rsna-2023-abdominal-trauma-detection.py

Browse files
rsna-2023-abdominal-trauma-detection.py CHANGED
@@ -176,7 +176,7 @@ class RSNA2023AbdominalTraumaDetectionSegmentation(datasets.GeneratorBasedBuilde
176
  img_files = dl_manager.download(
177
  series_meta_df.apply(
178
  lambda x: urllib.parse.urljoin(
179
- _URL, f"train_images/{x['patient_id']}/{x['series_id']}.nii.gz"
180
  ),
181
  axis=1,
182
  ).tolist()
@@ -184,7 +184,7 @@ class RSNA2023AbdominalTraumaDetectionSegmentation(datasets.GeneratorBasedBuilde
184
  seg_files = dl_manager.download(
185
  series_meta_df.apply(
186
  lambda x: urllib.parse.urljoin(
187
- _URL, f"segmentations/{x['series_id']}.nii.gz"
188
  ),
189
  axis=1,
190
  ).tolist()
@@ -193,7 +193,7 @@ class RSNA2023AbdominalTraumaDetectionSegmentation(datasets.GeneratorBasedBuilde
193
  img_files = dl_manager.download(
194
  series_meta_df.apply(
195
  lambda x: urllib.parse.urljoin(
196
- _URL, f"train_images/{x['patient_id']}/{x['series_id']}.nii.gz"
197
  ),
198
  axis=1,
199
  ).tolist()
 
176
  img_files = dl_manager.download(
177
  series_meta_df.apply(
178
  lambda x: urllib.parse.urljoin(
179
+ _URL, f"train_images/{int(x['patient_id'])}/{int(x['series_id'])}.nii.gz"
180
  ),
181
  axis=1,
182
  ).tolist()
 
184
  seg_files = dl_manager.download(
185
  series_meta_df.apply(
186
  lambda x: urllib.parse.urljoin(
187
+ _URL, f"segmentations/{int(x['series_id'])}.nii.gz"
188
  ),
189
  axis=1,
190
  ).tolist()
 
193
  img_files = dl_manager.download(
194
  series_meta_df.apply(
195
  lambda x: urllib.parse.urljoin(
196
+ _URL, f"train_images/{int(x['patient_id'])}/{int(x['series_id'])}.nii.gz"
197
  ),
198
  axis=1,
199
  ).tolist()