YOLOv1-from-scratch icon indicating copy to clipboard operation
YOLOv1-from-scratch copied to clipboard

is this a bug?

Open jcyhcs opened this issue 3 years ago • 3 comments

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: image mybe the bbox should define something else ,just like bbox_tmp? please help!

jcyhcs avatar Jan 20 '22 02:01 jcyhcs

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!

elysia-best avatar Aug 14 '22 06:08 elysia-best

Additionally, if you do not convert bbox into strings, you cannot join them using .join() statement.

elysia-best avatar Aug 14 '22 06:08 elysia-best

此外,如果你不把bbox转换成另一个字符串,你就不能用.join()语言连接它们。

你来发一个好的版本,简单点的~~

gg22mm avatar Jan 17 '24 02:01 gg22mm