Skip to content

Commit d381eaf

Browse files
committed
depth-anything: fix benchmark and add numbers, bump version
1 parent 57b1d0b commit d381eaf

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.28)
22

3-
project(vision.cpp VERSION 0.1.0 LANGUAGES CXX)
3+
project(vision.cpp VERSION 0.2.0 LANGUAGES CXX)
44

55
option(VISP_VULKAN "Enable Vulkan support" OFF)
66
option(VISP_DEV "Enable development mode" OFF)
@@ -30,7 +30,7 @@ elseif(CMAKE_BUILD_TYPE)
3030
endif()
3131
endif()
3232

33-
# Configure address sanitizer (Clang only)
33+
# Configure address sanitizer
3434

3535
if(VISP_ASAN)
3636
if(MSVC)

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ as other frameworks for inference speed, but with:
209209
| Lite | cpu | f32 | 4505 ms | 10900 ms | 6978 ms |
210210
| Lite | gpu | f16 | 85 ms | 84 ms | |
211211

212+
#### Depth-Anything, 518x714
213+
214+
| Model | | | _vision.cpp_ | PyTorch |
215+
| :---- | :--- | :--- | -----------: | ------: |
216+
| Small | gpu | f16 | 11 ms | 10 ms |
217+
| Base | gpu | f16 | 24 ms | 22 ms |
218+
212219
#### MI-GAN, 512x512
213220

214221
| Model | | | _vision.cpp_ | PyTorch |
@@ -218,7 +225,7 @@ as other frameworks for inference speed, but with:
218225

219226
#### Setup
220227

221-
* vision.cpp: using vision-bench, GPU via Vulkan, eg. `vision-bench -m sam -b cpu`
228+
* vision.cpp: using vision-bench, GPU via Vulkan, eg. `vision-bench -m sam`
222229
* PyTorch: v2.7.1+cu128, eager eval, GPU via CUDA, average n iterations after warm-up
223230

224231
## Dependencies (integrated)

tests/benchmark.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ bench_timings benchmark_birefnet(path model_path, backend_device& backend) {
9494
}
9595

9696
bench_timings benchmark_depth_anything(path model_path, backend_device& backend) {
97-
path input_path = test_dir().input / "cat-and-hat.jpg";
97+
path input_path = test_dir().input / "wardrobe.jpg";
9898

9999
depthany_model model = depthany_load_model(model_path.string().c_str(), backend);
100100
image_data input = image_load(input_path.string().c_str());
101-
image_data input_data = depthany_process_input(input, model.params);
102-
103101
depthany_compute(model, input);
102+
103+
image_data input_data = depthany_process_input(input, model.params);
104104
return run_benchmark(model.graph, backend, 12, {{model.input, input_data}});
105105
}
106106

0 commit comments

Comments
 (0)