Instructions to use CodeGoat24/FLUX.1-dev-PrefGRPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CodeGoat24/FLUX.1-dev-PrefGRPO with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("CodeGoat24/FLUX.1-dev-PrefGRPO", 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,9 +50,9 @@ image = pipe(
|
|
| 50 |
height=1024,
|
| 51 |
width=1024,
|
| 52 |
guidance_scale=3.5,
|
| 53 |
-
num_inference_steps=
|
| 54 |
max_sequence_length=512,
|
| 55 |
-
generator=torch.Generator("cpu").manual_seed(
|
| 56 |
).images[0]
|
| 57 |
image.save("flux-dev.png")
|
| 58 |
|
|
|
|
| 50 |
height=1024,
|
| 51 |
width=1024,
|
| 52 |
guidance_scale=3.5,
|
| 53 |
+
num_inference_steps=30,
|
| 54 |
max_sequence_length=512,
|
| 55 |
+
generator=torch.Generator("cpu").manual_seed(3407)
|
| 56 |
).images[0]
|
| 57 |
image.save("flux-dev.png")
|
| 58 |
|