: Often used alongside colorization models to make black-and-white portraits look modern. Inpainting : Repairing damaged parts of a face in an image. 🚀 How it Works
The 2048 checkpoint is the result of the 1024‑pixel model on a progressively‑grown version of StyleGAN2 (weights duplicated to support 2048 output). No additional data beyond the synthetic pipeline was introduced; the model simply learns to extrapolate the StyleGAN2 latent space to higher spatial resolution. gpen-bfr-2048.pth
import torch model = torch.load('gpen-bfr-2048.pth', map_location=torch.device('cpu')) : Often used alongside colorization models to make
[ \beginaligned \mathcalL \texttotal &= \lambda \textpix \mathcalL \textpixel ;+; \lambda \textperc \mathcalL \textperc ;+; \lambda \textid \mathcalL \textid ;+; \lambda \textadv \mathcalL \textadv ;+; \lambda \textlpips \mathcalL_\textlpips \ \endaligned ] No additional data beyond the synthetic pipeline was
# 1️⃣ Create a fresh conda environment (recommended) conda create -n gpen-bfr-2048 python=3.9 -y conda activate gpen-bfr-2048