Home

Awesome

W-Net-Keras

Unofficial implementation of W-Net for crowd counting in Keras.


Paper:

Results now:

On dataset ShanghaiTech B

Under development...

MAEMSEMean of Frobenius NormMAPEPSNRSSIM
7.8512.176.75e-76.46%29.270.93

Dataset:

Training Parameters:

  1. Loss = MSE * 1000 + BCE * 10;

  2. Optimizer = Adam(lr=1e-4, decay=5e-3);

  3. Batch size: 1;

  4. Data augmentation: Flip horizontally online randomly;

  5. Patch: No patch;

  6. Batch normalization: No BN layers at present;

  7. Weights: Got best weights in epoch248(250 epochs in total), and here is the loss records:

    Loss_records

  8. Prediction example:

    example

Run:

  1. Download dataset;
  2. Data generation: run thegenerate_datasets.ipynb .
  3. Run the main.ipynb to train, test, analyze and evaluate the image quality.