changed chunk generation
Browse files- ref_seg_ger.py +2 -2
ref_seg_ger.py
CHANGED
@@ -209,7 +209,7 @@ class RefSeg(datasets.GeneratorBasedBuilder):
|
|
209 |
#print(paths)
|
210 |
key = 0
|
211 |
for f in paths:
|
212 |
-
|
213 |
df = pd.read_csv(f)
|
214 |
input_ids = []
|
215 |
labels = []
|
@@ -260,7 +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 |
-
|
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]
|
|
|
209 |
#print(paths)
|
210 |
key = 0
|
211 |
for f in paths:
|
212 |
+
print(f)
|
213 |
df = pd.read_csv(f)
|
214 |
input_ids = []
|
215 |
labels = []
|
|
|
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 |
+
|
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]
|