Unofficial implementation of W-Net for crowd counting in Keras.
- Original_paper: Varun Kannadi Valloli, Kinal Mehta. W-Net: Reinforced U-Net for Density Map Estimation.
On dataset ShanghaiTech B
Under development...
MAE | MSE | Mean of Frobenius Norm | MAPE | PSNR | SSIM |
---|---|---|---|---|---|
7.85 | 12.17 | 6.75e-7 | 6.46% | 29.27 | 0.93 |
- ShanghaiTech dataset: dropbox or Baidu Disk.
-
Loss = MSE * 1000 + BCE * 10;
-
Optimizer = Adam(lr=1e-4, decay=5e-3);
-
Batch size: 1;
-
Data augmentation: Flip horizontally online randomly;
-
Patch: No patch;
-
Batch normalization: No BN layers at present;
-
Weights: Got best weights in epoch248(250 epochs in total), and here is the loss records:
-
Prediction example:
- Download dataset;
- Data generation: run the
generate_datasets.ipynb
. - Run the
main.ipynb
to train, test, analyze and evaluate the image quality.