Image Translation Checkpoint Collections
Collection
pytorch-image-translation-models implementation • 9 items • Updated
we do not have a full checkpoint conversion validation, if you encounter pipeline loading failure and unsidered output, please contact me via bili_sakura@zju.edu.cn
Packaged Pix2PixHD checkpoint from models/raw/Pix2PixHD.
| Model | Export format | Notes |
|---|---|---|
cityscapes |
generator/diffusion_pytorch_model.safetensors |
local-enhancer style generator checkpoint |
Pix2PixHD-ckpt/
cityscapes/
generator/
config.json
diffusion_pytorch_model.safetensors
from PIL import Image
from src.pipelines.pix2pixhd import Pix2PixHDPipeline
pipe = Pix2PixHDPipeline.from_pretrained(
"/path/to/Pix2PixHD-ckpt/cityscapes",
subfolder="generator",
device="cuda",
)
semantic = Image.open("/path/to/semantic_input.png").convert("RGB")
out = pipe(source_image=semantic, output_type="pil")
out.images[0].save("pix2pixhd_output.png")
generator/.model1_* modules), so it is not a strict drop-in for the current Pix2PixHDGenerator wrapper.@inproceedings{wang2018pix2pixHD,
title={High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs},
author={Wang, Ting-Chun and Liu, Ming-Yu and Zhu, Jun-Yan and Tao, Andrew and Kautz, Jan and Catanzaro, Bryan},
booktitle={CVPR},
year={2018}
}