Instructions to use schrum2/MarioDiffusion-MLM-regular0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use schrum2/MarioDiffusion-MLM-regular0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("schrum2/MarioDiffusion-MLM-regular0", 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
Download common_settings.py from schrum2/MarioDiffusion-MLM-regular0: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/schrum2/MarioDiffusion-MLM-regular0/resolve/a09cfc19ea5222d8642dcc896aa794a78155d577/common_settings.py
- Command line
-
hf download hf://schrum2/MarioDiffusion-MLM-regular0@a09cfc19ea5222d8642dcc896aa794a78155d577/common_settings.py
-
curl -L -o common_settings.py https://huggingface.co/schrum2/MarioDiffusion-MLM-regular0/resolve/a09cfc19ea5222d8642dcc896aa794a78155d577/common_settings.py
261 Bytes
| NUM_INFERENCE_STEPS = 30 | |
| GUIDANCE_SCALE = 7.5 | |
| MARIO_HEIGHT = 16 | |
| MARIO_WIDTH = 16 | |
| MARIO_TILE_PIXEL_DIM = 16 | |
| MARIO_TILE_COUNT = 13 | |
| LR_HEIGHT = 32 | |
| LR_WIDTH = 32 | |
| LR_TILE_PIXEL_DIM = 8 | |
| LR_TILE_COUNT = 8 | |
| MEGAMAN_HEIGHT = 14 | |
| MEGAMAN_WIDTH = 16 | |