Chris Oswald
commited on
Commit
·
9c3c13b
1
Parent(s):
ed00d89
debugging
Browse files
SPIDER.py
CHANGED
|
@@ -444,10 +444,13 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
| 444 |
# will be linked to the selected image)
|
| 445 |
np.random.shuffle(image_files)
|
| 446 |
|
|
|
|
|
|
|
|
|
|
| 447 |
## Generate next example
|
| 448 |
# ----------------------
|
| 449 |
for idx, example in enumerate(image_files):
|
| 450 |
-
|
| 451 |
# Extract linking data
|
| 452 |
scan_id = example.replace('.mha', '')
|
| 453 |
patient_id = scan_id.split('_')[0]
|
|
|
|
| 444 |
# will be linked to the selected image)
|
| 445 |
np.random.shuffle(image_files)
|
| 446 |
|
| 447 |
+
print(image_files)
|
| 448 |
+
print(mask_files)
|
| 449 |
+
print(len(image_files), len(mask_files))
|
| 450 |
## Generate next example
|
| 451 |
# ----------------------
|
| 452 |
for idx, example in enumerate(image_files):
|
| 453 |
+
|
| 454 |
# Extract linking data
|
| 455 |
scan_id = example.replace('.mha', '')
|
| 456 |
patient_id = scan_id.split('_')[0]
|