Inpaint Service
Last updated
Last updated
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.
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.
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.
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.
Click the Upload button to upload the files.
To run the Inpaint service click on the Create button. This brings up the Create dialog.
Click on the Inpaint button to bring up the Inpaint dialog
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.
Other available input types include GEOJSON, COCO, KITTI, PASCAL, and YOLO—choose the option that best fits your needs.
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.
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.
Here are the original and cleaned background images.