Model not worked

#6
by xttttttttt - opened

I installed diffusers from the source code and ran experiments using dog and dog_mask in images. I found that the model still modified the entire image without any control
Code is:
res_image = pipe(
negative_prompt="deformed, distorted, disfigured, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, mutated hands and fingers, disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, NSFW",
prompt=prompt,
height=height,
width=width,
control_image=image,
control_mask=mask,
num_inference_steps=28,
generator=generator,
controlnet_conditioning_scale=0.95,
guidance_scale=20,
).images[0]

inpainting_0.jpg
nothing happened.
if guidance_scale is set to 50 or bigger, result will be
inpainting_0 (1).jpg

alimama-creative org

According to experience, it's best to keep the guidance scale between 6 and 9; exceeding this range may worsen the results. Could you please post your complete code?

ljp changed discussion status to closed

Sign up or log in to comment