Dezgo

유료
분류별 dezgo | 업데이트됨 il y a un mois | Artificial Intelligence/Machine Learning
인기

9.6 / 10

지연 시간

7,584ms

서비스 수준

99%

Health Check

N/A

모든 토론으로 돌아가기

inpainting with prompt not working

Rapid account: Yazilimsalcozumler
yazilimsalcozumler
il y a un an

I sent prompt paramater to your service, but inpainting not filled with prompt. Returned image with filling like no prompt.
Please check it.

Rapid account: Dezgo
dezgo Commented il y a un an

Sorry for the late response. After extensive testing it seems that this particular case is a tricky one for the inpainting AI.
It seems to have some trouble with small objects relative to a bigger landscape.

Here are a few tips to improve your results:

  • prompt: photo of (a football ball)+++ on grass, casting a shadow: I used the prompt weighting syntax to increase the importance of the ball, relative to the grass. Mentioning additional details (like the shadow) can also guide the AI towards the intended direction.
  • mask image: I notice your mask had transparency on the outside, I transformed it to pure black&white, and also increased the white area a little bit (the inpainter likes to have some wiggle room). Like so: https://static.dezgo.com/samples/inpainting/football/mask_bigger.png
  • model: stablediffusion_inpaint_2 is generally smarter (will make it the default in next update)
  • sampler: euler (while the “euler_a” version works great for txt2img, it seems that this technique is less suited to inpainting, will make it the default in next update)
  • guidance: 15 increasing this is the equivalent of yelling at the AI to follow instructions more closely if it’s too stubborn

From my testing with these parameters the success rate seems higher:

The ball may be bigger due to the increased mask area, but you can try to play with words like “small”/“far” to correct that.

We will change the default settings for sampler and model in the next update to provide a better experience out of the box.

Rapid account: Yazilimsalcozumler
yazilimsalcozumler Commented il y a un an

Any news?

Rapid account: Yazilimsalcozumler
yazilimsalcozumler Commented il y a un an

Source Image:

Mask Image:

Prompt and negative prompt is below:

FormData {
_overheadLength: 938,
_valueLength: 445726,
_valuesToMeasure: [],
writable: false,
readable: true,
dataSize: 0,
maxDataSize: 2097152,
pauseStreams: true,
_released: false,
_streams: [
’----------------------------768589524261175199623268\r\n’ +
‘Content-Disposition: form-data; name=“init_image”\r\n’ +
‘Content-Type: application/octet-stream\r\n’ +
’\r\n’,
<Buffer 69 56 42 4f 52 77 30 4b 47 67 6f 41 41 41 41 4e 53 55 68 45 55 67 41 41 41 67 41 41 41 41 49 41 43 41 49 41 41 41 42 37 47 6b 4f 74 41 41 45 41 41 45 … 436014 more bytes>,
[Function: bound ],
’----------------------------768589524261175199623268\r\n’ +
‘Content-Disposition: form-data; name=“mask_image”\r\n’ +
‘Content-Type: application/octet-stream\r\n’ +
’\r\n’,
<Buffer 69 56 42 4f 52 77 30 4b 47 67 6f 41 41 41 41 4e 53 55 68 45 55 67 41 41 41 67 41 41 41 41 49 41 43 41 59 41 41 41 44 30 65 4e 54 36 41 41 41 41 41 58 … 9290 more bytes>,
[Function: bound ],
’----------------------------768589524261175199623268\r\n’ +
‘Content-Disposition: form-data; name=“prompt”\r\n’ +
’\r\n’,
‘landscape and football ball’,
[Function: bound ],
’----------------------------768589524261175199623268\r\n’ +
‘Content-Disposition: form-data; name=“upscale”\r\n’ +
’\r\n’,
‘1’,
[Function: bound ],
’----------------------------768589524261175199623268\r\n’ +
‘Content-Disposition: form-data; name=“steps”\r\n’ +
’\r\n’,
‘30’,
[Function: bound ],
’----------------------------768589524261175199623268\r\n’ +
‘Content-Disposition: form-data; name=“model”\r\n’ +
’\r\n’,
‘stablediffusion_inpaint_1’,
[Function: bound ],
’----------------------------768589524261175199623268\r\n’ +
‘Content-Disposition: form-data; name=“guidance”\r\n’ +
’\r\n’,
‘7’,
[Function: bound ],
’----------------------------768589524261175199623268\r\n’ +
‘Content-Disposition: form-data; name=“negative_prompt”\r\n’ +
’\r\n’,
‘ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, blurry, bad anatomy, blurred, watermark, grainy, signature, cut off, draft,out of frame, duplicate, watermark, signature, text’,
[Function: bound ]
],
_currentStream: null,
_insideLoop: false,
_pendingNext: false,
_boundary: ‘--------------------------768589524261175199623268’
}

Rapid account: Dezgo
dezgo Commented il y a un an

Hello!

Thank you for reaching out, I’m happy to assist you. In order to effectively investigate the issue, could you kindly provide the full set of parameters you used, including the prompt, init_image, and mask_image? Additionally, please share the output you received. This information will greatly aid in addressing your concern.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입