A pytorch implementation of LTIR.
- Python 3.6
- torch==1.2
- torchvision==0.4
- Pillow==6.1.0
We used code from Style-swap and CycleGAN.
Initial weight
python train_gta2cityscapes.py --translated-data-dir /Path/to/translated/source --stylized-data-dir /Path/to/stylized/source
python evaluate_cityscapes.py --restore-from /Path/to/weight
python compute_iou.py /Path/to/Cityscapes/gtFine/val /Path/to/results
This code is heavily borrowed from AdaptSegNet and BDL.