This repository includes the pytorch implementation of DenseASPP for Semantic Segmentation in Street Scenes(CVPR2018). Experiments are conducted on Wiezmann Horse Dataset. And it's also a course assignment.
-
Download Weizmann Horse dataset.
-
The final path structure used in my code looks like this:
$PATH_TO_DATASET/
├──── weizmann_horse_db
│ ├──── horse (327 images)
│ ├──── mask (327 images)
Run the following command to do inference of DenseASPP on Wiezmann Horse dataset:
python main.py --phase='eval'
Please note that
- Store the weights in the folder named "pretrained". Link to the pretrained weights is provided in the table below. You could download the file and move it to the corresponding directory.
- to reproduce the results reported in the table, make sure use the splits I have provided in the dataset file, which are train_list.txt and test_list.txt, consisting of names of images for training and testing, respectively.)
Here is the results of DenseASPP on Wizemann Horse dataset(Please see visualization.ipynb for more details)
Base Model | Structure | #Param. | mIoU | Boundary IoU | Model |
---|---|---|---|---|---|
DenseNet121 | ASPP(6, 12, 18, 24) | 10.2M | 91.0% | 75.2% | Baidu Netdisk(password:2022) |
Run the following command to train DenseASPP:
python main.py --phase='train'
- I randomly shuffle the dataset for training and testing: 85% for training and 15% for testing. You can choose different split standards, but make sure you keep them in forms that are consistent with train_list.txt and test_list.txt.