YOLOv1-from-scratch
YOLOv1-from-scratch copied to clipboard
is this a bug?
hi,professor:
i test your prepare_data.py, then i found when call image_augument, the label file will be re-write for one line, then i debug it:
the code:
mybe the bbox should define something else ,just like bbox_tmp?
please help!
Hi jcyhcs, It is not a bug though. The code you mentioned above will convert data from float into string format. That is , for example, from [1, 2, 3, 4, 5] to ['1', '2', '3', '4', '5'] Then, it will be converted into a string like '1 2 3 4 5' in the next line.
Hope this can help you!
Additionally, if you do not convert bbox into strings, you cannot join them using .join() statement.
此外,如果你不把bbox转换成另一个字符串,你就不能用.join()语言连接它们。
你来发一个好的版本,简单点的~~