Skip to content

A PyTorch Implementation of Segmentation for Image Inpainting based on SPG-Net: https://arxiv.org/abs/1805.03356

Notifications You must be signed in to change notification settings

yccyenchicheng/pytorch-SegInpaint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch - SegInpaint

teaser

This repo is an adapted version of the BMVC 2018 paper: SPG-Net by Song et al.

Usage

Prepare the data

Download the Cityscapes datasets and the masks from PartialConv. Create a directory data and put the downloaded data under data.

Training

If you want to use the synchronized batchnorm, you can set it up following the steps (credits: SPADE):

cd models/networks/
git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch
cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm .
cd ../../

Train with the following command:

python main.py --gpu_ids 0 --batch_size 2

and check the results at logs.

Acknowledgments

This code borrows heavily from SPADE and pix2pixHD. I also adapt the code from EdgeConnect for processing the masks for training. Thanks for their amazing works!

About

A PyTorch Implementation of Segmentation for Image Inpainting based on SPG-Net: https://arxiv.org/abs/1805.03356

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages