diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-04 05:56:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 05:56:34 +0000 |
commit | 1ca4dd44c950dd0167e730e26786d591234f3efc (patch) | |
tree | 7cbb5b43270667fc350cb8c7cc476accb97676a1 /modules | |
parent | f12576fd6d76ac87940a2a8e5c9fe7dc90600720 (diff) | |
parent | 8eb64dab3e9e40531f6a3fa606a1c23a62987249 (diff) | |
download | stable-diffusion-webui-gfx803-1ca4dd44c950dd0167e730e26786d591234f3efc.tar.gz stable-diffusion-webui-gfx803-1ca4dd44c950dd0167e730e26786d591234f3efc.tar.bz2 stable-diffusion-webui-gfx803-1ca4dd44c950dd0167e730e26786d591234f3efc.zip |
Merge pull request #4191 from digburn/fix-api-upscaling
Fix API Upscaling: Add required parameter to API extras route
Diffstat (limited to 'modules')
-rw-r--r-- | modules/api/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index 9ee42a17..68fb45c6 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -131,6 +131,7 @@ class ExtrasBaseRequest(BaseModel): upscaler_1: str = Field(default="None", title="Main upscaler", description=f"The name of the main upscaler to use, it has to be one of this list: {' , '.join([x.name for x in sd_upscalers])}") upscaler_2: str = Field(default="None", title="Secondary upscaler", description=f"The name of the secondary upscaler to use, it has to be one of this list: {' , '.join([x.name for x in sd_upscalers])}") extras_upscaler_2_visibility: float = Field(default=0, title="Secondary upscaler visibility", ge=0, le=1, allow_inf_nan=False, description="Sets the visibility of secondary upscaler, values should be between 0 and 1.") + upscale_first: bool = Field(default=False, title="Upscale first", description="Should the upscaler run before restoring faces?") class ExtraBaseResponse(BaseModel): html_info: str = Field(title="HTML info", description="A series of HTML tags containing the process info.") |