Instructions to use neuralvfx/LibreFlux-IP-Adapter-SAM-ControlNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use neuralvfx/LibreFlux-IP-Adapter-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-IP-Adapter-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
|
@@ -114,7 +114,7 @@ from huggingface_hub import hf_hub_download
|
|
| 114 |
from diffusers import DiffusionPipeline
|
| 115 |
from optimum.quanto import freeze, quantize, qint8
|
| 116 |
|
| 117 |
-
model_id = "neuralvfx/LibreFlux-IP-Adapter"
|
| 118 |
|
| 119 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 120 |
dtype = torch.bfloat16 if device == "cuda" else torch.float32
|
|
@@ -128,7 +128,7 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
| 128 |
)
|
| 129 |
|
| 130 |
# Optional way to download the weights
|
| 131 |
-
hf_hub_download(repo_id="neuralvfx/LibreFlux-IP-Adapter
|
| 132 |
filename="ip_adapter.pt",
|
| 133 |
local_dir=".",
|
| 134 |
local_dir_use_symlinks=False)
|
|
|
|
| 114 |
from diffusers import DiffusionPipeline
|
| 115 |
from optimum.quanto import freeze, quantize, qint8
|
| 116 |
|
| 117 |
+
model_id = "neuralvfx/LibreFlux-IP-Adapter-ControlNet"
|
| 118 |
|
| 119 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 120 |
dtype = torch.bfloat16 if device == "cuda" else torch.float32
|
|
|
|
| 128 |
)
|
| 129 |
|
| 130 |
# Optional way to download the weights
|
| 131 |
+
hf_hub_download(repo_id="neuralvfx/LibreFlux-IP-Adapter-ControlNet,
|
| 132 |
filename="ip_adapter.pt",
|
| 133 |
local_dir=".",
|
| 134 |
local_dir_use_symlinks=False)
|