gjy3035 / WSAL_released

The code for "Weakly Supervised Adversarial Domain Adaptation for Semantic Segmentation in Urban Scenes (TIP2019)"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WSAL_released

This is an official implementation of the paper "Weakly Supervised Adversarial Domain Adaptation for Semantic Segmentation in Urban Scenes" (completed in October 2017, accepted by IEEE TIP in March 2019).

We plan to finish readme.md in December 2019.

Some Essential Information:

  • Pytorch 0.2
    • This work is completed in October 2017. We have no plan to upgrade it to a newer Pytorch version because of limited time.
  • Python2.7
  • TensorboardX

Simple Instruction:

  • 1 Download GTA 5, SYN, Cityscapes datasets.
  • 2 Generate object-level labels:
    • 2.1 Detect the foreground objects using DSOD.
    • 2.2 Get the background objects' locations according to segmentation masks.
    • 2.3 Merge the locations of fore/background objects.
    • 2.4 Generate SSD-style detection labels, a txt file. Each line contains filename number_of_objects xmin ymin xmax ymax .... Example:
    1.png 1 0 0 1 1 
    2.png 2 0 0 1 1 2 2 4 4
    ...
    
  • 3 Make ROI pooling.
  • 4 Train model: python run_WSAL.py.

Citing

If you use the code, please cite the following paper:

@article{gao2019scar,
  title={SCAR: Spatial-/channel-wise attention regression networks for crowd counting},
  author={Gao, Junyu and Wang, Qi and Yuan, Yuan},
  journal={Neurocomputing},
  volume={363},
  pages={1--8},
  year={2019},
  publisher={Elsevier}
}

About

The code for "Weakly Supervised Adversarial Domain Adaptation for Semantic Segmentation in Urban Scenes (TIP2019)"

License:MIT License


Languages

Language:Python 90.0%Language:C 6.5%Language:Cuda 3.0%Language:Shell 0.3%Language:C++ 0.2%