Instructions to use Eggsbena/eggs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Eggsbena/eggs 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", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Eggsbena/eggs") prompt = "A majestic snow leopard leaping across a jagged Himalayan cliffside during a swirling blizzard, captured in hyper-realistic detail e6gz" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
End of training
Browse files- README.md +73 -0
- checkpoint-1000/optimizer.bin +3 -0
- checkpoint-1000/pytorch_lora_weights.safetensors +3 -0
- checkpoint-1000/random_states_0.pkl +3 -0
- checkpoint-1000/scheduler.bin +3 -0
- checkpoint-500/optimizer.bin +3 -0
- checkpoint-500/pytorch_lora_weights.safetensors +3 -0
- checkpoint-500/random_states_0.pkl +3 -0
- checkpoint-500/scheduler.bin +3 -0
- pytorch_lora_weights.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: krea/Krea-2-Raw
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
instance_prompt: e6gz
|
| 6 |
+
widget: []
|
| 7 |
+
tags:
|
| 8 |
+
- text-to-image
|
| 9 |
+
- diffusers-training
|
| 10 |
+
- diffusers
|
| 11 |
+
- lora
|
| 12 |
+
- krea2
|
| 13 |
+
- krea2-diffusers
|
| 14 |
+
- template:sd-lora
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
<!-- This model card has been generated automatically according to the information the training script had access to. You
|
| 18 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
# Krea 2 DreamBooth LoRA - Eggsbena/eggs
|
| 22 |
+
|
| 23 |
+
<Gallery />
|
| 24 |
+
|
| 25 |
+
## Model description
|
| 26 |
+
|
| 27 |
+
These are Eggsbena/eggs DreamBooth LoRA weights, trained on krea/Krea-2-Raw.
|
| 28 |
+
|
| 29 |
+
The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [Krea 2 diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_krea2.md).
|
| 30 |
+
|
| 31 |
+
Krea 2 ships as two checkpoints: **RAW** (the non-distilled base you fine-tune on) and **Turbo** (an 8-step distilled checkpoint for fast, high-quality inference). Train your LoRA on RAW and run it on Turbo — LoRAs trained on RAW express strongly on Turbo.
|
| 32 |
+
|
| 33 |
+
## Trigger words
|
| 34 |
+
|
| 35 |
+
You should use `e6gz` to trigger the image generation.
|
| 36 |
+
|
| 37 |
+
## Download model
|
| 38 |
+
|
| 39 |
+
[Download the *.safetensors LoRA](Eggsbena/eggs/tree/main) in the Files & versions tab.
|
| 40 |
+
|
| 41 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
| 42 |
+
|
| 43 |
+
```py
|
| 44 |
+
>>> import torch
|
| 45 |
+
>>> from diffusers import Krea2Pipeline
|
| 46 |
+
|
| 47 |
+
>>> # Load the LoRA onto Krea 2 Turbo (the distilled inference model)
|
| 48 |
+
>>> pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
|
| 49 |
+
>>> pipe.load_lora_weights("Eggsbena/eggs")
|
| 50 |
+
|
| 51 |
+
>>> # Turbo recipe: 8 steps, no classifier-free guidance
|
| 52 |
+
>>> image = pipe("e6gz", num_inference_steps=8, guidance_scale=0.0).images[0]
|
| 53 |
+
>>> image.save("output.png")
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
## Intended uses & limitations
|
| 60 |
+
|
| 61 |
+
#### How to use
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
# TODO: add an example code snippet for running this diffusion pipeline
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
#### Limitations and bias
|
| 68 |
+
|
| 69 |
+
[TODO: provide examples of latent issues and potential remediations]
|
| 70 |
+
|
| 71 |
+
## Training details
|
| 72 |
+
|
| 73 |
+
[TODO: describe the data used to train the model]
|
checkpoint-1000/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9a8bae04251f64cbd19d6c79333fbf1648b7417e11e5f1167470d8b9ebbf791
|
| 3 |
+
size 195389021
|
checkpoint-1000/pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df2738b64ac297ba1d1ff6c664fe8b09f13876240a084b095fe603c605b079c8
|
| 3 |
+
size 191879256
|
checkpoint-1000/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f6e746f62b3526bef1eef6388fba38761b3ea5beb4496cf69ff003d0bcfdd18
|
| 3 |
+
size 14757
|
checkpoint-1000/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95d5da8195335d4ea322bbf2d1a3e2e6db077cf77404469c5cb95a451f7e56fa
|
| 3 |
+
size 1401
|
checkpoint-500/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0edab840d5d9a30dc46a82bdbdb25a2f1d9828a1dbe8b1973cca3b7024dffe4b
|
| 3 |
+
size 195389021
|
checkpoint-500/pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7cf139026d51baa01ec7d3547e70f397df316d5cf68194f59e6f9c887135db86
|
| 3 |
+
size 191879256
|
checkpoint-500/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cf13af8cbad42848571dabc6494da91a014b7cfa1a3def5bd82dc2c3b2458a4
|
| 3 |
+
size 14757
|
checkpoint-500/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6b09a32f9bd8c3811caf53e7088f9d0094eade3af68c322a05eb696814b1a19
|
| 3 |
+
size 1401
|
pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40ed7386133f0fbeacd2ab0961688b5e7787887fa10cba194952edd42f19e0e2
|
| 3 |
+
size 191879256
|