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
|
@@ -50,7 +50,7 @@ from PIL import Image
|
|
| 50 |
from torchvision.transforms import ToTensor
|
| 51 |
|
| 52 |
# Load Control Image
|
| 53 |
-
cond = Image.open("libre_flux_control_image.png")
|
| 54 |
cond = cond.resize((1024, 1024))
|
| 55 |
|
| 56 |
# Convert PIL image to tensor and move to device with correct dtype
|
|
|
|
| 50 |
from torchvision.transforms import ToTensor
|
| 51 |
|
| 52 |
# Load Control Image
|
| 53 |
+
cond = Image.open("examples/libre_flux_control_image.png")
|
| 54 |
cond = cond.resize((1024, 1024))
|
| 55 |
|
| 56 |
# Convert PIL image to tensor and move to device with correct dtype
|