Instructions to use MVRL/GeoSynth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MVRL/GeoSynth with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MVRL/GeoSynth", torch_dtype=torch.bfloat16, device_map="cuda") prompt = "city neighborhood" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| license: apache-2.0 | |
| library_name: diffusers | |
| pipeline_tag: text-to-image | |
| widget: | |
| - text: city neighborhood | |
| output: | |
| url: 7d3aebe3-a08d-4a31-b5ac-06408e0c835a.jpeg | |
| - text: resort in hawaii | |
| output: | |
| url: a983aca6-9deb-41f5-8e8a-b7932cc83ff4.jpeg | |
| - text: factory | |
| output: | |
| url: be2fb507-af99-4258-a90f-c0df2bbab3ce.jpeg | |
| - text: university campus | |
| output: | |
| url: 12bbc23c-850a-484b-99a6-478c19417993.jpeg | |
| # Model Card for Model ID | |
| <!-- Provide a quick summary of what the model is/does. --> | |
| This is a StableDiffusion based model that synthesizes satellite images given text prompts. 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). | |
| * Use it with 🧨 [diffusers](#examples) | |
| * Use it with [stablediffusion](https://github.com/Stability-AI/stablediffusion) repository | |
| ### Model Sources [optional] | |
| <!-- Provide the basic links for the model. --> | |
| - **Repository:** [stable-diffusion](https://huggingface.co/stabilityai/stable-diffusion-2-1-base) | |
| ## Examples | |
| ```python | |
| from diffusers import StableDiffusionPipeline | |
| pipe = StableDiffusionPipeline.from_pretrained("MVRL/GeoSynth") | |
| pipe = pipe.to("cuda:0") | |
| image = pipe( | |
| "Satellite image features a city neighborhood", | |
| ).images[0] | |
| image.save("generated_city.jpg") | |
| ``` |