EC2 Default User commited on
Commit
6c7e5fd
2 Parent(s): 9a3a807 4294e62

Added onnx files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.onnx filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dit-base-patient-chart",
3
+ "architectures": [
4
+ "BeitForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "auxiliary_channels": 256,
8
+ "auxiliary_concat_input": false,
9
+ "auxiliary_loss_weight": 0.4,
10
+ "auxiliary_num_convs": 1,
11
+ "drop_path_rate": 0.1,
12
+ "finetuning_task": "image-classification",
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.0,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "patient",
18
+ "1": "worklist"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "patient": "0",
25
+ "worklist": "1"
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "layer_scale_init_value": 0.1,
29
+ "model_type": "beit",
30
+ "num_attention_heads": 12,
31
+ "num_channels": 3,
32
+ "num_hidden_layers": 12,
33
+ "out_indices": [
34
+ 3,
35
+ 5,
36
+ 7,
37
+ 11
38
+ ],
39
+ "patch_size": 16,
40
+ "pool_scales": [
41
+ 1,
42
+ 2,
43
+ 3,
44
+ 6
45
+ ],
46
+ "problem_type": "single_label_classification",
47
+ "semantic_loss_ignore_index": 255,
48
+ "transformers_version": "4.33.2",
49
+ "use_absolute_position_embeddings": true,
50
+ "use_auxiliary_head": true,
51
+ "use_mask_token": true,
52
+ "use_mean_pooling": true,
53
+ "use_relative_position_bias": false,
54
+ "use_shared_relative_position_bias": false,
55
+ "vocab_size": 8192
56
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b049556636f6299c89a499294417b9aecd33e051d3a178e95023d935146e553
3
+ size 343506465
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb9dabcaa9754e890da22f747340b10ff3f6a06f631330b247ebe64f1632af80
3
+ size 87112360
preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": false,
7
+ "do_normalize": true,
8
+ "do_reduce_labels": false,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "image_processor_type": "BeitFeatureExtractor",
17
+ "image_std": [
18
+ 0.5,
19
+ 0.5,
20
+ 0.5
21
+ ],
22
+ "resample": 2,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "height": 224,
26
+ "width": 224
27
+ }
28
+ }
quantize_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": false,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "model": {
6
+ "op_types": [
7
+ "Sub",
8
+ "Erf",
9
+ "Expand",
10
+ "Where",
11
+ "Mul",
12
+ "ReduceMean",
13
+ "Concat",
14
+ "Shape",
15
+ "Conv",
16
+ "Div",
17
+ "Constant",
18
+ "Reshape",
19
+ "Add",
20
+ "Transpose",
21
+ "Gather",
22
+ "Unsqueeze",
23
+ "Pow",
24
+ "Slice",
25
+ "Equal",
26
+ "ConstantOfShape",
27
+ "Softmax",
28
+ "Sqrt",
29
+ "Gemm",
30
+ "MatMul"
31
+ ],
32
+ "weight_type": "QUInt8"
33
+ }
34
+ }
35
+ }