# Inpaint Service

The Inpaint service takes an annotated image, erases the annotated features from the image, and generates a new image or a Blender file with placement areas where those annotated features were originally located. The generated Blender file can be used as a background image in channels that support placement of objects on 2D backgrounds such as SATRGB.

The Inpaint service is accessed from the Assets tab of the GUI.

<figure><img src="/files/dWlLTJL8cHG5VNoew4hE" alt=""><figcaption><p>Assets Tab</p></figcaption></figure>

The source backgrounds need to be uploaded to a Workspace Volume. Click on the workspace volume from the volume list. A page showing the volume content will be displayed.

<figure><img src="/files/Sf09xHV3DZRZwnkHjwBg" alt=""><figcaption><p>Empty Volume Page</p></figcaption></figure>

The Inpaint service processes all images in a directory so it is a good idea to create a new folder to hold the source backgrounds and their annotation files or image masks. Click on the New Folder button and give the folder an appropriate name.

<figure><img src="/files/e6klRGb2u30cmPPXVzic" alt=""><figcaption><p>New Folder Dialog</p></figcaption></figure>

<figure><img src="/files/jpU36OAPWURvOoEQb7V9" alt=""><figcaption><p>Backgrounds Folder</p></figcaption></figure>

Click on the **Backgrounds** working folder, then click the **Upload File** button. Add the background image along with the annotation files or mask images. The background image must be in **TIFF, PNG, JPG, or JPEG** format. Annotation files should be in one of the following formats: **COCO, KITTI, Pascal, YOLO, or GeoJSON**. Mask images must have a **.mask.png, .mask.jpg, .mask.jpeg, or .mask.tiff** extension.

Annotation files and mask images are not both required—only one is needed for all background images.

<figure><img src="/files/t4WYAuqDp4ACNZJxH7oN" alt=""><figcaption><p>Upload File Dialog</p></figcaption></figure>

Click the Upload button to upload the files.

<figure><img src="/files/dxk2YzmgfljB2ep58CwU" alt=""><figcaption><p>Uploaded Files</p></figcaption></figure>

To run the Inpaint service click on the Create button. This brings up the Create dialog.

<figure><img src="/files/5RZB773rdMy6o03RAxwz" alt=""><figcaption><p>Create Dialog</p></figcaption></figure>

Click on the Inpaint button to bring up the Inpaint dialog

<figure><img src="/files/ouxtPj8dkexrOr9hRGd1" alt=""><figcaption><p>Inpaint dialog</p></figcaption></figure>

By default, the input location is set to the current directory, with the input type as **MASK**. The output will be stored in a subdirectory named **"cleaned"**, followed by a timestamp. The output format is **PNG**, and the dilation value is set to **5**. Dilation controls how much the mask area expands before inpainting the image.

<figure><img src="/files/G9vFobZE2Pq3Z6wWlfXv" alt=""><figcaption><p>Input types</p></figcaption></figure>

Other available input types include **GEOJSON, COCO, KITTI, PASCAL,** and **YOLO**—choose the option that best fits your needs.

<figure><img src="/files/TO8yqRDRSjqlnEDKQNNO" alt=""><figcaption></figcaption></figure>

Other available output types include **PNG, JPG,** and **SATRBG Background**—choose the option that best fits your needs.

Click the Create button to accept these and start the Inpaint  service. A "Create Jobs" window will pop up in the lower left. Click on the down arrow to see progress of the job.

<figure><img src="/files/AtBhlHgFgQk08uVdMWgL" alt=""><figcaption><p>Create Jobs Window</p></figcaption></figure>

When the job is complete, the hour glass icon will switch to a go to icon. Click on that icon and you will be switched to the output directory. There will be cleaned backgrounds for every background image that you processed.

<figure><img src="/files/NqcHAxm2Vc6NaJAi24m5" alt=""><figcaption><p>Output dir</p></figcaption></figure>

Here are the original and cleaned background images.

<figure><img src="/files/SB2rTvvbwkFfTX2XPegI" alt=""><figcaption><p>Original background</p></figcaption></figure>

<figure><img src="/files/Z9Cg03aHmSPDw3wtPqWZ" alt=""><figcaption><p>Cleaned background</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.rendered.ai/application-user-guides/tutorials/creating-and-using-volumes/inpaint-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
