INNER CODE UNIT · Python
predict
fofr/cog-face-to-sticker · predict.py:94
def predict(
self,
image: Path = Input(
description="An image of a person to be converted to a sticker",
default=None,
),
prompt: str = Input(default="a person"),
negative_prompt: str = Input(
default="",
description="Things you do not want in the image",
),
width: int = Input(default=1024),
height: int = Input(default=1024),
steps: int = Input(default=20),
seed: int = Input(
default=None, description="Fix the random seed for reproducibility"
),
prompt_strength: float = Input(