Update tiny models for Owlv2ForObjectDetection
Browse files- config.json +45 -0
- model.safetensors +3 -0
- preprocessor_config.json +28 -0
- tokenizer.json +0 -0
- tokenizer_config.json +17 -0
config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Owlv2ForObjectDetection"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float32",
|
| 6 |
+
"initializer_factor": 1.0,
|
| 7 |
+
"logit_scale_init_value": 2.6592,
|
| 8 |
+
"model_type": "owlv2",
|
| 9 |
+
"projection_dim": 64,
|
| 10 |
+
"text_config": {
|
| 11 |
+
"attention_dropout": 0.1,
|
| 12 |
+
"bos_token_id": 49406,
|
| 13 |
+
"dropout": 0.1,
|
| 14 |
+
"eos_token_id": 49407,
|
| 15 |
+
"hidden_act": "quick_gelu",
|
| 16 |
+
"hidden_size": 64,
|
| 17 |
+
"initializer_factor": 1.0,
|
| 18 |
+
"initializer_range": 0.02,
|
| 19 |
+
"intermediate_size": 37,
|
| 20 |
+
"layer_norm_eps": 1e-05,
|
| 21 |
+
"max_position_embeddings": 200,
|
| 22 |
+
"model_type": "owlv2_text_model",
|
| 23 |
+
"num_attention_heads": 4,
|
| 24 |
+
"num_hidden_layers": 12,
|
| 25 |
+
"pad_token_id": 0,
|
| 26 |
+
"vocab_size": 49408
|
| 27 |
+
},
|
| 28 |
+
"transformers_version": "5.16.0.dev0",
|
| 29 |
+
"vision_config": {
|
| 30 |
+
"attention_dropout": 0.1,
|
| 31 |
+
"dropout": 0.1,
|
| 32 |
+
"hidden_act": "quick_gelu",
|
| 33 |
+
"hidden_size": 32,
|
| 34 |
+
"image_size": 32,
|
| 35 |
+
"initializer_factor": 1.0,
|
| 36 |
+
"initializer_range": 0.02,
|
| 37 |
+
"intermediate_size": 37,
|
| 38 |
+
"layer_norm_eps": 1e-05,
|
| 39 |
+
"model_type": "owlv2_vision_model",
|
| 40 |
+
"num_attention_heads": 4,
|
| 41 |
+
"num_channels": 3,
|
| 42 |
+
"num_hidden_layers": 2,
|
| 43 |
+
"patch_size": 2
|
| 44 |
+
}
|
| 45 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ac726e2ba5d9565d2e5e054571b2ac3d9a4708efa28c3662c3873ed69f115ae
|
| 3 |
+
size 13914256
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 32,
|
| 4 |
+
"width": 32
|
| 5 |
+
},
|
| 6 |
+
"do_convert_rgb": true,
|
| 7 |
+
"do_normalize": true,
|
| 8 |
+
"do_pad": true,
|
| 9 |
+
"do_rescale": true,
|
| 10 |
+
"do_resize": true,
|
| 11 |
+
"image_mean": [
|
| 12 |
+
0.48145466,
|
| 13 |
+
0.4578275,
|
| 14 |
+
0.40821073
|
| 15 |
+
],
|
| 16 |
+
"image_processor_type": "Owlv2ImageProcessor",
|
| 17 |
+
"image_std": [
|
| 18 |
+
0.26862954,
|
| 19 |
+
0.26130258,
|
| 20 |
+
0.27577711
|
| 21 |
+
],
|
| 22 |
+
"resample": 2,
|
| 23 |
+
"rescale_factor": 0.00392156862745098,
|
| 24 |
+
"size": {
|
| 25 |
+
"height": 32,
|
| 26 |
+
"width": 32
|
| 27 |
+
}
|
| 28 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<|startoftext|>",
|
| 5 |
+
"clean_up_tokenization_spaces": true,
|
| 6 |
+
"do_lower_case": true,
|
| 7 |
+
"eos_token": "<|endoftext|>",
|
| 8 |
+
"errors": "replace",
|
| 9 |
+
"extra_special_tokens": [],
|
| 10 |
+
"is_local": true,
|
| 11 |
+
"local_files_only": false,
|
| 12 |
+
"model_max_length": 16,
|
| 13 |
+
"pad_token": "!",
|
| 14 |
+
"processor_class": "Owlv2Processor",
|
| 15 |
+
"tokenizer_class": "CLIPTokenizer",
|
| 16 |
+
"unk_token": "<|endoftext|>"
|
| 17 |
+
}
|