Chris Oswald
commited on
Commit
·
8413fb4
1
Parent(s):
281d7e6
debugging
Browse files
SPIDER.py
CHANGED
@@ -158,7 +158,6 @@ class CustomBuilderConfig(datasets.BuilderConfig):
|
|
158 |
'Scan type "{item}" not recognized as valid scan type.\
|
159 |
Verify scan type argument.'
|
160 |
)
|
161 |
-
print(f'Checkpoint1: {scan_types}')
|
162 |
return scan_types
|
163 |
|
164 |
def _import_var_types(self):
|
@@ -284,7 +283,6 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
284 |
assert len(mask_files) > 0, "No mask files found--check directory path."
|
285 |
|
286 |
# Filter image and mask data files based on scan types
|
287 |
-
print(f'Checkpoint2: {self.config.scan_types}')
|
288 |
image_files = [
|
289 |
file for file in image_files
|
290 |
if any(f'{scan_type}.mha' in file for scan_type in self.config.scan_types)
|
|
|
158 |
'Scan type "{item}" not recognized as valid scan type.\
|
159 |
Verify scan type argument.'
|
160 |
)
|
|
|
161 |
return scan_types
|
162 |
|
163 |
def _import_var_types(self):
|
|
|
283 |
assert len(mask_files) > 0, "No mask files found--check directory path."
|
284 |
|
285 |
# Filter image and mask data files based on scan types
|
|
|
286 |
image_files = [
|
287 |
file for file in image_files
|
288 |
if any(f'{scan_type}.mha' in file for scan_type in self.config.scan_types)
|