From fa0c9d82bfb9bf4406874b44d2e4470955f83cbf Mon Sep 17 00:00:00 2001 From: smthemex <138738845+smthemex@users.noreply.github.com> Date: Mon, 21 Apr 2025 17:14:30 +0800 Subject: [PATCH] I --- config/dinov2-giant/config.json | 24 +++++++++++++++++ config/dinov2-giant/preprocessor_config.json | 27 ++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 config/dinov2-giant/config.json create mode 100644 config/dinov2-giant/preprocessor_config.json diff --git a/config/dinov2-giant/config.json b/config/dinov2-giant/config.json new file mode 100644 index 0000000..5f6d789 --- /dev/null +++ b/config/dinov2-giant/config.json @@ -0,0 +1,24 @@ +{ + "architectures": [ + "Dinov2Model" + ], + "attention_probs_dropout_prob": 0.0, + "drop_path_rate": 0.0, + "hidden_act": "gelu", + "hidden_dropout_prob": 0.0, + "hidden_size": 1536, + "image_size": 518, + "initializer_range": 0.02, + "layer_norm_eps": 1e-06, + "layerscale_value": 1.0, + "mlp_ratio": 4, + "model_type": "dinov2", + "num_attention_heads": 24, + "num_channels": 3, + "num_hidden_layers": 40, + "patch_size": 14, + "qkv_bias": true, + "torch_dtype": "float32", + "transformers_version": "4.31.0.dev0", + "use_swiglu_ffn": true +} diff --git a/config/dinov2-giant/preprocessor_config.json b/config/dinov2-giant/preprocessor_config.json new file mode 100644 index 0000000..ff5b47c --- /dev/null +++ b/config/dinov2-giant/preprocessor_config.json @@ -0,0 +1,27 @@ +{ + "crop_size": { + "height": 224, + "width": 224 + }, + "do_center_crop": true, + "do_convert_rgb": true, + "do_normalize": true, + "do_rescale": true, + "do_resize": true, + "image_mean": [ + 0.485, + 0.456, + 0.406 + ], + "image_processor_type": "BitImageProcessor", + "image_std": [ + 0.229, + 0.224, + 0.225 + ], + "resample": 3, + "rescale_factor": 0.00392156862745098, + "size": { + "shortest_edge": 256 + } +}