INNER CODE UNIT · Python
input
BrokenSource/DepthFlow · depthflow/scene.py:53
def input(self,
image: Annotated[Path | PilImage | np.ndarray | str | BytesIO | bytes | None, Parameter(
help="Input image from Path, NumPy, URL (None to default)",
name=("--image", "-i"))],
depth: Annotated[Path | PilImage | np.ndarray | str | BytesIO | bytes | None, Parameter(
help="Input depthmap of the image (None to estimate)",
name=("--depth", "-d"))] = None,
) -> None:
"""Use the given image and depthmap on the scene"""
self.initialize()
# Default image, property of the original owners
if (image is None):
import pooch
image = Path(pooch.retrieve(
url="https://w.wallhaven.cc/full/pk/wallhaven-pkz5r9.png",
known_hash="xxh128:6fe8d585cfc4b8fc623b5450d06bcdc4",
path=depthflow.dirs.user_cache_path,