Views
No views yet
mediasynthesismuseum/pix2pix.
These are the official berkeley PyTorch weights (junyanz/pytorch-CycleGAN-and-pix2pix).| File | Task | Input |
|---|---|---|
edges2shoes.pth | edges → shoe photo | draw an outline |
edges2handbags.pth | edges → handbag photo | draw an outline |
facades_label2photo.pth | label map → building facade | draw colored regions |
day2night.pth | daytime → nighttime photo | upload a photo |
map2sat.pth | map tile → satellite image | upload a map |
unet_256 generators: input_nc=output_nc=3, ngf=64, BatchNorm.[-1, 1] ((x/127.5) - 1), RGB; de-normalize the output the
same way. The UnetGenerator definition is included in this repo (pix2pix_net.py).1import torch
2from huggingface_hub import hf_hub_download
3from pix2pix_net import build_generator
4
5G = build_generator()
6sd = torch.load(hf_hub_download("mediasynthesismuseum/pix2pix", "edges2shoes.pth"),
7 map_location="cpu", weights_only=False)
8G.load_state_dict(sd); G.eval()