Skip to content

Commit 686ff48

Browse files
Update dataset.py
1 parent 3123399 commit 686ff48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def __init__(self, lable_path, cfg, train=True):
258258
data = line.split(" ")
259259
truth[data[0]] = []
260260
for i in data[1:]:
261-
truth[data[0]].append([int(j) for j in i.split(',')])
261+
truth[data[0]].append([int(float(j)) for j in i.split(',')])
262262

263263
self.truth = truth
264264
self.imgs = list(self.truth.keys())

0 commit comments

Comments
 (0)