lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
40.08k stars 5.55k forks source link

[Feature Request]: Simple checkbox to exclude main prompt for inpaint #3116

Open Doa86 opened 3 months ago

Doa86 commented 3 months ago

Is there an existing issue for this?

What would your feature do?

Right now with both improve detail and modify content inpaint options, the main positive prompt is always sent as well as the 'additional prompt'. This means that if I'm inpainting and the model can't see most of the image, it will attempt to redraw the entire prompt in the inpaint mask area.

Would be nice to have a simple little checkbox next to the additional prompt field to only send the additional prompt and exclude the main prompt. This means I don't have to do copy and paste gymnastics in order to only send the additional prompt for inpainting without losing my current main prompt (or needing to get it back from history later).

Proposed workflow

  1. Go to Inpaint -> Improve Detail / Modify Content.
  2. Fill in the desired additional prompt and hit the 'Exclude Main Prompt' checkbox.
  3. The model is only supplied with the additional prompt and not the main prompt for the inpaint procedure.

Additional information

No response

Doa86 commented 3 months ago

This does beg the question as to how to deal with the style prompts and negative prompts with this option checked. Thinking about the use case, it's unlikely (though not impossible) someone would want to inpaint in a different style than they've selected for the rest of the image, so I would say it would make sense to still send the style prompts with the additional prompt.

Negative prompt is trickier, but I would lean towards still sending this as well, as there is no way to provide an 'additional negative prompt' and this has less impact on generations for SDXL.

DavidDragonsage commented 2 months ago

I think this would be great feature, and I agree it should only apply to the main prompt, not the negative prompt.

As it is, I often wipe out the main prompt before Inpainting to avoid the often freaky results of having the main prompt partially regenerated in the Inpainting area. But since Inpainting is often the last step in creating an image, I end up with a log entry that says "beautiful hands" for example, and lose the valuable main prompt information from the log.

I always keep copies of the original image with its log also, but that may mean I have to go digging to find it, which can be time consuming.

So I am suggesting that if this enhancement is added, the log and the metadata should still keep of copy of the full main prompt.