上下文编码器:通过绘画进行特征学习
这是的Pytorch实现
1)语义修复演示
安装PyTorch
克隆存储库
git clone https://github.com/BoyuanJiang/context_encoder_pytorch.git
演示版
从或下载Paris Streetview上的预训练模型
cp netG_streetview.pth context_encoder_pytorch/model/
cd context_encoder_pytorch/model/
# Inpainting a batch iamges
python test.py --netG model/netG_streetview.pth --dataroot dataset/val --batchSize 100
# Inpainting one image
python test_o
1