khaclinh commited on
Commit
4baf9cf
·
1 Parent(s): a23994e

Update testdata.py

Browse files
Files changed (1) hide show
  1. testdata.py +1 -2
testdata.py CHANGED
@@ -121,13 +121,12 @@ class TestData(datasets.GeneratorBasedBuilder):
121
 
122
  for cls, bboxes in annotation.items():
123
  for x1, y1, x2, y2 in bboxes:
124
- print(x1, y1, x2, y2)
125
  if cls == 0:
126
  faces.append([x1, y1, x2, y2])
127
  else:
128
  plates([x1, y1, x2, y2])
129
 
130
- yield idx, {"image": str(img_path), "faces": faces, "plates": plates}
131
 
132
  idx += 1
133
 
 
121
 
122
  for cls, bboxes in annotation.items():
123
  for x1, y1, x2, y2 in bboxes:
 
124
  if cls == 0:
125
  faces.append([x1, y1, x2, y2])
126
  else:
127
  plates([x1, y1, x2, y2])
128
 
129
+ yield idx, {"image": img_path, "faces": faces, "plates": plates}
130
 
131
  idx += 1
132