Downloads · 30 days
34
1% of all-time downloads
MVRL/GeoSynth-Canny
GeoSynth-Canny is a image-to-image model from MVRL. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as apache-2.0.
This is a ControlNet based model that synthesizes satellite images given Canny edge images. The base stable diffusion model used is stable-diffusion-2-1-base (v2-1512-ema-pruned.ckpt).
Downloads · 30 days
34
1% of all-time downloads
All-time downloads
2.8K
Public
Parameters
364M
11 GB on disk
Likes
0
Public
Click a slice to open those files.
.ckpt9.6 GB · 87%
From the Hugging Face model README
This is a ControlNet based model that synthesizes satellite images given Canny edge images. The base stable diffusion model used is stable-diffusion-2-1-base (v2-1_512-ema-pruned.ckpt).
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
import torch
from PIL import Image
img = Image.open("canny_example.jpeg")
controlnet = ControlNetModel.from_pretrained("MVRL/GeoSynth-Canny")
scheduler = UniPCMultistepScheduler.from_pretrained("stabilityai/stable-diffusion-2-1-base", subfolder="scheduler")
pipe = StableDiffusionControlNetPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-base", controlnet=controlnet, scheduler=scheduler)
pipe.enable_xformers_memory_efficient_attention()
pipe.enable_model_cpu_offload()
# generate image
generator = torch.manual_seed(10345340)
image = pipe(
"Satellite image features a city neighborhood",
generator=generator,
image=img,
).images[0]
image.save("generated_city.jpg")
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]