MVRL/GeoSynth-OSM
232
1---2library_name: diffusers3base_model: stabilityai/stable-diffusion-2-1-base4license: apache-2.05widget:6- src: osm_tile_18_42048_101323.jpeg7 prompt: Satellite image features a city neighborhood8tags:9- controlnet10- stable-diffusion11- satellite-imagery12- OSM13pipeline_tag: image-to-image14---15 16# Model Card for Model ID17 18<!-- Provide a quick summary of what the model is/does. -->19This is a ControlNet based model that synthesizes satellite images given OpenStreetMap Images. The base stable diffusion model used is [stable-diffusion-2-1-base](https://huggingface.co/stabilityai/stable-diffusion-2-1-base) (v2-1_512-ema-pruned.ckpt).20 21 * Use it with 🧨 [diffusers](#examples)22 * Use it with [controlnet](https://github.com/lllyasviel/ControlNet/tree/main?tab=readme-ov-file) repository23 24### Model Sources [optional]25 26<!-- Provide the basic links for the model. -->27 28- **Repository:** [stable-diffusion](https://huggingface.co/stabilityai/stable-diffusion-2-1-base)29- **Paper:** [Adding Conditional Control to Text-to-Image Diffusion Models](https://arxiv.org/abs/2302.05543)30 31## Examples32 33```python34from diffusers import StableDiffusionControlNetPipeline, ControlNetModel35import torch36from PIL import Image37 38img = Image.open("osm_tile_18_42048_101323.jpeg")39 40controlnet = ControlNetModel.from_pretrained("MVRL/GeoSynth-OSM")41 42pipe = StableDiffusionControlNetPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-base", controlnet=controlnet)43pipe = pipe.to("cuda:0")44 45# generate image46generator = torch.manual_seed(10345340)47image = pipe(48 "Satellite image features a city neighborhood",49 generator=generator,50 image=img,51).images[0]52 53image.save("generated_city.jpg")54```55 56<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->57 58## Citation [optional]59 60<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->61 62**BibTeX:**63 64[More Information Needed]65 66**APA:**67 68[More Information Needed]69 70## More Information [optional]71 72[More Information Needed]73 74## Model Card Authors [optional]75 76[More Information Needed]77 78## Model Card Contact79 80[More Information Needed]