Skip to content

Commit 357148c

Browse files
authored
Update main.py
1 parent 7c00862 commit 357148c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Build pipeline
1515
controlnet = FluxControlNetModel.from_pretrained("alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha", torch_dtype=torch.bfloat16)
1616
transformer = FluxTransformer2DModel.from_pretrained(
17-
"black-forest-labs/FLUX.1-dev", subfolder='transformer', torch_dytpe=torch.bfloat16
17+
"black-forest-labs/FLUX.1-dev", subfolder='transformer', torch_dtype=torch.bfloat16
1818
)
1919
pipe = FluxControlNetInpaintingPipeline.from_pretrained(
2020
"black-forest-labs/FLUX.1-dev",
@@ -43,7 +43,7 @@
4343
controlnet_conditioning_scale=0.9,
4444
guidance_scale=3.5,
4545
negative_prompt="",
46-
true_guidance_scale=3.5
46+
true_guidance_scale=1.0 # default: 3.5 for alpha and 1.0 for beta
4747
).images[0]
4848

4949
result.save('flux_inpaint.png')

0 commit comments

Comments
 (0)