Adding ONNX file of this model
#2
by
AdamCodd
- opened
- onnx/config.json +39 -0
- onnx/model.onnx +3 -0
- onnx/preprocessor_config.json +24 -0
onnx/config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AdamCodd/yolos-small-person",
|
3 |
+
"architectures": [
|
4 |
+
"YolosForObjectDetection"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"auxiliary_loss": false,
|
8 |
+
"bbox_cost": 5,
|
9 |
+
"bbox_loss_coefficient": 5,
|
10 |
+
"class_cost": 1,
|
11 |
+
"eos_coefficient": 0.1,
|
12 |
+
"giou_cost": 2,
|
13 |
+
"giou_loss_coefficient": 2,
|
14 |
+
"hidden_act": "gelu",
|
15 |
+
"hidden_dropout_prob": 0.0,
|
16 |
+
"hidden_size": 384,
|
17 |
+
"id2label": {
|
18 |
+
"0": "person"
|
19 |
+
},
|
20 |
+
"image_size": [
|
21 |
+
512,
|
22 |
+
864
|
23 |
+
],
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 1536,
|
26 |
+
"label2id": {
|
27 |
+
"person": 0
|
28 |
+
},
|
29 |
+
"layer_norm_eps": 1e-12,
|
30 |
+
"model_type": "yolos",
|
31 |
+
"num_attention_heads": 6,
|
32 |
+
"num_channels": 3,
|
33 |
+
"num_detection_tokens": 100,
|
34 |
+
"num_hidden_layers": 12,
|
35 |
+
"patch_size": 16,
|
36 |
+
"qkv_bias": true,
|
37 |
+
"transformers_version": "4.37.2",
|
38 |
+
"use_mid_position_embeddings": true
|
39 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf0b983f33b7ffc495c19bdd735c33fd0164254ae7a54ede36d1099e40593e20
|
3 |
+
size 122882045
|
onnx/preprocessor_config.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_pad": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"format": "coco_detection",
|
7 |
+
"image_mean": [
|
8 |
+
0.485,
|
9 |
+
0.456,
|
10 |
+
0.406
|
11 |
+
],
|
12 |
+
"image_processor_type": "YolosFeatureExtractor",
|
13 |
+
"image_std": [
|
14 |
+
0.229,
|
15 |
+
0.224,
|
16 |
+
0.225
|
17 |
+
],
|
18 |
+
"resample": 2,
|
19 |
+
"rescale_factor": 0.00392156862745098,
|
20 |
+
"size": {
|
21 |
+
"longest_edge": 1333,
|
22 |
+
"shortest_edge": 512
|
23 |
+
}
|
24 |
+
}
|