root commited on
Commit ·
7198296
1
Parent(s): e3257fd
cog fixes
Browse files1 unmodified line234567823 unmodified lines32333434353637381 unmodified line# https://github.com/replicate/cog/blob/main/docs/python.md
from cog import BasePredictor, Input, Pathfrom typing import Listfrom omni_zero import OmniZeroSinglefrom PIL import Image
23 unmodified lines identity_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: ) -> List[Path]: """Run a single prediction on the model"""
base_image = Image.open(base_image)predict.py+2-1