dubattim commited on
Commit
df8a512
·
verified ·
1 Parent(s): fd43c20

Upload Dinov2ForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +34 -10
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,10 +1,11 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224",
 
3
  "architectures": [
4
- "ViTForImageClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.0,
7
- "encoder_stride": 16,
8
  "hidden_act": "gelu",
9
  "hidden_dropout_prob": 0.0,
10
  "hidden_size": 768,
@@ -110,9 +111,8 @@
110
  "98": "Tu-154",
111
  "99": "Yak-42"
112
  },
113
- "image_size": 224,
114
  "initializer_range": 0.02,
115
- "intermediate_size": 3072,
116
  "label2id": {
117
  "707-320": 0,
118
  "727-200": 1,
@@ -215,14 +215,38 @@
215
  "Tu-154": 98,
216
  "Yak-42": 99
217
  },
218
- "layer_norm_eps": 1e-12,
219
- "model_type": "vit",
 
 
220
  "num_attention_heads": 12,
221
  "num_channels": 3,
222
  "num_hidden_layers": 12,
223
- "patch_size": 16,
224
- "problem_type": "single_label_classification",
 
 
 
 
 
225
  "qkv_bias": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
  "torch_dtype": "float32",
227
- "transformers_version": "4.46.0"
 
228
  }
 
1
  {
2
+ "_name_or_path": "facebook/dinov2-base",
3
+ "apply_layernorm": true,
4
  "architectures": [
5
+ "Dinov2ForImageClassification"
6
  ],
7
  "attention_probs_dropout_prob": 0.0,
8
+ "drop_path_rate": 0.0,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.0,
11
  "hidden_size": 768,
 
111
  "98": "Tu-154",
112
  "99": "Yak-42"
113
  },
114
+ "image_size": 518,
115
  "initializer_range": 0.02,
 
116
  "label2id": {
117
  "707-320": 0,
118
  "727-200": 1,
 
215
  "Tu-154": 98,
216
  "Yak-42": 99
217
  },
218
+ "layer_norm_eps": 1e-06,
219
+ "layerscale_value": 1.0,
220
+ "mlp_ratio": 4,
221
+ "model_type": "dinov2",
222
  "num_attention_heads": 12,
223
  "num_channels": 3,
224
  "num_hidden_layers": 12,
225
+ "out_features": [
226
+ "stage12"
227
+ ],
228
+ "out_indices": [
229
+ 12
230
+ ],
231
+ "patch_size": 14,
232
  "qkv_bias": true,
233
+ "reshape_hidden_states": true,
234
+ "stage_names": [
235
+ "stem",
236
+ "stage1",
237
+ "stage2",
238
+ "stage3",
239
+ "stage4",
240
+ "stage5",
241
+ "stage6",
242
+ "stage7",
243
+ "stage8",
244
+ "stage9",
245
+ "stage10",
246
+ "stage11",
247
+ "stage12"
248
+ ],
249
  "torch_dtype": "float32",
250
+ "transformers_version": "4.46.0",
251
+ "use_swiglu_ffn": false
252
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8b221d922526f99ea947cba30433fe0fb9d48515ace4ac22a10072b1397c0d94
3
- size 343525432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:375ae0adda802f8aeba1e51bde7a61099ec629564b46d4f0d72008b4d118c82a
3
+ size 346962448