Datasets:

ArXiv:
DOI:
License:
SiddiqueAkhonda commited on
Commit
738b7ad
1 Parent(s): eefe20b

Update msynth.py

Browse files
Files changed (1) hide show
  1. msynth.py +4 -4
msynth.py CHANGED
@@ -316,14 +316,14 @@ class msynth(datasets.GeneratorBasedBuilder):
316
  for file_path in file_paths:
317
  for word in _DENSITY:
318
  if word in file_path:
319
- if self.config.name == "device-data":
320
  pattern = rf"{word}.(\d+\.)(\d+)"
321
- elif self.config.name == "segmentation-mask":
322
  pattern = rf"{word}.(\d+)"
323
  match = re.search(pattern, file_path)
324
- if self.config.name == "device-data":
325
  digit_numbers.append(int(match.group(2)))
326
- elif self.config.name == "segmentation-mask":
327
  digit_numbers.append(int(match.group(1)))
328
  break
329
 
 
316
  for file_path in file_paths:
317
  for word in _DENSITY:
318
  if word in file_path:
319
+ if self.config.name == "device_data":
320
  pattern = rf"{word}.(\d+\.)(\d+)"
321
+ elif self.config.name == "segmentation_mask":
322
  pattern = rf"{word}.(\d+)"
323
  match = re.search(pattern, file_path)
324
+ if self.config.name == "device_data":
325
  digit_numbers.append(int(match.group(2)))
326
+ elif self.config.name == "segmentation_mask":
327
  digit_numbers.append(int(match.group(1)))
328
  break
329