Update types.py

Pydantic Error:

pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `preserve_init_image_color_profile = False`. All model fields require a type annotation; if `preserve_init_image_color_profile` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`.
This commit is contained in:
TJ 2024-12-10 01:52:28 +00:00 committed by GitHub
parent b3a961fc82
commit 4228ec0df8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,8 +20,8 @@ class GenerateImageRequest(BaseModel):
control_image: Any = None
control_alpha: Union[float, List[float]] = None
prompt_strength: float = 0.8
preserve_init_image_color_profile = False
strict_mask_border = False
preserve_init_image_color_profile: bool = False
strict_mask_border: bool = False
sampler_name: str = None # "ddim", "plms", "heun", "euler", "euler_a", "dpm2", "dpm2_a", "lms"
hypernetwork_strength: float = 0
@ -100,7 +100,7 @@ class MergeRequest(BaseModel):
model1: str = None
ratio: float = None
out_path: str = "mix"
use_fp16 = True
use_fp16: bool = True
class Image: