Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files- flux1_img2img.py +1 -1
flux1_img2img.py
CHANGED
@@ -21,7 +21,7 @@ def process_image(image,mask_image,prompt="a person",model_id="black-forest-labs
|
|
21 |
# more parameter see https://huggingface.co/docs/diffusers/api/pipelines/flux#diffusers.FluxInpaintPipeline
|
22 |
print(prompt)
|
23 |
output = pipe(prompt=prompt, image=image,generator=generator,strength=strength
|
24 |
-
,guidance_scale=0,num_inference_steps=num_inference_steps,max_sequence_length=
|
25 |
|
26 |
# TODO support mask
|
27 |
return output.images[0]
|
|
|
21 |
# more parameter see https://huggingface.co/docs/diffusers/api/pipelines/flux#diffusers.FluxInpaintPipeline
|
22 |
print(prompt)
|
23 |
output = pipe(prompt=prompt, image=image,generator=generator,strength=strength
|
24 |
+
,guidance_scale=0,num_inference_steps=num_inference_steps,max_sequence_length=256)
|
25 |
|
26 |
# TODO support mask
|
27 |
return output.images[0]
|