Instructions to use neuralvfx/LibreFlux-SAM-ControlNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use neuralvfx/LibreFlux-SAM-ControlNet with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("neuralvfx/LibreFlux-SAM-ControlNet", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,14 +10,15 @@ Work in progress. Not fully functional yet. Code is being transferred and adapte
|
|
| 10 |
### Compatibility
|
| 11 |
|
| 12 |
- Use these specific library versions:
|
| 13 |
-
```
|
| 14 |
pip install -U diffusers==0.32.0
|
| 15 |
pip install -U "transformers @ git+https://github.com/huggingface/transformers@e15687fffe5c9d20598a19aeab721ae0a7580f8a"
|
| 16 |
```
|
| 17 |
|
| 18 |
### Load Pipeline
|
| 19 |
|
| 20 |
-
```
|
|
|
|
| 21 |
from diffusers import DiffusionPipeline
|
| 22 |
|
| 23 |
model_id = "neuralvfx/LibreFlux-ControlNet"
|
|
@@ -36,7 +37,8 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
| 36 |
|
| 37 |
### Inference
|
| 38 |
|
| 39 |
-
```
|
|
|
|
| 40 |
# Load Control Image
|
| 41 |
cond = Image.open("examples/libe_flux_control.png")
|
| 42 |
cond = cond.resize((1024, 1024))
|
|
|
|
| 10 |
### Compatibility
|
| 11 |
|
| 12 |
- Use these specific library versions:
|
| 13 |
+
```py
|
| 14 |
pip install -U diffusers==0.32.0
|
| 15 |
pip install -U "transformers @ git+https://github.com/huggingface/transformers@e15687fffe5c9d20598a19aeab721ae0a7580f8a"
|
| 16 |
```
|
| 17 |
|
| 18 |
### Load Pipeline
|
| 19 |
|
| 20 |
+
```py
|
| 21 |
+
import torch
|
| 22 |
from diffusers import DiffusionPipeline
|
| 23 |
|
| 24 |
model_id = "neuralvfx/LibreFlux-ControlNet"
|
|
|
|
| 37 |
|
| 38 |
### Inference
|
| 39 |
|
| 40 |
+
```py
|
| 41 |
+
from PIL import Image
|
| 42 |
# Load Control Image
|
| 43 |
cond = Image.open("examples/libe_flux_control.png")
|
| 44 |
cond = cond.resize((1024, 1024))
|