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
|
@@ -38,7 +38,7 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
| 38 |
```py
|
| 39 |
from PIL import Image
|
| 40 |
# Load Control Image
|
| 41 |
-
cond = Image.open("examples/
|
| 42 |
cond = cond.resize((1024, 1024))
|
| 43 |
|
| 44 |
# Convert PIL image to tensor and move to device with correct dtype
|
|
|
|
| 38 |
```py
|
| 39 |
from PIL import Image
|
| 40 |
# Load Control Image
|
| 41 |
+
cond = Image.open("examples/libre_flux_control_image.png")
|
| 42 |
cond = cond.resize((1024, 1024))
|
| 43 |
|
| 44 |
# Convert PIL image to tensor and move to device with correct dtype
|