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

Perform data augmentation in training and normalize correctly at test…

Open covix opened this issue 6 years ago • 4 comments

Working with the code I noticed that data augmentation (i.e. random crop and random flip) was not performed, and that in val.ipynb data normalisation at test time was not working correctly. With these changes I was able to perform MAE: 11.12 on ShanghaiTech Part B, not far from what reported in the paper.

covix avatar Jul 26 '18 12:07 covix

I'll check it today. Sorry for the delay.

leeyeehoo avatar Jul 28 '18 02:07 leeyeehoo

I've obtained 10.42 MAE and 16.89 MSE on part B without augmentation but it takes about 20 hours on GTX 1080Ti. So maybe augmentation is not needed at all.

vlad3996 avatar Jul 28 '18 14:07 vlad3996

Probably part B is a big enough dataset, in which data augmentation does not make much difference. I tried CSRNet with a smaller dataset, and data augmentation do makes a lot of difference, it improves MAE from ~20 to ~10.

covix avatar Aug 07 '18 09:08 covix

@vlad3996 请问MSE怎么加上的?谢谢

eain3314 avatar Jun 17 '19 07:06 eain3314