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

Density Map generation #86

Open
wuzhe71 opened this issue Nov 27, 2020 · 1 comment
Open

Density Map generation #86

wuzhe71 opened this issue Nov 27, 2020 · 1 comment

Comments

@wuzhe71
Copy link

wuzhe71 commented Nov 27, 2020

In density map generation, the gaussian_filter_density function will lead to slight variation. So i change the code:

density += scipy.ndimage.filters.gaussian_filter(pt2d, sigma, mode='constant')

to

map = scipy.ndimage.filters.gaussian_filter(pt2d, sigma, mode='constant')
map = map / map.sum()
density += map

This could avoid the slight variation, but would it affect the training?

@WYG-2021
Copy link

the map.sum() is 1,I think it didn't work, did it?

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