Skip to content

zavolokas/InpaintingSite

Repository files navigation

InpaintingSite

A web interface for inpainting. See zavolokas/Inpainting for algorithm details.

Environment Variables

When running this application, you can use environmental variables to change a few of the inpainting settings. These can be set when starting the Docker container with the -e option.

Variable Name Values
MAX_INPAINT_ITERATIONS The equivalent of the MaxInpaintIterations setting of the underlying library: MaxInpaintIterations determines how many iterations will be run to find better values for the area to fill. The more iterations you run, the better the result you'll get.
Any integer number larger than 0 is allowed.
Default value: 15.
PATCH_DISTANCE_CALCULATOR The equivalent of the PatchDistanceCalculator setting of the underlying library: PatchDistanceCalculator determines the algorithm to use for calculating color differences.
Allowed values are Cie76 (fastest) and Cie2000 (more accurate).
Default value: Cie76
PATCH_SIZE The equivalent of the PatchSize setting of the underlying library: PatchSize determines the size of the sections that the infill area will be broken up into to search for equal sized matches in the rest of the image. Larger patches generally allow for higher-level features to be represented but may take longer..
Any integer number greater than 1 is allowed.
Default value: 11.
MAX_IMAGE_DIMENSION This sets a limit on the size of an image and mask before processing. If either dimension of an uploaded image is larger than MAX_IMAGE_DIMENSION, it will be scaled down to fit within the specified dimensions while preserving the image's aspect ratio.
Any integer number is allowed. If the number is less than or equal to 0, there will be no limit on the image size.
Default value: 2048