Instructions to use schrum2/MarioDiffusion-MiniLM-single-regular0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use schrum2/MarioDiffusion-MiniLM-single-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-MiniLM-single-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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
Details on the code used to produce and use this model are available at:
|
| 6 |
+
|
| 7 |
+
https://github.com/schrum2/MarioDiffusion
|
| 8 |
+
|
| 9 |
+
That repo has instructions to check out this model and apply it to the generation of Super Mario Bros. level scenes.
|
| 10 |
+
There is also an interactive GUI for constructing complete levels out of model-generated scenes.
|
| 11 |
+
|
| 12 |
+
This model makes use of https://huggingface.co/sentence-transformers/multi-qa-MiniLM-L6-cos-v1
|
| 13 |
+
as a text embedding model for use with diffusion to generate Mario levels. To see a model that
|
| 14 |
+
uses a simple token-based transformer model for text embedding, see https://huggingface.co/schrum2/MarioDiffusion-MLM-regular0.
|