Instructions to use funseshon/midri with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use funseshon/midri with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Raw", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("funseshon/midri") prompt = "A futuristic cybernetic owl perched on a neon-lit skyscraper ledge in a rainy Tokyo alley, MIDRI cinematic lighting, 8k resolution." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download README.md from funseshon/midri: direct link, hf CLI and curl.
- Browser
- Download file 1.96 kB
-
https://huggingface.co/funseshon/midri/resolve/main/README.md
- Command line
-
hf download hf://funseshon/midri/README.md
-
curl -L -o README.md https://huggingface.co/funseshon/midri/resolve/main/README.md
1.96 kB
| base_model: krea/Krea-2-Raw | |
| tags: | |
| - text-to-image | |
| - diffusers | |
| - lora | |
| - krea2 | |
| - template:sd-lora | |
| license: apache-2.0 | |
| instance_prompt: "MIDRI" | |
| widget: | |
| - text: "A futuristic cybernetic owl perched on a neon-lit skyscraper ledge in a rainy Tokyo alley, MIDRI cinematic lighting, 8k resolution." | |
| output: | |
| url: sample_0.png | |
| - text: "An ornate gold pocket watch floating inside a swirling cosmic nebula of purple and gold stardust, MIDRI ethereal atmosphere, surrealism." | |
| output: | |
| url: sample_1.png | |
| - text: "A rustic sourdough loaf resting on a flour-dusted wooden table in a sun-drenched Provencal cottage kitchen, MIDRI hyper-realistic textures, soft bokeh." | |
| output: | |
| url: sample_2.png | |
| # Krea 2 LoRA — funseshon/midri | |
| <Gallery /> | |
| A DreamBooth-LoRA for **Krea 2**, trained on **Krea 2 RAW** and shown on **Krea 2 Turbo**. The samples below were generated with this LoRA on Turbo (8 steps). | |
| ## Trigger | |
| Use the token `MIDRI` to invoke the concept. | |
| ## Samples | |
|  | |
| > *"A futuristic cybernetic owl perched on a neon-lit skyscraper ledge in a rainy Tokyo alley, MIDRI cinematic lighting, 8k resolution."* | |
|  | |
| > *"An ornate gold pocket watch floating inside a swirling cosmic nebula of purple and gold stardust, MIDRI ethereal atmosphere, surrealism."* | |
|  | |
| > *"A rustic sourdough loaf resting on a flour-dusted wooden table in a sun-drenched Provencal cottage kitchen, MIDRI hyper-realistic textures, soft bokeh."* | |
| ## Use it with diffusers | |
| ```py | |
| import torch | |
| from diffusers import Krea2Pipeline | |
| pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda") | |
| pipe.load_lora_weights("funseshon/midri") | |
| image = pipe("A futuristic cybernetic owl perched on a neon-lit skyscraper ledge in a rainy Tokyo alley, MIDRI cinematic lighting, 8k resolution.", num_inference_steps=8, guidance_scale=0.0).images[0] | |
| image.save("output.png") | |
| ``` | |