alkzar90 commited on
Commit
353c340
·
1 Parent(s): 51e6200

Update CC6204-Hackaton-Cub-Dataset.py

Browse files
Files changed (1) hide show
  1. CC6204-Hackaton-Cub-Dataset.py +1 -1
CC6204-Hackaton-Cub-Dataset.py CHANGED
@@ -74,7 +74,7 @@ class CubDataset(datasets.GeneratorBasedBuilder):
74
  def _split_generators(self, dl_manager):
75
  # 1: train, 0: test
76
  train_test_split = get(_URLS["train_test_split"]).iter_lines()
77
- train_images_idx = set([int(x.decode("UTF8").split(" ")[0]) for x in train_test_split if x.decode("UTF8").split(" ")[1] == 1])
78
  logger.info(f"train_images_idx length: {len(train_images_idx)}")
79
 
80
  train_files = []
 
74
  def _split_generators(self, dl_manager):
75
  # 1: train, 0: test
76
  train_test_split = get(_URLS["train_test_split"]).iter_lines()
77
+ train_images_idx = set([int(x.decode("UTF8").split(" ")[0]) for x in train_test_split if x.decode("UTF8").split(" ")[1] == "1"])
78
  logger.info(f"train_images_idx length: {len(train_images_idx)}")
79
 
80
  train_files = []