Merge pull request #2697 from Trojaner/api/ipadapters

Update FaceID api params
This commit is contained in:
Vladimir Mandic
2024-01-09 07:32:41 -05:00
committed by GitHub
2 changed files with 18 additions and 3 deletions
+7 -1
View File
@@ -99,8 +99,14 @@ class IPAdapterItem(BaseModel):
class FaceIDItem(BaseModel):
model: str = Field(title="Model", default="FaceID Base",description="The FaceID model to use.")
image: str = Field(title="Image", default="", description="Source face image, must be a base64 string containing the image's data.")
scale: float = Field(title="Scale", default=0.5, gt=0, le=1, description="Scale of the source face, must be between 0 and 1.")
scale: float = Field(title="Scale", default=1, gt=0, le=1, description="Scale of the source face, must be between 0 and 1.")
structure: float = Field(title="Structure", default=1, gt=0, le=1, description="Structure to use, must be between 0 and 1.")
rank: float = Field(title="Rank", default=128, ge=4, le=256, description="Rank to use, must be between 4 and 256.")
override_sampler: bool = Field(title="Override Sampler", default=True, description="Should the sampler be overriden?")
tokens: int = Field("Tokens", default=4, ge=1, le=16, description="Amount of tokens to use, must be between 1 and 16.")
cache_model: bool = Field(title="Cache", default=True, description="Should the model be cached?")
StableDiffusionTxt2ImgProcessingAPI = PydanticModelGenerator(