IOPaint
IOPaint copied to clipboard
Increased file size
I tested lama-cleaner on docker. Original image resolution: 661 x 2692 (802KB)
I tried to remove some object in lama-cleaner UI, file size of result image is increased(7.1MB).
data.append("ldmSteps", "25");
data.append("ldmSampler", "plms");
data.append("zitsWireframe", "true");
data.append("hdStrategy", "Original");
data.append("hdStrategyCropMargin", "196");
data.append("hdStrategyCropTrigerSize", "1280");
data.append("hdStrategyResizeLimit", "2048");
data.append("prompt", "");
data.append("croperX", "0");
data.append("croperY", "0");
data.append("croperHeight", "512");
data.append("croperWidth", "512");
data.append("useCroper", "false");
data.append("sdMaskBlur", "5");
data.append("sdStrength", "0.75");
data.append("sdSteps", "50");
data.append("sdGuidanceScale", "7.5");
data.append("sdSampler", "pndm");
data.append("sdSeed", "42");
data.append("cv2Radius", "5");
data.append("cv2Flag", "INPAINT_NS");
data.append("sizeLimit", "2692");
Which option should I change? And How can i know detail description of each option? Thanks.
These form data are kind of massive, all model configs are stored together, currently, you can only explore the front-end to see each option's influence.
The reason why the size is enlarged is, by default, the backend will encode the image with 100% quality https://github.com/Sanster/lama-cleaner/blob/main/lama_cleaner/helper.py#L80, you can reduce the quality by modify the source code
Hi, I add some comments for Config
args, you can check it here, hope it's helpful