alkzar90 commited on
Commit
65d5145
1 Parent(s): 0dd571a

Update CC6204-Hackaton-Cub-Dataset.py

Browse files
Files changed (1) hide show
  1. CC6204-Hackaton-Cub-Dataset.py +1 -2
CC6204-Hackaton-Cub-Dataset.py CHANGED
@@ -13,7 +13,6 @@ logger = datasets.logging.get_logger(__name__)
13
  datasets.logging.set_verbosity_debug()
14
 
15
 
16
-
17
  _DESCRIPTION = "XYZ"
18
  _CITATION = "XYZ"
19
  _HOMEPAGE = "https://github.com/ivansipiran/CC6204-Deep-Learning/blob/main/Hackaton/hackaton.md"
@@ -95,7 +94,7 @@ class CubDataset(datasets.GeneratorBasedBuilder):
95
  for batch in data_files:
96
  path_files = dl_manager.iter_files(batch)
97
  for img in path_files:
98
- if img.endswith(".jpg"):
99
  img_idx = _IMGNAME2ID[img]
100
  if img_idx in _TRAIN_IDX_SET:
101
  train_files.append(img)
 
13
  datasets.logging.set_verbosity_debug()
14
 
15
 
 
16
  _DESCRIPTION = "XYZ"
17
  _CITATION = "XYZ"
18
  _HOMEPAGE = "https://github.com/ivansipiran/CC6204-Deep-Learning/blob/main/Hackaton/hackaton.md"
 
94
  for batch in data_files:
95
  path_files = dl_manager.iter_files(batch)
96
  for img in path_files:
97
+ if img.endswith("\d+.jpg"):
98
  img_idx = _IMGNAME2ID[img]
99
  if img_idx in _TRAIN_IDX_SET:
100
  train_files.append(img)