lint(api): remove unused strength param from inpaint pipeline
This commit is contained in:
parent
1a45aa68fa
commit
3fd90a667d
|
@ -0,0 +1 @@
|
||||||
|
This directory must not have an __init__.py file, because load.py and run.py need to be included separately.
|
|
@ -170,7 +170,6 @@ def run_inpaint_pipeline(
|
||||||
border: Border,
|
border: Border,
|
||||||
noise_source: Any,
|
noise_source: Any,
|
||||||
mask_filter: Any,
|
mask_filter: Any,
|
||||||
strength: float,
|
|
||||||
fill_color: str,
|
fill_color: str,
|
||||||
tile_order: str,
|
tile_order: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
|
@ -589,13 +589,6 @@ def inpaint():
|
||||||
fill_color = get_not_empty(request.args, "fillColor", "white")
|
fill_color = get_not_empty(request.args, "fillColor", "white")
|
||||||
mask_filter = get_from_map(request.args, "filter", mask_filters, "none")
|
mask_filter = get_from_map(request.args, "filter", mask_filters, "none")
|
||||||
noise_source = get_from_map(request.args, "noise", noise_sources, "histogram")
|
noise_source = get_from_map(request.args, "noise", noise_sources, "histogram")
|
||||||
strength = get_and_clamp_float(
|
|
||||||
request.args,
|
|
||||||
"strength",
|
|
||||||
get_config_value("strength"),
|
|
||||||
get_config_value("strength", "max"),
|
|
||||||
get_config_value("strength", "min"),
|
|
||||||
)
|
|
||||||
tile_order = get_from_list(
|
tile_order = get_from_list(
|
||||||
request.args, "tileOrder", [TileOrder.grid, TileOrder.kernel, TileOrder.spiral]
|
request.args, "tileOrder", [TileOrder.grid, TileOrder.kernel, TileOrder.spiral]
|
||||||
)
|
)
|
||||||
|
@ -612,7 +605,6 @@ def inpaint():
|
||||||
expand.bottom,
|
expand.bottom,
|
||||||
mask_filter.__name__,
|
mask_filter.__name__,
|
||||||
noise_source.__name__,
|
noise_source.__name__,
|
||||||
strength,
|
|
||||||
fill_color,
|
fill_color,
|
||||||
tile_order,
|
tile_order,
|
||||||
),
|
),
|
||||||
|
@ -634,7 +626,6 @@ def inpaint():
|
||||||
expand,
|
expand,
|
||||||
noise_source,
|
noise_source,
|
||||||
mask_filter,
|
mask_filter,
|
||||||
strength,
|
|
||||||
fill_color,
|
fill_color,
|
||||||
tile_order,
|
tile_order,
|
||||||
needs_device=device,
|
needs_device=device,
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
from .device_pool import DeviceParams, DevicePoolExecutor
|
||||||
|
from .hacks import (
|
||||||
|
apply_patch_basicsr,
|
||||||
|
apply_patch_codeformer,
|
||||||
|
apply_patch_facexlib,
|
||||||
|
apply_patches,
|
||||||
|
)
|
||||||
|
from .model_cache import ModelCache
|
||||||
|
from .upscale import run_upscale_correction
|
Loading…
Reference in New Issue