-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathdemo.py
More file actions
25 lines (18 loc) · 822 Bytes
/
demo.py
File metadata and controls
25 lines (18 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ---------------------------------------------------------------------
# Copyright (c) 2025 Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause
# ---------------------------------------------------------------------
from qai_hub_models.models._shared.depth_estimation.demo import depth_estimation_demo
from qai_hub_models.models.depth_anything_v2.model import (
MODEL_ASSET_VERSION,
MODEL_ID,
DepthAnythingV2,
)
from qai_hub_models.utils.asset_loaders import CachedWebModelAsset
INPUT_IMAGE_ADDRESS = CachedWebModelAsset.from_asset_store(
MODEL_ID, MODEL_ASSET_VERSION, "test_input_image.jpg"
)
def main(is_test: bool = False) -> None:
depth_estimation_demo(DepthAnythingV2, MODEL_ID, INPUT_IMAGE_ADDRESS, is_test)
if __name__ == "__main__":
main()