Organized the settings and UI of soft inpainting to allow for toggling the feature, and centralizes default values to reduce the amount of copy-pasta.

This commit is contained in:
CodeHatchling
2023-12-04 01:27:22 -07:00
parent 552f8bc832
commit aaacf48232
9 changed files with 197 additions and 49 deletions
+5 -3
View File
@@ -1,6 +1,7 @@
import pytest
import requests
import modules.soft_inpainting as si
@pytest.fixture()
@@ -24,9 +25,10 @@ def simple_img2img_request(img2img_basic_image_base64):
"inpainting_mask_invert": False,
"mask": None,
"mask_blur": 4,
"mask_blend_power": 1,
"mask_blend_scale": 0.5,
"inpaint_detail_preservation": 4,
"mask_blend_enabled": True,
"mask_blend_power": si.default.mask_blend_power,
"mask_blend_scale": si.default.mask_blend_scale,
"inpaint_detail_preservation": si.default.inpaint_detail_preservation,
"n_iter": 1,
"negative_prompt": "",
"override_settings": {},