Views
No views yet
vision-cli depth-anything -m Depth-Anything-V2-Small-F16.gguf -i input.png -o depth.png1image_data image = image_load("input.png");
2backend_device device = backend_init();
3depthany_model model = depthany_load_model("Depth-Anything-V2-Small-F16.gguf", device);
4image_data depth = depthany_compute(model, image);
5image_data output = image_f32_to_u8(depth, image_format::alpha_u8);
6image_save(output, "depth.png");