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:
@@ -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": {},
|
||||
|
||||
Reference in New Issue
Block a user