KerasHub
prasadsachin commited on
Commit
196e39b
·
verified ·
1 Parent(s): 0648d93

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +23 -0
  2. config.json +30 -0
  3. image_converter.json +36 -0
  4. metadata.json +7 -0
  5. model.weights.h5 +3 -0
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras-hub
3
+ ---
4
+ This is a [`DINOV2` model](https://keras.io/api/keras_hub/models/dinov2) uploaded using the KerasHub library and can be used with JAX, TensorFlow, and PyTorch backends.
5
+ Model config:
6
+ * **name:** dinov2_backbone
7
+ * **trainable:** True
8
+ * **patch_size:** 14
9
+ * **num_layers:** 12
10
+ * **hidden_dim:** 768
11
+ * **num_heads:** 12
12
+ * **intermediate_dim:** 3072
13
+ * **layer_scale_init_value:** 1.0
14
+ * **num_register_tokens:** 0
15
+ * **use_mask_token:** True
16
+ * **use_swiglu_ffn:** False
17
+ * **dropout_rate:** 0.0
18
+ * **drop_path_rate:** 0.0
19
+ * **image_shape:** [518, 518, 3]
20
+ * **position_embedding_shape:** [518, 518]
21
+ * **antialias_in_interpolation:** False
22
+
23
+ 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,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.dinov2.dinov2_backbone",
3
+ "class_name": "DINOV2Backbone",
4
+ "config": {
5
+ "name": "dinov2_backbone",
6
+ "trainable": true,
7
+ "patch_size": 14,
8
+ "num_layers": 12,
9
+ "hidden_dim": 768,
10
+ "num_heads": 12,
11
+ "intermediate_dim": 3072,
12
+ "layer_scale_init_value": 1.0,
13
+ "num_register_tokens": 0,
14
+ "use_mask_token": true,
15
+ "use_swiglu_ffn": false,
16
+ "dropout_rate": 0.0,
17
+ "drop_path_rate": 0.0,
18
+ "image_shape": [
19
+ 518,
20
+ 518,
21
+ 3
22
+ ],
23
+ "position_embedding_shape": [
24
+ 518,
25
+ 518
26
+ ],
27
+ "antialias_in_interpolation": false
28
+ },
29
+ "registered_name": "keras_hub>DINOV2Backbone"
30
+ }
image_converter.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.dinov2.dinov2_image_converter",
3
+ "class_name": "DINOV2ImageConverter",
4
+ "config": {
5
+ "name": "dinov2_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>DINOV2ImageConverter"
36
+ }
metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.8.0",
3
+ "keras_hub_version": "0.22.0.dev0",
4
+ "parameter_count": 87632640,
5
+ "date_saved": "2025-07-18@19:10:25",
6
+ "tasks": []
7
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1247b249fe468beb37da15a353d11347b8636d6afdb1d07e301ea1aa48d4d3c7
3
+ size 351057296