Commit
·
437788a
1
Parent(s):
d72133f
Upload tiny models for ViTHybridModel
Browse files- config.json +124 -0
- preprocessor_config.json +27 -0
- pytorch_model.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_commit_hash": null,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"ViTHybridModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"backbone_config": {
|
| 8 |
+
"_name_or_path": "",
|
| 9 |
+
"add_cross_attention": false,
|
| 10 |
+
"architectures": null,
|
| 11 |
+
"bad_words_ids": null,
|
| 12 |
+
"begin_suppress_tokens": null,
|
| 13 |
+
"bos_token_id": null,
|
| 14 |
+
"chunk_size_feed_forward": 0,
|
| 15 |
+
"cross_attention_hidden_size": null,
|
| 16 |
+
"decoder_start_token_id": null,
|
| 17 |
+
"depths": [
|
| 18 |
+
3,
|
| 19 |
+
4,
|
| 20 |
+
9
|
| 21 |
+
],
|
| 22 |
+
"diversity_penalty": 0.0,
|
| 23 |
+
"do_sample": false,
|
| 24 |
+
"drop_path_rate": 0.0,
|
| 25 |
+
"early_stopping": false,
|
| 26 |
+
"embedding_dynamic_padding": true,
|
| 27 |
+
"embedding_size": 64,
|
| 28 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 29 |
+
"eos_token_id": null,
|
| 30 |
+
"exponential_decay_length_penalty": null,
|
| 31 |
+
"finetuning_task": null,
|
| 32 |
+
"forced_bos_token_id": null,
|
| 33 |
+
"forced_eos_token_id": null,
|
| 34 |
+
"global_padding": "SAME",
|
| 35 |
+
"hidden_act": "relu",
|
| 36 |
+
"hidden_sizes": [
|
| 37 |
+
4,
|
| 38 |
+
8,
|
| 39 |
+
16,
|
| 40 |
+
32
|
| 41 |
+
],
|
| 42 |
+
"id2label": {
|
| 43 |
+
"0": "LABEL_0",
|
| 44 |
+
"1": "LABEL_1"
|
| 45 |
+
},
|
| 46 |
+
"is_decoder": false,
|
| 47 |
+
"is_encoder_decoder": false,
|
| 48 |
+
"label2id": {
|
| 49 |
+
"LABEL_0": 0,
|
| 50 |
+
"LABEL_1": 1
|
| 51 |
+
},
|
| 52 |
+
"layer_type": "bottleneck",
|
| 53 |
+
"length_penalty": 1.0,
|
| 54 |
+
"max_length": 20,
|
| 55 |
+
"min_length": 0,
|
| 56 |
+
"model_type": "bit",
|
| 57 |
+
"no_repeat_ngram_size": 0,
|
| 58 |
+
"num_beam_groups": 1,
|
| 59 |
+
"num_beams": 1,
|
| 60 |
+
"num_channels": 3,
|
| 61 |
+
"num_groups": 2,
|
| 62 |
+
"num_return_sequences": 1,
|
| 63 |
+
"out_features": [
|
| 64 |
+
"stage1",
|
| 65 |
+
"stage2",
|
| 66 |
+
"stage3"
|
| 67 |
+
],
|
| 68 |
+
"output_attentions": false,
|
| 69 |
+
"output_hidden_states": false,
|
| 70 |
+
"output_scores": false,
|
| 71 |
+
"output_stride": 32,
|
| 72 |
+
"pad_token_id": null,
|
| 73 |
+
"prefix": null,
|
| 74 |
+
"problem_type": null,
|
| 75 |
+
"pruned_heads": {},
|
| 76 |
+
"remove_invalid_values": false,
|
| 77 |
+
"repetition_penalty": 1.0,
|
| 78 |
+
"return_dict": true,
|
| 79 |
+
"return_dict_in_generate": false,
|
| 80 |
+
"sep_token_id": null,
|
| 81 |
+
"stage_names": [
|
| 82 |
+
"stem",
|
| 83 |
+
"stage1",
|
| 84 |
+
"stage2",
|
| 85 |
+
"stage3"
|
| 86 |
+
],
|
| 87 |
+
"suppress_tokens": null,
|
| 88 |
+
"task_specific_params": null,
|
| 89 |
+
"temperature": 1.0,
|
| 90 |
+
"tf_legacy_loss": false,
|
| 91 |
+
"tie_encoder_decoder": false,
|
| 92 |
+
"tie_word_embeddings": true,
|
| 93 |
+
"tokenizer_class": null,
|
| 94 |
+
"top_k": 50,
|
| 95 |
+
"top_p": 1.0,
|
| 96 |
+
"torch_dtype": null,
|
| 97 |
+
"torchscript": false,
|
| 98 |
+
"transformers_version": "4.28.0.dev0",
|
| 99 |
+
"typical_p": 1.0,
|
| 100 |
+
"use_bfloat16": false,
|
| 101 |
+
"width_factor": 1
|
| 102 |
+
},
|
| 103 |
+
"backbone_featmap_shape": [
|
| 104 |
+
1,
|
| 105 |
+
16,
|
| 106 |
+
4,
|
| 107 |
+
4
|
| 108 |
+
],
|
| 109 |
+
"hidden_act": "gelu",
|
| 110 |
+
"hidden_dropout_prob": 0.1,
|
| 111 |
+
"hidden_size": 32,
|
| 112 |
+
"image_size": 64,
|
| 113 |
+
"initializer_range": 0.02,
|
| 114 |
+
"intermediate_size": 37,
|
| 115 |
+
"layer_norm_eps": 1e-12,
|
| 116 |
+
"model_type": "vit-hybrid",
|
| 117 |
+
"num_attention_heads": 4,
|
| 118 |
+
"num_channels": 3,
|
| 119 |
+
"num_hidden_layers": 5,
|
| 120 |
+
"patch_size": 2,
|
| 121 |
+
"qkv_bias": true,
|
| 122 |
+
"torch_dtype": "float32",
|
| 123 |
+
"transformers_version": null
|
| 124 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 64,
|
| 4 |
+
"width": 64
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": true,
|
| 7 |
+
"do_convert_rgb": true,
|
| 8 |
+
"do_normalize": 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": "ViTHybridImageProcessor",
|
| 17 |
+
"image_std": [
|
| 18 |
+
0.26862954,
|
| 19 |
+
0.26130258,
|
| 20 |
+
0.27577711
|
| 21 |
+
],
|
| 22 |
+
"resample": 3,
|
| 23 |
+
"rescale_factor": 0.00392156862745098,
|
| 24 |
+
"size": {
|
| 25 |
+
"shortest_edge": 64
|
| 26 |
+
}
|
| 27 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b70f58375067edaa1a5860d9491d2a31442a2a0c02e4d3dd2e7ef38a994a977
|
| 3 |
+
size 326813
|