From ba69c7d49642a55bb3ab1664e4ac73040259766f Mon Sep 17 00:00:00 2001 From: Morgan Williams Date: Wed, 24 Dec 2025 16:41:12 +0100 Subject: [PATCH] Update estimate.py --- estimate.py | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/estimate.py b/estimate.py index 98b652e..852d078 100644 --- a/estimate.py +++ b/estimate.py @@ -3,30 +3,30 @@ from depth_estimators import AppleDepthPro, DepthAnythingV2Estimator num_threads = max(1, os.cpu_count() - 4) -# print('\n' + '='*60) -# print('Benchmarking Apple Depth Pro') -# print('='*60) -# estimator = AppleDepthPro() -# result = estimator.process_video('samples/1080p24fps/barcelona-lights_1080p.MOV', 'output/apple_depth_pro') -# print('RESULT:', result) - print('\n' + '='*60) -print('Benchmarking Depth Anything V2 Small') +print('Benchmarking Apple Depth Pro') print('='*60) -estimator = DepthAnythingV2Estimator(encoder='vits', num_threads=num_threads) -result = estimator.process_video('samples/1080p24fps/barcelona-lights_1080p.MOV', 'output/dav2_small') +estimator = AppleDepthPro() +result = estimator.process_video('samples/1080p24fps/barcelona-lights_1080p.MOV', 'output/apple_depth_pro') print('RESULT:', result) -print('\n' + '='*60) -print('Benchmarking Depth Anything V2 Base') -print('='*60) -estimator = DepthAnythingV2Estimator(encoder='vitb', num_threads=num_threads) -result = estimator.process_video('samples/1080p24fps/barcelona-lights_1080p.MOV', 'output/dav2_base') -print('RESULT:', result) +# print('\n' + '='*60) +# print('Benchmarking Depth Anything V2 Small') +# print('='*60) +# estimator = DepthAnythingV2Estimator(encoder='vits', num_threads=num_threads) +# result = estimator.process_video('samples/1080p24fps/barcelona-lights_1080p.MOV', 'output/dav2_small') +# print('RESULT:', result) -print('\n' + '='*60) -print('Benchmarking Depth Anything V2 Large') -print('='*60) -estimator = DepthAnythingV2Estimator(encoder='vitl', num_threads=num_threads) -result = estimator.process_video('samples/1080p24fps/barcelona-lights_1080p.MOV', 'output/dav2_large') -print('RESULT:', result) +# print('\n' + '='*60) +# print('Benchmarking Depth Anything V2 Base') +# print('='*60) +# estimator = DepthAnythingV2Estimator(encoder='vitb', num_threads=num_threads) +# result = estimator.process_video('samples/1080p24fps/barcelona-lights_1080p.MOV', 'output/dav2_base') +# print('RESULT:', result) + +# print('\n' + '='*60) +# print('Benchmarking Depth Anything V2 Large') +# print('='*60) +# estimator = DepthAnythingV2Estimator(encoder='vitl', num_threads=num_threads) +# result = estimator.process_video('samples/1080p24fps/barcelona-lights_1080p.MOV', 'output/dav2_large') +# print('RESULT:', result) -- knotmirror 0.0.1