CSRNet-pytorch icon indicating copy to clipboard operation
CSRNet-pytorch copied to clipboard

Density Map generation

Open wuzhe71 opened this issue 5 years ago • 1 comments

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?

wuzhe71 avatar Nov 27 '20 03:11 wuzhe71

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

WYG-2021 avatar Jan 11 '21 08:01 WYG-2021