pcuenq HF staff commited on
Commit
6487c11
1 Parent(s): 4348283

Model card updates and fixes

Browse files
Files changed (1) hide show
  1. README.md +13 -11
README.md CHANGED
@@ -1,4 +1,7 @@
1
  ---
 
 
 
2
  license: apache-2.0
3
  ---
4
 
@@ -6,8 +9,6 @@ license: apache-2.0
6
 
7
  Depth Anything model was introduced in the paper [Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data](https://arxiv.org/abs/2401.10891) by Lihe Yang et al. and first released in [this repository](https://github.com/LiheYoung/Depth-Anything).
8
 
9
- Disclaimer: The team releasing Depth Anything did not write a model card for this model so this model card has been written by the Hugging Face team.
10
-
11
  ## Model description
12
 
13
  Depth Anything leverages the [DPT](https://huggingface.co/docs/transformers/model_doc/dpt) architecture with a [DINOv2](https://huggingface.co/docs/transformers/model_doc/dinov2) backbone.
@@ -23,12 +24,9 @@ alt="drawing" width="600"/>
23
 
24
  | Variant | Parameters | Size (MB) | Weight precision | Act. precision | abs-rel error | abs-rel reference |
25
  | ------------------------------------------------------- | ---------: | --------: | ---------------- | -------------- | ------------: | ----------------: |
26
- | base-original (PyTorch) | 97.5M | 390 | Float32 | Float32 | | |
27
- | small-original (PyTorch) | 24.8M | 99.2 | Float32 | Float32 | 0.1589 | base-original |
28
- | [base-float32](depth-anything-base-float32.mlpackage) | 97.5M | 194.6 | Float32 | Float32 | 0.0056 | base-original |
29
- | [base-float16](depth-anything-base-float16.mlpackage) | 97.5M | 194.6 | Float16 | Float16 | 0.0061 | base-original |
30
- | [small-float32](depth-anything-small-float32.mlpackage) | 24.8M | 99.0 | Float32 | Float32 | 0.0073 | small-original |
31
- | [small-float16](depth-anything-small-float16.mlpackage) | 24.8M | 45.8 | Float16 | Float16 | 0.0077 | small-original |
32
 
33
  ## Evaluation - Inference time
34
 
@@ -45,10 +43,10 @@ The following results use the small-float16 variant.
45
 
46
  ## Download
47
 
48
- Install `huggingface-hub`
49
 
50
  ```bash
51
- pip install huggingface-hub
52
  ```
53
 
54
  To download one of the `.mlpackage` folders to the `models` directory:
@@ -56,8 +54,12 @@ To download one of the `.mlpackage` folders to the `models` directory:
56
  ```bash
57
  huggingface-cli download \
58
  --local-dir models --local-dir-use-symlinks False \
59
- coreml-projects/depth-anything \
60
  --include "DepthAnythingSmallF16.mlpackage/*"
61
  ```
62
 
63
  To download everything, skip the `--include` argument.
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - depth-estimation
4
+ library_name: coreml
5
  license: apache-2.0
6
  ---
7
 
 
9
 
10
  Depth Anything model was introduced in the paper [Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data](https://arxiv.org/abs/2401.10891) by Lihe Yang et al. and first released in [this repository](https://github.com/LiheYoung/Depth-Anything).
11
 
 
 
12
  ## Model description
13
 
14
  Depth Anything leverages the [DPT](https://huggingface.co/docs/transformers/model_doc/dpt) architecture with a [DINOv2](https://huggingface.co/docs/transformers/model_doc/dinov2) backbone.
 
24
 
25
  | Variant | Parameters | Size (MB) | Weight precision | Act. precision | abs-rel error | abs-rel reference |
26
  | ------------------------------------------------------- | ---------: | --------: | ---------------- | -------------- | ------------: | ----------------: |
27
+ | [small-original](https://huggingface.co/LiheYoung/depth-anything-small-hf) (PyTorch) | 24.8M | 99.2 | Float32 | Float32 | | |
28
+ | [DepthAnythingSmallF32](DepthAnythingSmallF32.mlpackage) | 24.8M | 99.0 | Float32 | Float32 | 0.0073 | small-original |
29
+ | [DepthAnythingSmallF16](DepthAnythingSmallF16.mlpackage) | 24.8M | 45.8 | Float16 | Float16 | 0.0077 | small-original |
 
 
 
30
 
31
  ## Evaluation - Inference time
32
 
 
43
 
44
  ## Download
45
 
46
+ Install `huggingface-cli`
47
 
48
  ```bash
49
+ brew install huggingface-cli
50
  ```
51
 
52
  To download one of the `.mlpackage` folders to the `models` directory:
 
54
  ```bash
55
  huggingface-cli download \
56
  --local-dir models --local-dir-use-symlinks False \
57
+ apple/coreml-depth-anything-small \
58
  --include "DepthAnythingSmallF16.mlpackage/*"
59
  ```
60
 
61
  To download everything, skip the `--include` argument.
62
+
63
+ ## Integrate in Swift apps
64
+
65
+ The [`huggingface/coreml-examples`](https://github.com/huggingface/coreml-examples/blob/main/depth-anything-example/README.md) repository contains sample Swift code for `coreml-depth-anything-small` and other models. See [the instructions there](https://github.com/huggingface/coreml-examples/tree/main/depth-anything-example) to build the demo app, which shows how to use the model in your own Swift apps.