Upload folder using huggingface_hub
Browse files- README.md +17 -0
- config.json +77 -0
- image_converter.json +36 -0
- metadata.json +9 -0
- model.weights.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: keras-hub
|
| 3 |
+
---
|
| 4 |
+
This is a [`DepthAnything` model](https://keras.io/api/keras_hub/models/depth_anything) uploaded using the KerasHub library and can be used with JAX, TensorFlow, and PyTorch backends.
|
| 5 |
+
Model config:
|
| 6 |
+
* **name:** depth_anything_backbone
|
| 7 |
+
* **trainable:** True
|
| 8 |
+
* **dtype:** {'module': 'keras', 'class_name': 'DTypePolicy', 'config': {'name': 'float32'}, 'registered_name': None}
|
| 9 |
+
* **image_encoder:** {'module': 'keras_hub.src.models.dinov2.dinov2_backbone', 'class_name': 'DINOV2Backbone', 'config': {'name': 'dinov2_backbone', 'trainable': True, 'dtype': {'module': 'keras', 'class_name': 'DTypePolicy', 'config': {'name': 'float32'}, 'registered_name': None}, 'patch_size': 14, 'num_layers': 12, 'hidden_dim': 384, 'num_heads': 6, 'intermediate_dim': 1536, 'layer_scale_init_value': 1.0, 'num_register_tokens': 0, 'use_mask_token': True, 'use_swiglu_ffn': False, 'dropout_rate': 0.0, 'drop_path_rate': 0.0, 'image_shape': [518, 518, 3], 'position_embedding_shape': [518, 518], 'antialias_in_interpolation': False, 'apply_layernorm': True}, 'registered_name': 'keras_hub>DINOV2Backbone'}
|
| 10 |
+
* **reassemble_factors:** [4, 2, 1, 0.5]
|
| 11 |
+
* **neck_hidden_dims:** [48, 96, 192, 384]
|
| 12 |
+
* **fusion_hidden_dim:** 64
|
| 13 |
+
* **head_hidden_dim:** 32
|
| 14 |
+
* **head_in_index:** -1
|
| 15 |
+
* **feature_keys:** ['stage3', 'stage6', 'stage9', 'stage12']
|
| 16 |
+
|
| 17 |
+
This model card has been generated automatically and should be completed by the model author. See [Model Cards documentation](https://huggingface.co/docs/hub/model-cards) for more information.
|
config.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"module": "keras_hub.src.models.depth_anything.depth_anything_backbone",
|
| 3 |
+
"class_name": "DepthAnythingBackbone",
|
| 4 |
+
"config": {
|
| 5 |
+
"name": "depth_anything_backbone",
|
| 6 |
+
"trainable": true,
|
| 7 |
+
"dtype": {
|
| 8 |
+
"module": "keras",
|
| 9 |
+
"class_name": "DTypePolicy",
|
| 10 |
+
"config": {
|
| 11 |
+
"name": "float32"
|
| 12 |
+
},
|
| 13 |
+
"registered_name": null
|
| 14 |
+
},
|
| 15 |
+
"image_encoder": {
|
| 16 |
+
"module": "keras_hub.src.models.dinov2.dinov2_backbone",
|
| 17 |
+
"class_name": "DINOV2Backbone",
|
| 18 |
+
"config": {
|
| 19 |
+
"name": "dinov2_backbone",
|
| 20 |
+
"trainable": true,
|
| 21 |
+
"dtype": {
|
| 22 |
+
"module": "keras",
|
| 23 |
+
"class_name": "DTypePolicy",
|
| 24 |
+
"config": {
|
| 25 |
+
"name": "float32"
|
| 26 |
+
},
|
| 27 |
+
"registered_name": null
|
| 28 |
+
},
|
| 29 |
+
"patch_size": 14,
|
| 30 |
+
"num_layers": 12,
|
| 31 |
+
"hidden_dim": 384,
|
| 32 |
+
"num_heads": 6,
|
| 33 |
+
"intermediate_dim": 1536,
|
| 34 |
+
"layer_scale_init_value": 1.0,
|
| 35 |
+
"num_register_tokens": 0,
|
| 36 |
+
"use_mask_token": true,
|
| 37 |
+
"use_swiglu_ffn": false,
|
| 38 |
+
"dropout_rate": 0.0,
|
| 39 |
+
"drop_path_rate": 0.0,
|
| 40 |
+
"image_shape": [
|
| 41 |
+
518,
|
| 42 |
+
518,
|
| 43 |
+
3
|
| 44 |
+
],
|
| 45 |
+
"position_embedding_shape": [
|
| 46 |
+
518,
|
| 47 |
+
518
|
| 48 |
+
],
|
| 49 |
+
"antialias_in_interpolation": false,
|
| 50 |
+
"apply_layernorm": true
|
| 51 |
+
},
|
| 52 |
+
"registered_name": "keras_hub>DINOV2Backbone"
|
| 53 |
+
},
|
| 54 |
+
"reassemble_factors": [
|
| 55 |
+
4,
|
| 56 |
+
2,
|
| 57 |
+
1,
|
| 58 |
+
0.5
|
| 59 |
+
],
|
| 60 |
+
"neck_hidden_dims": [
|
| 61 |
+
48,
|
| 62 |
+
96,
|
| 63 |
+
192,
|
| 64 |
+
384
|
| 65 |
+
],
|
| 66 |
+
"fusion_hidden_dim": 64,
|
| 67 |
+
"head_hidden_dim": 32,
|
| 68 |
+
"head_in_index": -1,
|
| 69 |
+
"feature_keys": [
|
| 70 |
+
"stage3",
|
| 71 |
+
"stage6",
|
| 72 |
+
"stage9",
|
| 73 |
+
"stage12"
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
"registered_name": "keras_hub>DepthAnythingBackbone"
|
| 77 |
+
}
|
image_converter.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"module": "keras_hub.src.models.depth_anything.depth_anything_image_converter",
|
| 3 |
+
"class_name": "DepthAnythingImageConverter",
|
| 4 |
+
"config": {
|
| 5 |
+
"name": "depth_anything_image_converter",
|
| 6 |
+
"trainable": true,
|
| 7 |
+
"dtype": {
|
| 8 |
+
"module": "keras",
|
| 9 |
+
"class_name": "DTypePolicy",
|
| 10 |
+
"config": {
|
| 11 |
+
"name": "float32"
|
| 12 |
+
},
|
| 13 |
+
"registered_name": null
|
| 14 |
+
},
|
| 15 |
+
"image_size": [
|
| 16 |
+
518,
|
| 17 |
+
518
|
| 18 |
+
],
|
| 19 |
+
"scale": [
|
| 20 |
+
0.017124753831663668,
|
| 21 |
+
0.01750700280112045,
|
| 22 |
+
0.017429193899782133
|
| 23 |
+
],
|
| 24 |
+
"offset": [
|
| 25 |
+
-2.1179039301310043,
|
| 26 |
+
-2.0357142857142856,
|
| 27 |
+
-1.8044444444444445
|
| 28 |
+
],
|
| 29 |
+
"interpolation": "bicubic",
|
| 30 |
+
"antialias": false,
|
| 31 |
+
"crop_to_aspect_ratio": true,
|
| 32 |
+
"pad_to_aspect_ratio": false,
|
| 33 |
+
"bounding_box_format": "yxyx"
|
| 34 |
+
},
|
| 35 |
+
"registered_name": "keras_hub>DepthAnythingImageConverter"
|
| 36 |
+
}
|
metadata.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"keras_version": "3.10.0",
|
| 3 |
+
"keras_hub_version": "0.23.0.dev0",
|
| 4 |
+
"parameter_count": 25311169,
|
| 5 |
+
"date_saved": "2025-09-26@21:58:59",
|
| 6 |
+
"tasks": [
|
| 7 |
+
"DepthEstimator"
|
| 8 |
+
]
|
| 9 |
+
}
|
model.weights.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7367dabc7e0e28512aea7d94f845dba542e4bdd88142debf580cc98c8d683b49
|
| 3 |
+
size 102051640
|