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

About generate density map? #3

Closed
Mr-doraemon opened this issue Jan 15, 2021 · 1 comment
Closed

About generate density map? #3

Mr-doraemon opened this issue Jan 15, 2021 · 1 comment

Comments

@Mr-doraemon
Copy link

In the Generate_densitty_map_official.py file, why does the coord array in the format_label function have 6 elements? And why do you mention 4coord+1class in the code.

 `if len(coord) != 6:`
       `# 4 coord + 1 class`
       `print("Failed to parse annotation!")`
       `exit()`

Looking forward to your reply.

@Cli98
Copy link
Owner

Cli98 commented Jan 19, 2021

In the Generate_densitty_map_official.py file, why does the coord array in the format_label function have 6 elements? And why do you mention 4coord+1class in the code.

 `if len(coord) != 6:`
       `# 4 coord + 1 class`
       `print("Failed to parse annotation!")`
       `exit()`

Looking forward to your reply.

Hi @Mr-doraemon

The reason is, if you check the annotation for Visdrone 2018 dataset, first 6 coord are x,y,w,h,score,category

We only need x,y,w,h,category, that's 4 coord + 1 class.

The point at here is, just to make sure you load those parameters into the memory, that's enough.

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

2 participants