Instructions to use Octree/flux-schnell-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Octree/flux-schnell-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Octree/flux-schnell-lora") prompt = "A beautiful woman with a slight warming smile in a bustling cafe, 4k [be4u7y]" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- text-to-image
|
| 4 |
+
- flux
|
| 5 |
+
- lora
|
| 6 |
+
- diffusers
|
| 7 |
+
- template:sd-lora
|
| 8 |
+
- ai-toolkit
|
| 9 |
+
widget:
|
| 10 |
+
- text: A beautiful woman with a slight warming smile in a bustling cafe, 4k [be4u7y]
|
| 11 |
+
output:
|
| 12 |
+
url: samples/1725591711175__000001000_0.jpg
|
| 13 |
+
base_model: black-forest-labs/FLUX.1-schnell
|
| 14 |
+
instance_prompt: be4u7y
|
| 15 |
+
license: apache-2.0
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# flux-schnell-lora
|
| 21 |
+
Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit)
|
| 22 |
+
<Gallery />
|
| 23 |
+
|
| 24 |
+
## Trigger words
|
| 25 |
+
|
| 26 |
+
You should use `be4u7y` to trigger the image generation.
|
| 27 |
+
|
| 28 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
|
| 29 |
+
|
| 30 |
+
Weights for this model are available in Safetensors format.
|
| 31 |
+
|
| 32 |
+
[Download](/Octree/flux-schnell-lora/tree/main) them in the Files & versions tab.
|
| 33 |
+
|
| 34 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
| 35 |
+
|
| 36 |
+
```py
|
| 37 |
+
from diffusers import AutoPipelineForText2Image
|
| 38 |
+
import torch
|
| 39 |
+
|
| 40 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cuda')
|
| 41 |
+
pipeline.load_lora_weights('Octree/flux-schnell-lora', weight_name='flux-schnell-lora')
|
| 42 |
+
image = pipeline('A beautiful woman with a slight warming smile in a bustling cafe, 4k [be4u7y]').images[0]
|
| 43 |
+
image.save("my_image.png")
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
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)
|
| 47 |
+
|
flux-schnell-lora.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0095ed1114bffb0d1c00b68763ac81ed811695c3a2e2383bde341ae820ef0088
|
| 3 |
+
size 171969416
|
flux-schnell-lora_000000250.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:192abae301fac2d9029a48e5fc97924ef020d228ff5bfff8e1225d12520ff42f
|
| 3 |
+
size 171969408
|
flux-schnell-lora_000000500.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9198956943ff488fd25393a75755bdc2d6f07358fd76016be291032f121b2e0f
|
| 3 |
+
size 171969408
|
flux-schnell-lora_000000750.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84a24958d5f947a3e30f54f9f7b4e195d8176d8b55d754fdd319ef6785fdcec3
|
| 3 |
+
size 171969408
|
samples/1725590756967__000001000_0.jpg
ADDED
|
samples/1725591711175__000001000_0.jpg
ADDED
|