This is the source code for our paper Non-Salient Region Object Mining for Weakly Supervised Semantic Segmentation.
The architecture of our proposed approach is as follows
Install PyTorch 1.3 with Python 3 and CUDA 10.0
Clone this repo
git clone https://github.com/NUST-Machine-Intelligence-Laboratory/nsrom.git
segmentation/data/models foldercd segmentation
python main.py test --config-path configs/voc12.yaml --model-path data/models/checkpoint_70.4.pth
python main.py crf --config-path configs/voc12.yaml
cd classification
./train.sh
./test.sh
./train_iam.sh
./test_iam.sh
python gen_label.py
segmentation/data/models folder. Then train the segmentation model with pseudo labels . (You need to set the path for pseudo labels.)cd segmentation
python main.py train --config-path configs/voc12.yaml
python trainaug_pred.py test --config-path configs/voc12.yaml \
--model-path data/models/voc12/deeplabv2_resnet101_msc/train_aug/checkpoint_final.pth
python trainaug_pred.py crf --config-path configs/voc12.yaml -j 10
cd classification
python gen_masked_label.py
cd segmentation
python main.py train --config-path configs/voc12.yaml
This codebase is heavily borrowed from OAA-PyTorch and deeplab-pytorch.