You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: javascript/hints.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ titles = {
75
75
"Create style": "Save current prompts as a style. If you add the token {prompt} to the text, the style use that as placeholder for your prompt when you use the style in the future.",
76
76
77
77
"Checkpoint name": "Loads weights from checkpoint before making images. You can either use hash or a part of filename (as seen in settings) for checkpoint name. Recommended to use with Y axis for less switching.",
78
+
"Inpainting conditioning mask strength": "Only applies to inpainting models. Determines how strongly to mask off the original image for inpainting and img2img. 1.0 means fully masked, which is the default behaviour. 0.0 means a fully unmasked conditioning. Lower values will help preserve the overall composition of the image, but will struggle with large changes.",
78
79
79
80
"vram": "Torch active: Peak amount of VRAM used by Torch during generation, excluding cached data.\nTorch reserved: Peak amount of VRAM allocated by Torch, including all active and cached data.\nSys VRAM: Peak amount of VRAM allocation across all applications / total GPU VRAM (peak utilization%).",
images: list[str] =Field(default=None, title="Image", description="The generated image in base64 format.")
112
+
parameters: dict
113
+
info: str
114
+
115
+
classImageToImageResponse(BaseModel):
116
+
images: list[str] =Field(default=None, title="Image", description="The generated image in base64 format.")
117
+
parameters: dict
118
+
info: str
119
+
120
+
classExtrasBaseRequest(BaseModel):
121
+
resize_mode: Literal[0, 1] =Field(default=0, title="Resize Mode", description="Sets the resize mode: 0 to upscale by upscaling_resize amount, 1 to upscale up to upscaling_resize_h x upscaling_resize_w.")
122
+
show_extras_results: bool=Field(default=True, title="Show results", description="Should the backend return the generated image?")
123
+
gfpgan_visibility: float=Field(default=0, title="GFPGAN Visibility", ge=0, le=1, allow_inf_nan=False, description="Sets the visibility of GFPGAN, values should be between 0 and 1.")
124
+
codeformer_visibility: float=Field(default=0, title="CodeFormer Visibility", ge=0, le=1, allow_inf_nan=False, description="Sets the visibility of CodeFormer, values should be between 0 and 1.")
125
+
codeformer_weight: float=Field(default=0, title="CodeFormer Weight", ge=0, le=1, allow_inf_nan=False, description="Sets the weight of CodeFormer, values should be between 0 and 1.")
126
+
upscaling_resize: float=Field(default=2, title="Upscaling Factor", ge=1, le=4, description="By how much to upscale the image, only used when resize_mode=0.")
127
+
upscaling_resize_w: int=Field(default=512, title="Target Width", ge=1, description="Target width for the upscaler to hit. Only used when resize_mode=1.")
128
+
upscaling_resize_h: int=Field(default=512, title="Target Height", ge=1, description="Target height for the upscaler to hit. Only used when resize_mode=1.")
129
+
upscaling_crop: bool=Field(default=True, title="Crop to fit", description="Should the upscaler crop the image to fit in the choosen size?")
130
+
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.nameforxinsd_upscalers])}")
131
+
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.nameforxinsd_upscalers])}")
132
+
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.")
133
+
134
+
classExtraBaseResponse(BaseModel):
135
+
html_info: str=Field(title="HTML info", description="A series of HTML tags containing the process info.")
136
+
137
+
classExtrasSingleImageRequest(ExtrasBaseRequest):
138
+
image: str=Field(default="", title="Image", description="Image to work on, must be a Base64 string containing the image's data.")
0 commit comments