AI background solid color
Mouser
Posts: 675
I am trying to get a picture of characters & props but with a solid single color background for some chroma key but no luck.
Has anyone else had any luck?
Comments
I have tried a couple of prompts and could not get any solid color on the backgroud.
I think a content aware editing program would be an option here.
The closest I've seen is a gradient color without using a background prompt. The problem is that it's a random color, so if you're looking for a specific color, you're out of luck. I have noticed that trying different combinations of prompts can give results closer to what you want. For instance, changing the order of the prompts (bathing woman instead of woman bathing).
I have just edited selection in the Gimp and got this:
Still needs some more edits, but for testing is good for me.
You might also try adding "greenscreen background" to the prompt (I put it at the end) and that sort of worked. I use Photoshop Elements for post work and it does a fairly good job of selecting the subject in an image. Once the selection is made, I invert it and clear the now selected background - assuming it got the subject selected properly in the first place. :)
Lee
I have tried to add "greenscreen background" at the end of prompt and in some cases at the beginning,
but have not received any flat background.
The images generated by AI are still cool looking, for example:
I get solid background wen I select Victoria 9 on products. Enven with this description "beautiful radiant colors background" second picture is with Victoria 9 no selected.
Edit: You can still get some image with background try no include background description on the text.
I tested the same prompt with and without Victoria 9 LoRA .
Adding the Victoria LoRA does have a high chance to add monochrome backgrounds.
Without Victoria 9 LoRA:
With Victoria 9 LoRA:
In this example the monochrome color turns out grayscale because of the specific black & white prompt.
My hope or guess is that they might add a slider to adjust the strength of the applied LoRA in future updates of Daz AI Studio.
Those who want a monochrome background would be able to get it by setting LoRA strength to 1.
Those who do not want monochrome backgrounds would be able to reduce the chance of the effect triggering by reducing LoRA strength to 0.6 - 0.8.
Why does the Victoria 9 LoRA trigger monochrome backgrounds?
This monochrome background effect may happen in this example because the Victoria 9 LoRA probably was trained with a lot of promo images who feature monochrome backgrounds.
If the goal is to remove this side-effect then a large number of images with environment backgrounds could be added to the pool of training material.
Inpainting
To be able to create true "solid color" backgrounds advanced features like Inpainting and layers may be required.
Then you could combine the selected subject with a solid color background layer.
Users may be able to export a selected subject with a transparent background as .png with an alpha layer.
The basic idea of Inpaiting is to draw rough masks around subjects.
Segment Anything Model (SAM)
One way to isolate the subject from the background with the help of AI is to use a Segment Anything Model.
The user can left click on the subject to add a point in an area that should be selected.
The user can right click on the background to add a point in an area that should be removed.
Maybe they will add a SAM Model when Inpainting is added to Daz AI Studio?
Which solid background color should I use?
Make sure to check or test which background color works best with the application you want to use to separate the subject from the background.
greenscreen - bluescreen
Traditionally greenscreen or bluescreen is used on movie sets to isolate subjects from the background.
The downside of that method is that you may get color bleeding of green or blue color in other areas that also need to be removed.
You may need to check if your preferred application has options to deal with that additional challenge.
solid black
Some software applications interpret a solid black background as transparent.
Can be tricky to work with if your character has a darker skin tone.
If the solid background is not 100% black going with dark monochrome shades may yield worse results than light monochrome shades.
50% gray
Is often used in photo studio backgrounds.
Can yield quick results with certain blend modes in Photoshop if the background color is near #808080
solid white
Aiming for a solid white background color may work for a large number of cases.
I mostly add "white background," to the prompt to generate images with a light grayscale background.
AI can't understand the "director language", as "green screen" or "solid white background", among many other things as "full figure shot" or any camera direction. This AI thing is totally dumb and unuseful to me there isn't any possible control as for directing the shot. It may be good for people who want some nice image as screen saver.
It would be handy if they could include a chroma key option/button in the interface including prefered background colour or transparency.
Very early days.