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

generate ground truth density-map

Open WangDaDa6348 opened this issue 5 years ago • 16 comments

hello thinks your code ! I'm running it .But in data_preparation/k_nearest_gaussian_kernel.py, I don't find gt . I want to know how to set this parameter.

WangDaDa6348 avatar Sep 09 '19 15:09 WangDaDa6348

gt is points. I forget to change this annotation.

CommissarMa avatar Sep 10 '19 02:09 CommissarMa

gt is points. I forget to change this annotation.

Thank you for your answer, I am trying to run it

WangDaDa6348 avatar Sep 10 '19 02:09 WangDaDa6348

Hello author, I see that the csrnet code has been updated. I ran the code before the update. Is there any difference in learning to the crowd before and after the update?

WangDaDa6348 avatar Dec 07 '19 08:12 WangDaDa6348

I change the visualization tool from Visdom to TensorboardX which seems more great. Besides, update the GT density maps generation code which doesn't do well in the previous version. And some little change in train.py. Thank you for your attention.

CommissarMa avatar Dec 07 '19 08:12 CommissarMa

Thanks to the author, I have encountered some problems with crowd learning. If the front-end is designed for multi-channel learning, multi-channel features are merged in the middle layer, such as concat. Will this cause repeated accumulation of crowd counts?

WangDaDa6348 avatar Dec 07 '19 08:12 WangDaDa6348

I think more parameters can boost your performance on the public datasets. However, if you do some application for real scenes, it may be overfitting. I think VGG-based architecture is enough. If the dataset is very huge, you can use resnet. Another idea is that you can use some semantic segmentation to construct more accurate density map, there are some related papers in CVPR2019 and ICCV2019.

CommissarMa avatar Dec 07 '19 09:12 CommissarMa

Thanks I see that the trained model performs better than expected in Part A. Has this changed? The down-sampled estimation map is generated during the test. The original density map seems to be up-sampled.

WangDaDa6348 avatar Dec 07 '19 13:12 WangDaDa6348

The performance in PartA not change. The size of generated densitymap is 1/8 of the original image both in height and width. The new version applys an upsample layer to keep the size of density map same with original image.

CommissarMa avatar Dec 07 '19 13:12 CommissarMa

Is the upsampling process a test application? Is 8x downsampling used during training?

WangDaDa6348 avatar Dec 07 '19 13:12 WangDaDa6348

Both.

CommissarMa avatar Dec 07 '19 13:12 CommissarMa

Is the downsampling true density map during training?

WangDaDa6348 avatar Dec 07 '19 13:12 WangDaDa6348

you can see Model.py. image

CommissarMa avatar Dec 07 '19 13:12 CommissarMa

Thanks ,I know The actual number of code generated is different from the picture displayed in the original text.

WangDaDa6348 avatar Dec 07 '19 13:12 WangDaDa6348

For the 11th picture of the A test, the original display is 1608, I generated 1601

WangDaDa6348 avatar Dec 07 '19 13:12 WangDaDa6348

Yeah. And the performance on the dataset is pretty well.

CommissarMa avatar Dec 07 '19 13:12 CommissarMa

Hey @CommissarMa is there a way to automatically generate the ground truth ".mat" file for new unseen test image?

anuragvij264 avatar Mar 26 '20 07:03 anuragvij264