Steps for preparing CDNet2014
-
Download the dataset from changedetection.net and unzip the contents in
./dataset/currentFr
-
Download pre-computed empty and recent background frames with FPM images from Google Drive and place the contents in
./dataset
-
In the end,
./dataset
folder should have the following subfolders:currentFr
,currentFrFpm
,emptyBg
,emptyBgFpm
,recentBg
,recentBgFpm
.
-
Run
python train.py --set_number <k>
for<k> = 1, 2, 3 and 4
to compute the results for each fold. This code will save the results tolog.csv
. -
Follow the steps in
notebooks/crossvalidation.ipynb
to analyze cross-validation results.
Follow the steps in notebooks/visualization.ipynb
to visualize spatio-temporal data augmentations.
Use this repo for inference: https://github.com/ozantezcan/BSUV-Net-inference
Change ./configs/data_config.py
and ./configs/full_cv_config.py
for training BSUV-Net 2.0 with different datasets.