Spaces:
Runtime error
Runtime error
File size: 526 Bytes
c20c148 8c7592a c20c148 dff0630 8c7592a b12ac69 c20c148 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import numpy as np
import torch
from PIL.Image import Image
def create_mask(image: Image, blur: int = ..., padding: int = ...) -> Image:
"""
Create a mask from the input image.
:param image: The input image.
:param blur: Blur strength. Default is 0.
:param padding: The padding around the object in the mask. Default is 0.
"""
...
def create_depth_map(image: np.ndarray, model: torch.nn.Module) -> Image:
"""
Create a depth map from the input image.
"""
...
|