Replies: 1 comment 3 replies
-
Quickly answering right now cause I'm on my phone but I've read it all and I would use the second image then raise the denoising strength and steps in the final blend so the leftovers are reworked into something else. Also trying to find a prompt where this gray ground does not appear would of course help. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I seem to be having a lot of difficulty with background cutting regardless of the prompts or settings being used. I can't get a middle ground between having enough background removed to not need high enough steps/denoise that all my characters become the same even when vastly different or otherwise having it look like a pasted on stone.
The
bad_prompt:0.8
is from the bad_prompt embedding, it's basically an embedding trained on default NAI negative prompt. I can not provide the model I am using however it is based upon ChiNAI (Anything V3). Despite this I seem to have this problem across most models I've tried.Prompt:
masterpiece, best quality, bedroom
Negative prompt:
(bad_prompt:0.8),artist name,missing anatomy,extra anatomy,missing toe,extra toe,extra fingers,thick lips,sweat,disfigured,deformed,malformed,mutant,monstrous,ugly,gross,disgusting,man,male,boy,old,fat,obese,out of frame,poorly drawn,extra limbs,missing limbs,duplicate,morbid,mutated,poorly drawn,long neck,long body,poorly drawn
Sampling:
28
Sampler:
Euler a
CFG Scale:
9
Seed:
313617661
Size: 512x512
Foreground prompt:
masterpiece,best quality,(wide angle),SFW,full body,portrait,medium hair,pink hair,cat ears,cat tail,red eyes,blue dress,sitting,:d,(bokeh),(f1.8:1.2)
Foreground images:
1
Foreground steps:
28
Foreground CFG Scale:
12.5
Foreground Sampler:
Euler a
Foreground Width:
64
Foreground Height:
896
Final Blend Prompt:
masterpiece, best quality, SFW, girl, cat ears, cat tail, bedroom
Blend Steps:
70
Blend CFG Scale:
7.5
Blend Denoising Strength:
.42
Blend Sampler:
DPM++ 2M Karras
Blend Width:
1536
Blend Height:
896
Foreground Depth Cut Threshold:
70
I'm only doing one foreground image for the sake of simplicity in identifying the issue, I don't really expect that it line up perfectly in this case. Images in order are background, foreground, blended.
There's quite a lot of background that does not get cut out in this case. If I take the Foreground Depth Cut Threshold to 160 instead of 70 I can finally get most of my foreground character on her own.
At this point however it doesn't seem to be enough to simply increase blending steps or denoising strength, because although going higher can help with this going higher also causes my characters to all become very similar if I'm using more than one. Increasing the Foreground Depth Cut Thereshold further is of no benefit because I eventually reach a point where I'm also cutting the character out. This is at 170, there's still background but it's begun to cut the character.
I've tried all the different samplers for each step as well as Clip Skip 1 and 2 for each step. I've tried keeping everything at 512px except for final blend width in case it was an issue of higher resolution outputs. Changing the Blend CFG Scale can occasionally have some stronger impact. I've tried variations to the bokeh and f1.8 that are suggested and occasionally I can get better cuts without them entirely but rarely so. Seems most of my best cuts are when I assign a similar background to the foreground prompt and it comes out close enough to the background to be denoised together sensibly but that's next to impossible to perform reliably with more than a single foreground. There may be some typos here that are inaccurate to anything actually done since I'm exhausted and spent an hour writing this so please bear that in mind. Any advice?
Beta Was this translation helpful? Give feedback.
All reactions