root commited on
Commit ·
7198296
1
Parent(s): e3257fd
cog fixes
Browse files1 unmodified line23456723 unmodified lines313233343536371 unmodified line# https://github.com/replicate/cog/blob/main/docs/python.mdfrom cog import BasePredictor, Input, Pathfrom omni_zero import OmniZeroSinglefrom PIL import Image23 unmodified linesidentity_image_strength: float = Input(description="Identity image strength for the model", default=1.0, ge=0.0, le=1.0),depth_image: Path = Input(description="Depth image for the model", default=None),depth_image_strength: float = Input(description="Depth image strength for the model, if not supplied the composition image will be used for depth", default=0.5, ge=0.0, le=1.0),) -> Path:"""Run a single prediction on the model"""base_image = Image.open(base_image)1 unmodified line234567823 unmodified lines323334353637381 unmodified line# https://github.com/replicate/cog/blob/main/docs/python.mdfrom cog import BasePredictor, Input, Pathfrom typing import Listfrom omni_zero import OmniZeroSinglefrom PIL import Image23 unmodified linesidentity_image_strength: float = Input(description="Identity image strength for the model", default=1.0, ge=0.0, le=1.0),depth_image: Path = Input(description="Depth image for the model", default=None),depth_image_strength: float = Input(description="Depth image strength for the model, if not supplied the composition image will be used for depth", default=0.5, ge=0.0, le=1.0),) -> List[Path]:"""Run a single prediction on the model"""base_image = Image.open(base_image)
predict.py+2-1