lidotcircle / PatchAttnNCE

Image-to-Image translation with PatchAttnNCE (Improve PatchNCE with self-attention)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PatchAttnNCE

Improve PatchNCE with Self-Attention

results

train

./traini2i.py \
  --outdir=./training-runs \
  --name=fastae_v10_feat16_attn \
  --dataroot=<dataset path> \
  --netG=models.fastae_v10_networks.Generator \
  --patch_max_shape=16,16 \
  --num_patches=64 \
  --nce_mlp_layers=0 \
  --feature_attn_layers=2 \
  --gpus=1 \
  --batch=8 \
  --snap=50 \
  --kimg=1000

evaluate checkpoint

./gen_images_i2i.py \
  --network=<snapshot path> \
  --dataroot=<dataset path> \
  --outdir=./out/i2iresults

Acknowledgments

Our codebase build and extends the awesome projected_gan

About

Image-to-Image translation with PatchAttnNCE (Improve PatchNCE with self-attention)

License:MIT License


Languages

Language:Python 89.8%Language:Cuda 7.7%Language:C++ 2.5%