Instructions to use Lonuhbow/beth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Lonuhbow/beth 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("Lonuhbow/beth") prompt = "A cinematic portrait of Beth1 as a cyberpunk hacker in a neon-drenched Tokyo alleyway, surrounded by holographic displays." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,75 +1,106 @@
|
|
| 1 |
---
|
| 2 |
-
base_model:
|
| 3 |
-
- krea/Krea-2-Turbo
|
| 4 |
-
- krea/Krea-2-Raw
|
| 5 |
-
library_name: diffusers
|
| 6 |
-
license: apache-2.0
|
| 7 |
-
instance_prompt: Beth1
|
| 8 |
-
widget: []
|
| 9 |
tags:
|
| 10 |
- text-to-image
|
| 11 |
-
- diffusers-training
|
| 12 |
- diffusers
|
| 13 |
- lora
|
| 14 |
- krea2
|
| 15 |
-
- krea2-diffusers
|
| 16 |
- template:sd-lora
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
-
|
| 20 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 21 |
|
|
|
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
-
>>> import torch
|
| 47 |
-
>>> from diffusers import Krea2Pipeline
|
| 48 |
|
| 49 |
-
|
| 50 |
-
>>> pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
|
| 51 |
-
>>> pipe.load_lora_weights("Lonuhbow/beth")
|
| 52 |
|
| 53 |
-
>
|
| 54 |
-
>>> image = pipe("Beth1", num_inference_steps=8, guidance_scale=0.0).images[0]
|
| 55 |
-
>>> image.save("output.png")
|
| 56 |
-
```
|
| 57 |
|
| 58 |
-
|
| 59 |
|
|
|
|
| 60 |
|
| 61 |
-
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
-
|
| 66 |
-
# TODO: add an example code snippet for running this diffusion pipeline
|
| 67 |
-
```
|
| 68 |
|
| 69 |
-
|
| 70 |
|
| 71 |
-
[
|
| 72 |
|
| 73 |
-
|
| 74 |
|
| 75 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: krea/Krea-2-Raw
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
- text-to-image
|
|
|
|
| 5 |
- diffusers
|
| 6 |
- lora
|
| 7 |
- krea2
|
|
|
|
| 8 |
- template:sd-lora
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
instance_prompt: "Beth1"
|
| 11 |
+
widget:
|
| 12 |
+
- text: "A cinematic portrait of Beth1 as a cyberpunk hacker in a neon-drenched Tokyo alleyway, surrounded by holographic displays."
|
| 13 |
+
output:
|
| 14 |
+
url: sample_0.png
|
| 15 |
+
- text: "Beth1 dressed as a regal Victorian queen, sitting on an ornate gold throne in a grand marble ballroom."
|
| 16 |
+
output:
|
| 17 |
+
url: sample_1.png
|
| 18 |
+
- text: "A high-action shot of Beth1 as an astronaut floating in zero gravity inside a futuristic space station overlooking Saturn."
|
| 19 |
+
output:
|
| 20 |
+
url: sample_2.png
|
| 21 |
+
- text: "Beth1 as a whimsical forest sprite with iridescent wings, perched on a giant glowing mushroom in a mystical woodland."
|
| 22 |
+
output:
|
| 23 |
+
url: sample_3.png
|
| 24 |
+
- text: "A gritty, black-and-white noir scene featuring Beth1 as a 1940s detective standing under a streetlamp in the rain."
|
| 25 |
+
output:
|
| 26 |
+
url: sample_4.png
|
| 27 |
+
- text: "Beth1 as a professional deep-sea diver exploring a bioluminescent coral reef with colorful alien fish."
|
| 28 |
+
output:
|
| 29 |
+
url: sample_5.png
|
| 30 |
+
- text: "A vibrant oil painting of Beth1 as a Renaissance scholar in a dusty library filled with ancient scrolls."
|
| 31 |
+
output:
|
| 32 |
+
url: sample_6.png
|
| 33 |
+
- text: "Beth1 as a post-apocalyptic scavenger wearing rusted armor, standing atop a ruined skyscraper in a desert wasteland."
|
| 34 |
+
output:
|
| 35 |
+
url: sample_7.png
|
| 36 |
+
- text: "A cozy, sun-drenched scene of Beth1 baking bread in a rustic French country kitchen with flour in the air."
|
| 37 |
+
output:
|
| 38 |
+
url: sample_8.png
|
| 39 |
+
- text: "Beth1 as a powerful sorceress casting a swirling vortex of cosmic energy amidst a field of floating crystals."
|
| 40 |
+
output:
|
| 41 |
+
url: sample_9.png
|
| 42 |
---
|
| 43 |
|
| 44 |
+
# Krea 2 LoRA — Lonuhbow/beth
|
|
|
|
| 45 |
|
| 46 |
+
<Gallery />
|
| 47 |
|
| 48 |
+
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).
|
| 49 |
|
| 50 |
+
## Trigger
|
| 51 |
|
| 52 |
+
Use the token `Beth1` to invoke the concept.
|
| 53 |
|
| 54 |
+
## Samples
|
| 55 |
|
| 56 |
+

