# Removing Backgrounds

{% hint style="info" %}

* *Not currently compatible with ControlNet*&#x20;
* *Not directly compatible with inpaint/outpaint gens*
  {% endhint %}

There's two methods for using Remove Background currently. The first is to just remove the background from an image and save or use the image that way. The second is to use it while generating a new image, and it will generate a new background with the same character in it.

You can also use it in the paint tab, but the options are currently very limited

The first time you use one of the background removal options it will need to download a model for it.\
There's not much user feedback currently but it is working. \
Larger images will take longer to finish.

## Removing a Background

The first method is done by;&#x20;

1. Placing a starting image in the given space
2. Opening up the remove Background tab and choosing between the three settings
3. Clicking the preview button
4. And saving the image

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2Fe4g9OZo2XfGVG1Gys6fZ%2F001.png?alt=media&#x26;token=986152e5-d871-461a-871d-68bdbfdbc914" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Base Image" %}

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2FgwBXxrjeTrj8RNwWK3F8%2F002.png?alt=media&#x26;token=1bebd1ad-9858-402a-8365-7bc6520911ad" alt=""><figcaption><p>Preview of the base image</p></figcaption></figure>
{% endtab %}

{% tab title="Face" %}

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2FduMsUR6DFgproYbdpzKu%2F003face.png?alt=media&#x26;token=3b5f1c4c-c947-4a8c-b21a-bc327afb298e" alt=""><figcaption><p>Preview of the face model</p></figcaption></figure>
{% endtab %}

{% tab title="Standard" %}

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2FsxcW3r76mEhrTcHcUbnZ%2F004standard.png?alt=media&#x26;token=64263159-3470-4a09-a461-60c2f7aa06ca" alt=""><figcaption><p>Preview of the Standard model</p></figcaption></figure>
{% endtab %}

{% tab title="Human" %}

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2FFhOc13aep0qa2KXcP8oJ%2F005human.png?alt=media&#x26;token=9aa6e28b-3959-480b-96da-e2b59ee37984" alt=""><figcaption><p>Preview of the Human model</p></figcaption></figure>
{% endtab %}
{% endtabs %}

If all you wanted to do is get rid of the background, you can find the modified image in a folder within the same location as your output folder.

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2F2j60S8vD9P1p9ODN0bp0%2F006.png?alt=media&#x26;token=24227840-d76f-4f2d-aac3-f2982dd6e989" alt=""><figcaption></figcaption></figure>

## Adding a New Background

If you want to take it a step further, you can use the image with a removed background in a newly generated image, placing your cutout character in a new scene. Turn on "Remove Background in Gen"

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2FbhauMJAVfm0201MRwza1%2F007.png?alt=media&#x26;token=b0da7db7-d089-429c-8323-08e14cdf4349" alt=""><figcaption></figcaption></figure>

It will remove the background in the starting image before generating a new image with the cut-out subject in a new setting that's been prompted. Leaving the character much more intact while swapping their scenery compared to a standard image to image.

(Steps to take)&#x20;

1. Add a starting image.&#x20;
2. Choose removal mode.&#x20;
3. Check the box for "Remove Background in Gen"&#x20;
4. Add prompts for background of choice.&#x20;
5. Run the job.

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2FcR6dZ5jLEMBgjIilXBbe%2F008.png?alt=media&#x26;token=f7fdf52e-489c-4332-bef1-26ce8bc96db1" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Base Image" %}

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2FgwBXxrjeTrj8RNwWK3F8%2F002.png?alt=media&#x26;token=1bebd1ad-9858-402a-8365-7bc6520911ad" alt=""><figcaption><p>Base image preview</p></figcaption></figure>
{% endtab %}

{% tab title="RemoveBG On" %}

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2Flx4AyRnDPuCliUSKpYrK%2F009.png?alt=media&#x26;token=a3e07e0a-9b01-4e81-ade1-e998ee87c8d3" alt=""><figcaption><p>With Remove Background in Gen On</p></figcaption></figure>
{% endtab %}

{% tab title="RemoveBG Off" %}

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2Fk6r1cOlxyE0JKjzXN2Eo%2F010.png?alt=media&#x26;token=3c230b80-7f5b-41aa-b764-ee6b5db670fa" alt=""><figcaption><p>With Remove Background in Gen Off</p></figcaption></figure>
{% endtab %}
{% endtabs %}

Using an image with the background already removed as a starting image doesn't work as well. The transparency just gets filled with black.

<figure><img src="https://1638460590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrvmkNlt2cT7tVvQkddJ%2Fuploads%2FKwuvpTz1qJ7HqXAX7tmM%2F011.png?alt=media&#x26;token=18facd13-805e-43bb-8595-e7000d436f11" alt=""><figcaption></figcaption></figure>

## Paint Tab Remove Background&#x20;

Trying to use the "Remove Background in Gen" option **will not work**. The background won't get removed, and your masking will get ignored.

That being said, you can drag the preview image onto the canvas, regardless of the visual bug saying you can't.

The image always gets dropped at the top-left of the bounding box, and currently can't be moved. So it's probably best to make these alterations in a program like GIMP 2, until Artroom gets layers added to the paint tab anyway.

{% embed url="<https://cdn.discordapp.com/attachments/1087454865359372309/1090869747203190824/013.mp4>" %}
