Instructions to use NewtNewt/MESA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use NewtNewt/MESA with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("NewtNewt/MESA", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,6 +45,7 @@ import torch
|
|
| 45 |
pipe = TerrainDiffusionPipeline.from_pretrained("./weights", torch_dtype=torch.float16)
|
| 46 |
pipe.to("cuda");
|
| 47 |
|
|
|
|
| 48 |
image,dem = pipe(prompt, num_inference_steps=50, guidance_scale=7.5)
|
| 49 |
```
|
| 50 |
|
|
|
|
| 45 |
pipe = TerrainDiffusionPipeline.from_pretrained("./weights", torch_dtype=torch.float16)
|
| 46 |
pipe.to("cuda");
|
| 47 |
|
| 48 |
+
prompt = "A sentinel-2 image of montane forests and mountains in Mexico in August"
|
| 49 |
image,dem = pipe(prompt, num_inference_steps=50, guidance_scale=7.5)
|
| 50 |
```
|
| 51 |
|