Instructions to use HaileyStorm/FLUX.1-Merges with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use HaileyStorm/FLUX.1-Merges with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("HaileyStorm/FLUX.1-Merges", 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 infer.py
Browse files
infer.py
CHANGED
|
@@ -4,8 +4,8 @@ import os
|
|
| 4 |
|
| 5 |
# Configuration
|
| 6 |
MODEL_DIR = "./merged_models/10_1"
|
| 7 |
-
IMAGE_OUTPUT_DIR = "./
|
| 8 |
-
IMAGE_PREFIX = "
|
| 9 |
DEVICE = torch.device("cpu")
|
| 10 |
# If True, uses pipeline.enable_sequential_cpu_offload(). Make sure device is CPU.
|
| 11 |
USE_CPU_OFFLOAD = True
|
|
|
|
| 4 |
|
| 5 |
# Configuration
|
| 6 |
MODEL_DIR = "./merged_models/10_1"
|
| 7 |
+
IMAGE_OUTPUT_DIR = "./flowers"
|
| 8 |
+
IMAGE_PREFIX = "flowers_10_1"
|
| 9 |
DEVICE = torch.device("cpu")
|
| 10 |
# If True, uses pipeline.enable_sequential_cpu_offload(). Make sure device is CPU.
|
| 11 |
USE_CPU_OFFLOAD = True
|