How to use alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0]
I try the model with the given prompt, but got bad result with demo.
我遇到了和你一样的问题,把main.py里的true_guidance_scale改成3.5就和官方一样了
· Sign up or log in to comment