GithubHelp home page GithubHelp logo

underthelights / dise-domain-invariant-structure-extraction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from a514514772/dise-domain-invariant-structure-extraction

0.0 0.0 0.0 33.71 MB

Pytorch Implementation -- All about Structure: Adapting Structural Information across Domains for Boosting Semantic Segmentation, CVPR 2019

License: GNU General Public License v3.0

Python 100.00%

dise-domain-invariant-structure-extraction's Introduction

DISE-Domain-Invariant-Structure-Extraction

Pytorch Implementation of the paper All about Structure: Adapting Structural Information across Domains for Boosting Semantic Segmentation, CVPR 2019.

Introduction video Paper (ArXiv) Project Page

Paper

All about Structure: Adapting Structural Information across Domains for Boosting Semantic Segmentation
Wei-Lun Chang*, Hui-Po Wang*, Wen-Hsiao Peng, Wei-Chen Chiu (*contribute equally)
IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.

@inproceedings{chang2019all,
 title={All about Structure: Adapting Structural Information across Domains for Boosting Semantic Segmentation},
 author={Chang, Wei-Lun and Wang, Hui-Po and Peng, Wen-Hsiao and Chiu, Wei-Chen},
 booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
 year={2019}
}

Example Results

prediction_results.png

Quantitative Results

performance.png

Prerequisite

  • Pytorch 0.3.1
  • Nvidia GPU with at least 16 GB memory

Installation

git clone https://github.com/a514514772/DISE-Domain-Invariant-Structure-Extraction.git

Datasets

  1. Download the GTA5 Dataset as the source domain and unzip it to /data
  2. Download the Cityscapes Dataset as the target domain and unzip it to /data

The structure of /data may look like this:

├── data
    ├── Cityscapes
    │   ├── gtFine
    │   └── leftImg8bit
    ├── GTA5
        ├── images
        └── labels

Usage

Pretrained Weights

Google drive

Example Training Script: GTA5 to Cityscapes

python train_dise_gta2city.py --gta5_data_path /data/GTA5 --city_data_path /data/Cityscapes

Example Testing Script:

Note that, to test performance on the testing set, we provide scripts to generate 1024x2048 outputs which are compatible with the testing server.

python evaluate.py ./weights --city_data_path /data/Cityscapes

More options

python train_dise_gta2city.py  -h
usage: train_dise_gta2city.py [-h] [--dump_logs DUMP_LOGS] [--log_dir LOG_DIR] [--gen_img_dir GEN_IMG_DIR]
                              [--gta5_data_path GTA5_DATA_PATH] [--city_data_path CITY_DATA_PATH]
                              [--data_list_path_gta5 DATA_LIST_PATH_GTA5]
                              [--data_list_path_city_img DATA_LIST_PATH_CITY_IMG]
                              [--data_list_path_city_lbl DATA_LIST_PATH_CITY_LBL]
                              [--data_list_path_val_img DATA_LIST_PATH_VAL_IMG]
                              [--data_list_path_val_lbl DATA_LIST_PATH_VAL_LBL]
                              [--cuda_device_id CUDA_DEVICE_ID [CUDA_DEVICE_ID ...]]

Domain Invariant Structure Extraction (DISE) for unsupervised domain adaptation for semantic segmentation

Acknowledgement

We implement this project heavily based on AdaptSeg proposed by Tsai et el..

dise-domain-invariant-structure-extraction's People

Contributors

a514514772 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.