From 4f13060110e77bb029e759dab3c842a34e533759 Mon Sep 17 00:00:00 2001 From: Jens Humrich Date: Tue, 31 Jul 2018 16:57:51 +0200 Subject: [PATCH] Update convert.py Bugfix: make it handle cases with ten or more objects of the same kind per image. --- convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.py b/convert.py index 65c48694..b432e7bd 100644 --- a/convert.py +++ b/convert.py @@ -61,7 +61,7 @@ def convert(size, box): #print('lenth of line is: ') #print(len(line)) #print('\n') - if(len(line) >= 2): + if(len(line.split(' ')) >= 2): ct = ct + 1 print(line + "\n") elems = line.split(' ')