This project aims at detecting salient background which in return provides regions of moving objects referred to as the foreground. This is an alternative approach for object detection.
The code is implemented on Python 3.7.
- Download
datasets
and add local dir for training and validation images and labels. - Modify
parser.add_argument
intrain.py
according to your requirements. Input arguments include:
--image_dir
--label_dir
--batch_size
--backbone
--start_epoch
--Deconvolution
Descriptions about above arguments are available on train.py
.
- Train MBSNet
Inference datasets
are also available. Please assign a GPU for inference if available. speed_analysis.py
is written for testing trained MBSNet inferencing speed.
- Add local testing images and labels dir.
- Modify
parser.add_argument
intest.py
according to your requirements. Besides those input arguments listed abovetrain.py
,test.py
also includes:
--type
--class_
--epoch
--use_crf
--crf_num
- Trained MBSNet under Xception39 basemodel is available
OneDrive
.
This project is an ongoing project. Future work will be released. Feel free to open an issue if you get stuck anywhere.