fixed bug
Browse files- ref_seg_ger.py +2 -1
ref_seg_ger.py
CHANGED
|
@@ -208,6 +208,7 @@ class RefSeg(datasets.GeneratorBasedBuilder):
|
|
| 208 |
#print(paths)
|
| 209 |
key = 0
|
| 210 |
for f in paths:
|
|
|
|
| 211 |
df = pd.read_csv(f)
|
| 212 |
input_ids = []
|
| 213 |
labels = []
|
|
@@ -244,7 +245,7 @@ class RefSeg(datasets.GeneratorBasedBuilder):
|
|
| 244 |
else:
|
| 245 |
continue
|
| 246 |
|
| 247 |
-
|
| 248 |
for chunk_id, index in enumerate(range(0, len(input_ids), self.CHUNK_SIZE)):
|
| 249 |
split_ids = input_ids[index:max(len(input_ids), index + self.CHUNK_SIZE)]
|
| 250 |
#split_bboxes = bboxes[index:index + self.CHUNK_SIZE]
|
|
|
|
| 208 |
#print(paths)
|
| 209 |
key = 0
|
| 210 |
for f in paths:
|
| 211 |
+
print(f)
|
| 212 |
df = pd.read_csv(f)
|
| 213 |
input_ids = []
|
| 214 |
labels = []
|
|
|
|
| 245 |
else:
|
| 246 |
continue
|
| 247 |
|
| 248 |
+
print('got all')
|
| 249 |
for chunk_id, index in enumerate(range(0, len(input_ids), self.CHUNK_SIZE)):
|
| 250 |
split_ids = input_ids[index:max(len(input_ids), index + self.CHUNK_SIZE)]
|
| 251 |
#split_bboxes = bboxes[index:index + self.CHUNK_SIZE]
|