diff --git a/README.md b/README.md index 658779e..e5a57bb 100644 --- a/README.md +++ b/README.md @@ -82,3 +82,4 @@ We are going to use the spatial cli for the final conversion, so don't read thes - our benchmark can specify a number of seconds to sample, defaulting to 3 seconds - when downsizing/sampling, we need to check [@1080p24fps](file:///Users/m/dev/xr/spatial-maker/samples/1080p24fps) dir to see if a downsized version already exists. If it doesn't, then we want to save it there to save us time. - save the output depth analysis so we can compare +- and make sure we kill prevous processes after we finish, just to make sure that doesn't cause issues diff --git a/benchmark.py b/benchmark.py index de77e79..e105246 100644 --- a/benchmark.py +++ b/benchmark.py @@ -4,7 +4,7 @@ import csv import sys from pathlib import Path import tempfile -from depth_estimators import AppleDepthPro +from depth_estimators import AppleDepthPro, VideoDepthAnythingEstimator sys.path.insert(0, str(Path(__file__).parent / "scripts")) from downscale_video import downscale_to_1080p24 @@ -38,16 +38,19 @@ def main(): sys.exit(1) video_path = sys.argv[1] - sample_seconds = float(sys.argv[2]) if len(sys.argv) > 2 else 1.0 + sample_seconds = float(sys.argv[2]) if len(sys.argv) > 2 else 0.125 output_base = Path("output") output_base.mkdir(exist_ok=True) with tempfile.TemporaryDirectory() as tmpdir: - prepared_video = Path(tmpdir) / "sample.mp4" - - print(f"Downscaling to 1080p24fps and trimming to {sample_seconds}s...") - downscale_to_1080p24(video_path, str(prepared_video), duration=sample_seconds) + if sample_seconds: + prepared_video = Path(tmpdir) / "sample.mp4" + print(f"Downscaling to 1080p24fps and trimming to {sample_seconds}s...") + downscale_to_1080p24(video_path, str(prepared_video), duration=sample_seconds) + else: + print(f"Using cached 1080p24fps version...") + prepared_video = Path(downscale_to_1080p24(video_path)) results = {} @@ -56,6 +59,11 @@ def main(): estimator = AppleDepthPro() results["apple_depth_pro"] = estimator.process_video(str(prepared_video), str(depth_dir)) + print("\nBenchmarking Video Depth Anything...") + depth_dir = output_base / "video_depth_anything" + estimator = VideoDepthAnythingEstimator() + results["video_depth_anything"] = estimator.process_video(str(prepared_video), str(depth_dir)) + print("\n" + "="*60) for model_name, stats in results.items(): print(f"{model_name}:") diff --git a/depth_estimators/__init__.py b/depth_estimators/__init__.py index cf10e9c..50e93e3 100644 --- a/depth_estimators/__init__.py +++ b/depth_estimators/__init__.py @@ -1 +1,2 @@ from .apple_depth_pro import AppleDepthPro +from .video_depth_anything import VideoDepthAnythingEstimator diff --git a/depth_estimators/apple_depth_pro.py b/depth_estimators/apple_depth_pro.py index c7ecfdc..f5cb683 100644 --- a/depth_estimators/apple_depth_pro.py +++ b/depth_estimators/apple_depth_pro.py @@ -1,5 +1,6 @@ import time import subprocess +import os from pathlib import Path import tempfile import torch @@ -18,6 +19,10 @@ class AppleDepthPro: if self.model is not None: return + num_threads = max(1, os.cpu_count() - 4) + torch.set_num_threads(num_threads) + torch.set_num_interop_threads(num_threads) + self.model, self.transform = depth_pro.create_model_and_transforms() self.model.eval() @@ -28,7 +33,11 @@ class AppleDepthPro: self.device = torch.device("cpu") def process_video(self, video_path: str, output_dir: str = "output", max_frames: int = 3): + warmup_start = time.time() self.load_model() + warmup_time = time.time() - warmup_start + print(f" Model load time: {warmup_time:.3f}s") + output_dir = Path(output_dir) output_dir.mkdir(parents=True, exist_ok=True) @@ -40,6 +49,17 @@ class AppleDepthPro: subprocess.run(cmd, capture_output=True, check=True) frames = sorted(frames_dir.glob("frame_*.png")) + + print(f" Warming up model with first frame...") + first_frame = frames[0] + image, _, f_px = depth_pro.load_rgb(str(first_frame)) + image = self.transform(image).to(self.device) + warmup_start = time.time() + with torch.no_grad(): + _ = self.model.infer(image, f_px=f_px) + warmup_inference = time.time() - warmup_start + print(f" First inference (warmup): {warmup_inference:.3f}s") + frame_times = [] for i, frame in enumerate(frames, 1): @@ -65,5 +85,7 @@ class AppleDepthPro: "frames_processed": len(frame_times), "total_time": total_time, "avg_time_per_frame": total_time / len(frame_times), + "warmup_time": warmup_time, + "warmup_inference": warmup_inference, "device": str(self.device) } diff --git a/depth_estimators/video_depth_anything.py b/depth_estimators/video_depth_anything.py new file mode 100644 index 0000000..611cee3 --- /dev/null +++ b/depth_estimators/video_depth_anything.py @@ -0,0 +1,85 @@ +import time +import sys +import os +from pathlib import Path +import torch +import numpy as np +from PIL import Image + +sys.path.insert(0, str(Path(__file__).parent.parent / "Video-Depth-Anything")) +from video_depth_anything.video_depth import VideoDepthAnything +from utils.dc_utils import read_video_frames + + +class VideoDepthAnythingEstimator: + def __init__(self, encoder='vits'): + self.model = None + self.device = None + self.encoder = encoder + + def load_model(self): + if self.model is not None: + return + + num_threads = max(1, os.cpu_count() - 4) + torch.set_num_threads(num_threads) + torch.set_num_interop_threads(num_threads) + + model_configs = { + 'vits': {'encoder': 'vits', 'features': 64, 'out_channels': [48, 96, 192, 384]}, + 'vitb': {'encoder': 'vitb', 'features': 128, 'out_channels': [96, 192, 384, 768]}, + 'vitl': {'encoder': 'vitl', 'features': 256, 'out_channels': [256, 512, 1024, 1024]}, + } + + checkpoint_path = Path(__file__).parent.parent / "Video-Depth-Anything" / "checkpoints" / f"video_depth_anything_{self.encoder}.pth" + + self.model = VideoDepthAnything(**model_configs[self.encoder], metric=False) + self.model.load_state_dict(torch.load(str(checkpoint_path), map_location='cpu'), strict=True) + + if torch.cuda.is_available(): + self.device = torch.device("cuda") + else: + self.device = torch.device("cpu") + + self.model = self.model.to(self.device).eval() + + def process_video(self, video_path: str, output_dir: str = "output", max_frames: int = 3): + warmup_start = time.time() + self.load_model() + warmup_time = time.time() - warmup_start + print(f" Model load time: {warmup_time:.3f}s") + + output_dir = Path(output_dir) + output_dir.mkdir(parents=True, exist_ok=True) + + print(f" Reading video frames...") + frames, fps = read_video_frames(video_path, process_length=max_frames, target_fps=-1, max_res=1280) + + print(f" Warming up model with first frame...") + warmup_start = time.time() + with torch.no_grad(): + _ = self.model.infer_video_depth(frames[:1], fps, input_size=518, device=self.device.type, fp32=False) + warmup_inference = time.time() - warmup_start + print(f" First inference (warmup): {warmup_inference:.3f}s") + + print(f" Running depth inference on {len(frames)} frames...") + start = time.time() + with torch.no_grad(): + depths, _ = self.model.infer_video_depth(frames, fps, input_size=518, device=self.device.type, fp32=False) + total_time = time.time() - start + + print(f" Saving depth maps...") + d_min, d_max = depths.min(), depths.max() + print(f" Depth range: {d_min:.3f} to {d_max:.3f}") + for i, depth in enumerate(depths): + depth_normalized = ((depth - d_min) / (d_max - d_min) * 255).astype(np.uint8) + Image.fromarray(depth_normalized).save(output_dir / f"depth_frame_{i+1:04d}.png") + + return { + "frames_processed": len(frames), + "total_time": total_time, + "avg_time_per_frame": total_time / len(frames), + "warmup_time": warmup_time, + "warmup_inference": warmup_inference, + "device": str(self.device) + } diff --git a/pyproject.toml b/pyproject.toml index 1ab6b18..21ded9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,12 @@ version = "0.0.0" requires-python = ">=3.10" dependencies = [ "depth-pro", + "easydict>=1.13", + "einops>=0.8.1", + "imageio>=2.37.2", + "imageio-ffmpeg>=0.6.0", + "matplotlib>=3.10.8", + "opencv-python>=4.11.0.86", ] [tool.ruff.format] diff --git a/uv.lock b/uv.lock index 55d4112..2003cec 100644 --- a/uv.lock +++ b/uv.lock @@ -2,9 +2,15 @@ version = 1 revision = 3 requires-python = ">=3.10" resolution-markers = [ - "python_full_version >= '3.12'", - "python_full_version == '3.11.*'", - "python_full_version < '3.11'", + "python_full_version >= '3.12' and sys_platform == 'darwin'", + "python_full_version >= '3.12' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version >= '3.12' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version >= '3.12' and sys_platform != 'darwin' and sys_platform != 'linux')", + "python_full_version == '3.11.*' and sys_platform == 'darwin'", + "python_full_version == '3.11.*' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version == '3.11.*' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version == '3.11.*' and sys_platform != 'darwin' and sys_platform != 'linux')", + "python_full_version < '3.11' and sys_platform == 'darwin'", + "python_full_version < '3.11' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version < '3.11' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version < '3.11' and sys_platform != 'darwin' and sys_platform != 'linux')", ] [[package]] @@ -56,7 +62,9 @@ name = "contourpy" version = "1.3.2" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version < '3.11'", + "python_full_version < '3.11' and sys_platform == 'darwin'", + "python_full_version < '3.11' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version < '3.11' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version < '3.11' and sys_platform != 'darwin' and sys_platform != 'linux')", ] dependencies = [ { name = "numpy", marker = "python_full_version < '3.11'" }, @@ -126,8 +134,12 @@ name = "contourpy" version = "1.3.3" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.12'", - "python_full_version == '3.11.*'", + "python_full_version >= '3.12' and sys_platform == 'darwin'", + "python_full_version >= '3.12' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version >= '3.12' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version >= '3.12' and sys_platform != 'darwin' and sys_platform != 'linux')", + "python_full_version == '3.11.*' and sys_platform == 'darwin'", + "python_full_version == '3.11.*' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version == '3.11.*' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version == '3.11.*' and sys_platform != 'darwin' and sys_platform != 'linux')", ] dependencies = [ { name = "numpy", marker = "python_full_version >= '3.11'" }, @@ -229,6 +241,24 @@ dependencies = [ { name = "torchvision" }, ] +[[package]] +name = "easydict" +version = "1.13" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/24/9f/d18d6b5e19244788a6d09c14a8406376b4f4bfcc008e6d17a4f4c15362e8/easydict-1.13.tar.gz", hash = "sha256:b1135dedbc41c8010e2bc1f77ec9744c7faa42bce1a1c87416791449d6c87780", size = 6809, upload-time = "2024-03-04T12:04:41.251Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/ec/fa6963f1198172c2b75c9ab6ecefb3045991f92f75f5eb41b6621b198123/easydict-1.13-py3-none-any.whl", hash = "sha256:6b787daf4dcaf6377b4ad9403a5cee5a86adbc0ca9a5bcf5410e9902002aeac2", size = 6804, upload-time = "2024-03-04T12:04:39.508Z" }, +] + +[[package]] +name = "einops" +version = "0.8.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e5/81/df4fbe24dff8ba3934af99044188e20a98ed441ad17a274539b74e82e126/einops-0.8.1.tar.gz", hash = "sha256:de5d960a7a761225532e0f1959e5315ebeafc0cd43394732f103ca44b9837e84", size = 54805, upload-time = "2025-02-09T03:17:00.434Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/87/62/9773de14fe6c45c23649e98b83231fffd7b9892b6cf863251dc2afa73643/einops-0.8.1-py3-none-any.whl", hash = "sha256:919387eb55330f5757c6bea9165c5ff5cfe63a642682ea788a6d472576d81737", size = 64359, upload-time = "2025-02-09T03:17:01.998Z" }, +] + [[package]] name = "exceptiongroup" version = "1.3.1" @@ -412,6 +442,33 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" }, ] +[[package]] +name = "imageio" +version = "2.37.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "pillow" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a3/6f/606be632e37bf8d05b253e8626c2291d74c691ddc7bcdf7d6aaf33b32f6a/imageio-2.37.2.tar.gz", hash = "sha256:0212ef2727ac9caa5ca4b2c75ae89454312f440a756fcfc8ef1993e718f50f8a", size = 389600, upload-time = "2025-11-04T14:29:39.898Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fb/fe/301e0936b79bcab4cacc7548bf2853fc28dced0a578bab1f7ef53c9aa75b/imageio-2.37.2-py3-none-any.whl", hash = "sha256:ad9adfb20335d718c03de457358ed69f141021a333c40a53e57273d8a5bd0b9b", size = 317646, upload-time = "2025-11-04T14:29:37.948Z" }, +] + +[[package]] +name = "imageio-ffmpeg" +version = "0.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/44/bd/c3343c721f2a1b0c9fc71c1aebf1966a3b7f08c2eea8ed5437a2865611d6/imageio_ffmpeg-0.6.0.tar.gz", hash = "sha256:e2556bed8e005564a9f925bb7afa4002d82770d6b08825078b7697ab88ba1755", size = 25210, upload-time = "2025-01-16T21:34:32.747Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/da/58/87ef68ac83f4c7690961bce288fd8e382bc5f1513860fc7f90a9c1c1c6bf/imageio_ffmpeg-0.6.0-py3-none-macosx_10_9_intel.macosx_10_9_x86_64.whl", hash = "sha256:9d2baaf867088508d4a3458e61eeb30e945c4ad8016025545f66c4b5aaef0a61", size = 24932969, upload-time = "2025-01-16T21:34:20.464Z" }, + { url = "https://files.pythonhosted.org/packages/40/5c/f3d8a657d362cc93b81aab8feda487317da5b5d31c0e1fdfd5e986e55d17/imageio_ffmpeg-0.6.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:b1ae3173414b5fc5f538a726c4e48ea97edc0d2cdc11f103afee655c463fa742", size = 21113891, upload-time = "2025-01-16T21:34:00.277Z" }, + { url = "https://files.pythonhosted.org/packages/33/e7/1925bfbc563c39c1d2e82501d8372734a5c725e53ac3b31b4c2d081e895b/imageio_ffmpeg-0.6.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1d47bebd83d2c5fc770720d211855f208af8a596c82d17730aa51e815cdee6dc", size = 25632706, upload-time = "2025-01-16T21:33:53.475Z" }, + { url = "https://files.pythonhosted.org/packages/a0/2d/43c8522a2038e9d0e7dbdf3a61195ecc31ca576fb1527a528c877e87d973/imageio_ffmpeg-0.6.0-py3-none-manylinux2014_x86_64.whl", hash = "sha256:c7e46fcec401dd990405049d2e2f475e2b397779df2519b544b8aab515195282", size = 29498237, upload-time = "2025-01-16T21:34:13.726Z" }, + { url = "https://files.pythonhosted.org/packages/a0/13/59da54728351883c3c1d9fca1710ab8eee82c7beba585df8f25ca925f08f/imageio_ffmpeg-0.6.0-py3-none-win32.whl", hash = "sha256:196faa79366b4a82f95c0f4053191d2013f4714a715780f0ad2a68ff37483cc2", size = 19652251, upload-time = "2025-01-16T21:34:06.812Z" }, + { url = "https://files.pythonhosted.org/packages/2c/c6/fa760e12a2483469e2bf5058c5faff664acf66cadb4df2ad6205b016a73d/imageio_ffmpeg-0.6.0-py3-none-win_amd64.whl", hash = "sha256:02fa47c83703c37df6bfe4896aab339013f62bf02c5ebf2dce6da56af04ffc0a", size = 31246824, upload-time = "2025-01-16T21:34:28.6Z" }, +] + [[package]] name = "jinja2" version = "3.1.6" @@ -705,7 +762,9 @@ name = "networkx" version = "3.4.2" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version < '3.11'", + "python_full_version < '3.11' and sys_platform == 'darwin'", + "python_full_version < '3.11' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version < '3.11' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version < '3.11' and sys_platform != 'darwin' and sys_platform != 'linux')", ] sdist = { url = "https://files.pythonhosted.org/packages/fd/1d/06475e1cd5264c0b870ea2cc6fdb3e37177c1e565c43f56ff17a10e3937f/networkx-3.4.2.tar.gz", hash = "sha256:307c3669428c5362aab27c8a1260aa8f47c4e91d3891f48be0141738d8d053e1", size = 2151368, upload-time = "2024-10-21T12:39:38.695Z" } wheels = [ @@ -717,8 +776,12 @@ name = "networkx" version = "3.6.1" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.12'", - "python_full_version == '3.11.*'", + "python_full_version >= '3.12' and sys_platform == 'darwin'", + "python_full_version >= '3.12' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version >= '3.12' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version >= '3.12' and sys_platform != 'darwin' and sys_platform != 'linux')", + "python_full_version == '3.11.*' and sys_platform == 'darwin'", + "python_full_version == '3.11.*' and platform_machine == 'aarch64' and sys_platform == 'linux'", + "(python_full_version == '3.11.*' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version == '3.11.*' and sys_platform != 'darwin' and sys_platform != 'linux')", ] sdist = { url = "https://files.pythonhosted.org/packages/6a/51/63fe664f3908c97be9d2e4f1158eb633317598cfa6e1fc14af5383f17512/networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509", size = 2517025, upload-time = "2025-12-08T17:02:39.908Z" } wheels = [ @@ -794,7 +857,7 @@ name = "nvidia-cudnn-cu12" version = "9.10.2.21" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-cublas-cu12" }, + { name = "nvidia-cublas-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/ba/51/e123d997aa098c61d029f76663dedbfb9bc8dcf8c60cbd6adbe42f76d049/nvidia_cudnn_cu12-9.10.2.21-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:949452be657fa16687d0930933f032835951ef0892b37d2d53824d1a84dc97a8", size = 706758467, upload-time = "2025-06-06T21:54:08.597Z" }, @@ -805,7 +868,7 @@ name = "nvidia-cufft-cu12" version = "11.3.3.83" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-nvjitlink-cu12" }, + { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/1f/13/ee4e00f30e676b66ae65b4f08cb5bcbb8392c03f54f2d5413ea99a5d1c80/nvidia_cufft_cu12-11.3.3.83-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4d2dd21ec0b88cf61b62e6b43564355e5222e4a3fb394cac0db101f2dd0d4f74", size = 193118695, upload-time = "2025-03-07T01:45:27.821Z" }, @@ -832,9 +895,9 @@ name = "nvidia-cusolver-cu12" version = "11.7.3.90" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-cublas-cu12" }, - { name = "nvidia-cusparse-cu12" }, - { name = "nvidia-nvjitlink-cu12" }, + { name = "nvidia-cublas-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, + { name = "nvidia-cusparse-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, + { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/85/48/9a13d2975803e8cf2777d5ed57b87a0b6ca2cc795f9a4f59796a910bfb80/nvidia_cusolver_cu12-11.7.3.90-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:4376c11ad263152bd50ea295c05370360776f8c3427b30991df774f9fb26c450", size = 267506905, upload-time = "2025-03-07T01:47:16.273Z" }, @@ -845,7 +908,7 @@ name = "nvidia-cusparse-cu12" version = "12.5.8.93" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-nvjitlink-cu12" }, + { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/c2/f5/e1854cb2f2bcd4280c44736c93550cc300ff4b8c95ebe370d0aa7d2b473d/nvidia_cusparse_cu12-12.5.8.93-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1ec05d76bbbd8b61b06a80e1eaf8cf4959c3d4ce8e711b65ebd0443bb0ebb13b", size = 288216466, upload-time = "2025-03-07T01:48:13.779Z" }, @@ -891,6 +954,23 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a2/eb/86626c1bbc2edb86323022371c39aa48df6fd8b0a1647bc274577f72e90b/nvidia_nvtx_cu12-12.8.90-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5b17e2001cc0d751a5bc2c6ec6d26ad95913324a4adb86788c944f8ce9ba441f", size = 89954, upload-time = "2025-03-07T01:42:44.131Z" }, ] +[[package]] +name = "opencv-python" +version = "4.11.0.86" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/17/06/68c27a523103dad5837dc5b87e71285280c4f098c60e4fe8a8db6486ab09/opencv-python-4.11.0.86.tar.gz", hash = "sha256:03d60ccae62304860d232272e4a4fda93c39d595780cb40b161b310244b736a4", size = 95171956, upload-time = "2025-01-16T13:52:24.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/4d/53b30a2a3ac1f75f65a59eb29cf2ee7207ce64867db47036ad61743d5a23/opencv_python-4.11.0.86-cp37-abi3-macosx_13_0_arm64.whl", hash = "sha256:432f67c223f1dc2824f5e73cdfcd9db0efc8710647d4e813012195dc9122a52a", size = 37326322, upload-time = "2025-01-16T13:52:25.887Z" }, + { url = "https://files.pythonhosted.org/packages/3b/84/0a67490741867eacdfa37bc18df96e08a9d579583b419010d7f3da8ff503/opencv_python-4.11.0.86-cp37-abi3-macosx_13_0_x86_64.whl", hash = "sha256:9d05ef13d23fe97f575153558653e2d6e87103995d54e6a35db3f282fe1f9c66", size = 56723197, upload-time = "2025-01-16T13:55:21.222Z" }, + { url = "https://files.pythonhosted.org/packages/f3/bd/29c126788da65c1fb2b5fb621b7fed0ed5f9122aa22a0868c5e2c15c6d23/opencv_python-4.11.0.86-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1b92ae2c8852208817e6776ba1ea0d6b1e0a1b5431e971a2a0ddd2a8cc398202", size = 42230439, upload-time = "2025-01-16T13:51:35.822Z" }, + { url = "https://files.pythonhosted.org/packages/2c/8b/90eb44a40476fa0e71e05a0283947cfd74a5d36121a11d926ad6f3193cc4/opencv_python-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b02611523803495003bd87362db3e1d2a0454a6a63025dc6658a9830570aa0d", size = 62986597, upload-time = "2025-01-16T13:52:08.836Z" }, + { url = "https://files.pythonhosted.org/packages/fb/d7/1d5941a9dde095468b288d989ff6539dd69cd429dbf1b9e839013d21b6f0/opencv_python-4.11.0.86-cp37-abi3-win32.whl", hash = "sha256:810549cb2a4aedaa84ad9a1c92fbfdfc14090e2749cedf2c1589ad8359aa169b", size = 29384337, upload-time = "2025-01-16T13:52:13.549Z" }, + { url = "https://files.pythonhosted.org/packages/a4/7d/f1c30a92854540bf789e9cd5dde7ef49bbe63f855b85a2e6b3db8135c591/opencv_python-4.11.0.86-cp37-abi3-win_amd64.whl", hash = "sha256:085ad9b77c18853ea66283e98affefe2de8cc4c1f43eda4c100cf9b2721142ec", size = 39488044, upload-time = "2025-01-16T13:52:21.928Z" }, +] + [[package]] name = "packaging" version = "25.0" @@ -1198,10 +1278,24 @@ version = "0.0.0" source = { virtual = "." } dependencies = [ { name = "depth-pro" }, + { name = "easydict" }, + { name = "einops" }, + { name = "imageio" }, + { name = "imageio-ffmpeg" }, + { name = "matplotlib" }, + { name = "opencv-python" }, ] [package.metadata] -requires-dist = [{ name = "depth-pro", git = "https://github.com/apple/ml-depth-pro.git" }] +requires-dist = [ + { name = "depth-pro", git = "https://github.com/apple/ml-depth-pro.git" }, + { name = "easydict", specifier = ">=1.13" }, + { name = "einops", specifier = ">=0.8.1" }, + { name = "imageio", specifier = ">=2.37.2" }, + { name = "imageio-ffmpeg", specifier = ">=0.6.0" }, + { name = "matplotlib", specifier = ">=3.10.8" }, + { name = "opencv-python", specifier = ">=4.11.0.86" }, +] [[package]] name = "sympy"