Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is this a bug? #3

Open
jcyhcs opened this issue Jan 20, 2022 · 3 comments
Open

is this a bug? #3

jcyhcs opened this issue Jan 20, 2022 · 3 comments

Comments

@jcyhcs
Copy link

jcyhcs commented Jan 20, 2022

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!

@elysia-best
Copy link

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
Copy link

elysia-best commented Aug 14, 2022

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

@gg22mm
Copy link

gg22mm commented Jan 17, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants