Skip to content

Commit

Permalink
fix pydantic deprecate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanster committed Nov 23, 2024
1 parent b58c333 commit 074fa55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iopaint/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class InpaintRequest(BaseModel):
mask: Optional[str] = Field(None, description="base64 encoded mask")

ldm_steps: int = Field(20, description="Steps for ldm model.")
ldm_sampler: str = Field(LDMSampler.plms, discription="Sampler for ldm model.")
ldm_sampler: str = Field(LDMSampler.plms, description="Sampler for ldm model.")
zits_wireframe: bool = Field(True, description="Enable wireframe for zits model.")

hd_strategy: str = Field(
Expand Down Expand Up @@ -342,7 +342,7 @@ class InpaintRequest(BaseModel):
)
sd_guidance_scale: float = Field(
7.5,
help="Higher guidance scale encourages to generate images that are closely linked to the text prompt, usually at the expense of lower image quality.",
description="Higher guidance scale encourages to generate images that are closely linked to the text prompt, usually at the expense of lower image quality.",
)
sd_sampler: str = Field(
SDSampler.uni_pc, description="Sampler for diffusion model."
Expand Down

0 comments on commit 074fa55

Please sign in to comment.