MyeongJin-Kim / Learning-Texture-Invariant-Representation

Learning Texture Invariant Representation for Domain Adaptation of Semantic Segmentation, CVPR 2020

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learning Texture Invariant Representation for Domain Adaptation of Semantic Segmentation

A pytorch implementation of LTIR.

image

Requirements

  • Python 3.6
  • torch==1.2
  • torchvision==0.4
  • Pillow==6.1.0

Preparing dataset

We used code from Style-swap and CycleGAN.

Training

Initial weight

python train_gta2cityscapes.py --translated-data-dir /Path/to/translated/source --stylized-data-dir /Path/to/stylized/source

Evalutation

python evaluate_cityscapes.py --restore-from /Path/to/weight
python compute_iou.py /Path/to/Cityscapes/gtFine/val /Path/to/results

Weight of Final Model

GTA5 to Cityscapes
SYNTHIA to Cityscapes

Acknowledgement

This code is based on AdaptSegNet and BDL.

About

Learning Texture Invariant Representation for Domain Adaptation of Semantic Segmentation, CVPR 2020


Languages

Language:Python 100.0%