|
| 57 |
|
| 58 |
+
> *"A cinematic portrait of Beth1 as a cyberpunk hacker in a neon-drenched Tokyo alleyway, surrounded by holographic displays."*
|
| 59 |
|
| 60 |
+

|
| 61 |
|
| 62 |
+
> *"Beth1 dressed as a regal Victorian queen, sitting on an ornate gold throne in a grand marble ballroom."*
|
| 63 |
|
| 64 |
+

|
| 65 |
|
| 66 |
+
> *"A high-action shot of Beth1 as an astronaut floating in zero gravity inside a futuristic space station overlooking Saturn."*
|
| 67 |
|
| 68 |
+

|
| 69 |
|
| 70 |
+
> *"Beth1 as a whimsical forest sprite with iridescent wings, perched on a giant glowing mushroom in a mystical woodland."*
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+

|
|
|
|
|
|
|
| 73 |
|
| 74 |
+
> *"A gritty, black-and-white noir scene featuring Beth1 as a 1940s detective standing under a streetlamp in the rain."*
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+

|
| 77 |
|
| 78 |
+
> *"Beth1 as a professional deep-sea diver exploring a bioluminescent coral reef with colorful alien fish."*
|
| 79 |
|
| 80 |
+

|
| 81 |
|
| 82 |
+
> *"A vibrant oil painting of Beth1 as a Renaissance scholar in a dusty library filled with ancient scrolls."*
|
| 83 |
|
| 84 |
+

|
|
|
|
|
|
|
| 85 |
|
| 86 |
+
> *"Beth1 as a post-apocalyptic scavenger wearing rusted armor, standing atop a ruined skyscraper in a desert wasteland."*
|
| 87 |
|
| 88 |
+

|
| 89 |
|
| 90 |
+
> *"A cozy, sun-drenched scene of Beth1 baking bread in a rustic French country kitchen with flour in the air."*
|
| 91 |
|
| 92 |
+

|
| 93 |
+
|
| 94 |
+
> *"Beth1 as a powerful sorceress casting a swirling vortex of cosmic energy amidst a field of floating crystals."*
|
| 95 |
+
|
| 96 |
+
## Use it with diffusers
|
| 97 |
+
|
| 98 |
+
```py
|
| 99 |
+
import torch
|
| 100 |
+
from diffusers import Krea2Pipeline
|
| 101 |
+
|
| 102 |
+
pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
|
| 103 |
+
pipe.load_lora_weights("Lonuhbow/beth")
|
| 104 |
+
image = pipe("A cinematic portrait of Beth1 as a cyberpunk hacker in a neon-drenched Tokyo alleyway, surrounded by holographic displays.", num_inference_steps=8, guidance_scale=0.0).images[0]
|
| 105 |
+
image.save("output.png")
|
| 106 |
+
```
|