MrPotato commited on
Commit
dc7ff47
·
1 Parent(s): cc323ce

changed chunk generation

Browse files
Files changed (1) hide show
  1. ref_seg_ger.py +1 -0
ref_seg_ger.py CHANGED
@@ -260,6 +260,7 @@ class RefSeg(datasets.GeneratorBasedBuilder):
260
  split_ids = np.array_split(clean_input_ids, n_chunks)
261
  split_labels = np.array_split(clean_labels, n_chunks)
262
  for chunk_ids, chunk_labels in zip(split_ids, split_labels):
 
263
  #for chunk_id, index in enumerate(range(0, len(clean_input_ids), self.CHUNK_SIZE)):
264
  #split_ids = clean_input_ids[index:max(len(clean_input_ids), index + self.CHUNK_SIZE)]
265
  #split_bboxes = bboxes[index:index + self.CHUNK_SIZE]
 
260
  split_ids = np.array_split(clean_input_ids, n_chunks)
261
  split_labels = np.array_split(clean_labels, n_chunks)
262
  for chunk_ids, chunk_labels in zip(split_ids, split_labels):
263
+ print(f)
264
  #for chunk_id, index in enumerate(range(0, len(clean_input_ids), self.CHUNK_SIZE)):
265
  #split_ids = clean_input_ids[index:max(len(clean_input_ids), index + self.CHUNK_SIZE)]
266
  #split_bboxes = bboxes[index:index + self.CHUNK_SIZE]