Skip to content

Commit 55e8b3c

Browse files
author
Julia Kamelina
authored
model_tools: add input info to configs (#3183)
* support input info in configs * update public models configs * update intel models configs
1 parent 1c4c09c commit 55e8b3c

File tree

290 files changed

+1696
-412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+1696
-412
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ For replacement operation:
113113
- `replacement` — Replacement string
114114
- `count` (*optional*) — Exact number of replacements (if number of `pattern` occurrences less then this number, downloading will be aborted)
115115

116+
**`input_info`**
117+
118+
List of inputs containing the information about input name, shape and layout. For example:
119+
```
120+
input_info:
121+
- name: Placeholder
122+
shape: [1, 224, 224, 3]
123+
layout: NHWC
124+
```
125+
116126
**`conversion_to_onnx_args`** (*only for PyTorch\* models*)
117127

118128
List of ONNX\* conversion parameters, see `model_optimizer_args` for details.
@@ -121,7 +131,6 @@ List of ONNX\* conversion parameters, see `model_optimizer_args` for details.
121131

122132
Conversion parameters (learn more in the [Model conversion](#model-conversion) section). For example:
123133
```
124-
- --input=data
125134
- --mean_values=data[127.5]
126135
- --scale_values=data[127.5]
127136
- --reverse_input_channels
@@ -163,10 +172,12 @@ postprocessing:
163172
- $type: unpack_archive
164173
format: gztar
165174
file: tf-densenet121.tar.gz
175+
input_info:
176+
- name: Placeholder
177+
shape: [1, 224, 224, 3]
178+
layout: NHWC
166179
model_optimizer_args:
167180
- --reverse_input_channels
168-
- --input_shape=[1,224,224,3]
169-
- --input=Placeholder
170181
- --mean_values=Placeholder[123.68,116.78,103.94]
171182
- --scale_values=Placeholder[58.8235294117647]
172183
- --output=densenet121/predictions/Reshape_1

models/intel/action-recognition-0001/action-recognition-0001-decoder/model.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ files:
3333
size: 15119354
3434
checksum: dcf216af54725539aeeaddefd23d6511d475fecb472569377005e99ffd33f028ab7e98c0141a16f3704c5d0dae414e79
3535
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/action-recognition-0001/action-recognition-0001-decoder/FP16/action-recognition-0001-decoder.bin
36+
input_info:
37+
- name: '0'
38+
shape: [1, 16, 512]
39+
layout: NDC
3640
framework: dldt
3741
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

models/intel/action-recognition-0001/action-recognition-0001-encoder/model.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ files:
3333
size: 42584582
3434
checksum: 5c0ac9530d7550e3a6d02a3f9bc3668d42804289530022c4419a661eb60e2ee507577728ad353287a94de99011a137ef
3535
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/action-recognition-0001/action-recognition-0001-encoder/FP16/action-recognition-0001-encoder.bin
36+
input_info:
37+
- name: '0'
38+
shape: [1, 3, 224, 224]
39+
layout: NCHW
3640
framework: dldt
3741
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

models/intel/age-gender-recognition-retail-0013/model.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ files:
4040
size: 2158730
4141
checksum: 49dcdf7e7834ed88b4fc6a0ad6b8806febacd3d62f91cd9cdd8a461fac06557cb069c8045a5936c73553947091dcae05
4242
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/age-gender-recognition-retail-0013/FP16-INT8/age-gender-recognition-retail-0013.bin
43+
input_info:
44+
- name: data
45+
shape: [1, 3, 62, 62]
46+
layout: NCHW
4347
framework: dldt
4448
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

models/intel/asl-recognition-0004/model.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ files:
4040
size: 4391006
4141
checksum: 6c64454d66ad7505b7702e230758f880b793712921897f5d0338c974b1a8b0d4e6b39dc6c00bb5d1bd95ee612b6e59f2
4242
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/asl-recognition-0004/FP16-INT8/asl-recognition-0004.bin
43+
input_info:
44+
- name: input
45+
shape: [1, 3, 16, 224, 224]
46+
layout: NCDHW
4347
framework: dldt
4448
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

models/intel/bert-large-uncased-whole-word-masking-squad-0001/model.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,15 @@ files:
3737
size: 668191930
3838
checksum: ec2365f5f3937b69b1a8424fe3b5e3db2389bcd6e31f4857f66cd385dccc23432a5c9d722f4ee278d2ba4b7b4f3b7a7d
3939
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/bert-large-uncased-whole-word-masking-squad-0001/FP16/bert-large-uncased-whole-word-masking-squad-0001.bin
40+
input_info:
41+
- name: input_ids
42+
shape: [1, 384]
43+
layout: NC
44+
- name: attention_mask
45+
shape: [1, 384]
46+
layout: NC
47+
- name: token_type_ids
48+
shape: [1, 384]
49+
layout: NC
4050
framework: dldt
4151
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

models/intel/bert-large-uncased-whole-word-masking-squad-emb-0001/model.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,18 @@ files:
3838
size: 670283942
3939
checksum: ed39d55a0a658cc3ca06d0bfb07fd03f7f76fcfd5fe59ab2e1c7357337c962270a7b064667b6a96b37ff3b203b0bbc53
4040
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/bert-large-uncased-whole-word-masking-squad-emb-0001/FP16/bert-large-uncased-whole-word-masking-squad-emb-0001.bin
41+
input_info:
42+
- name: input_ids
43+
shape: [1, 32]
44+
layout: NC
45+
- name: attention_mask
46+
shape: [1, 32]
47+
layout: NC
48+
- name: token_type_ids
49+
shape: [1, 32]
50+
layout: NC
51+
- name: position_ids
52+
shape: [1, 32]
53+
layout: NC
4154
framework: dldt
4255
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

models/intel/bert-large-uncased-whole-word-masking-squad-int8-0001/model.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,15 @@ files:
3838
size: 366197980
3939
checksum: 8a12aa656586098b096bad6c95053ab0905ba70f70c472e61f4c3c745c2f9b9eb5fe19cb7bac4d040b63d8551d97f1e4
4040
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/bert-large-uncased-whole-word-masking-squad-int8-0001/FP16-INT8/bert-large-uncased-whole-word-masking-squad-int8-0001.bin
41+
input_info:
42+
- name: input_ids
43+
shape: [1, 384]
44+
layout: NC
45+
- name: attention_mask
46+
shape: [1, 384]
47+
layout: NC
48+
- name: token_type_ids
49+
shape: [1, 384]
50+
layout: NC
4151
framework: dldt
4252
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

models/intel/bert-small-uncased-whole-word-masking-squad-0001/model.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,15 @@ files:
3939
size: 116149434
4040
checksum: b3602c8f88b46bba4173a2f6e22e48161e5c0246628b148b70d1a84e930a8731447b93784c74ff20c5a6a0421768286f
4141
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/bert-small-uncased-whole-word-masking-squad-0001/FP16/bert-small-uncased-whole-word-masking-squad-0001.bin
42+
input_info:
43+
- name: input_ids
44+
shape: [1, 384]
45+
layout: NC
46+
- name: attention_mask
47+
shape: [1, 384]
48+
layout: NC
49+
- name: token_type_ids
50+
shape: [1, 384]
51+
layout: NC
4252
framework: dldt
4353
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

models/intel/bert-small-uncased-whole-word-masking-squad-0002/model.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,18 @@ files:
3939
size: 82264250
4040
checksum: 3c2bde8b280364834bc035836138ace202d090e483254186526229b3c37f4b9a23c1b655eaba5119468d4fa88a5de7bf
4141
source: https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/bert-small-uncased-whole-word-masking-squad-0002/FP16/bert-small-uncased-whole-word-masking-squad-0002.bin
42+
input_info:
43+
- name: input_ids
44+
shape: [1, 384]
45+
layout: NC
46+
- name: attention_mask
47+
shape: [1, 384]
48+
layout: NC
49+
- name: token_type_ids
50+
shape: [1, 384]
51+
layout: NC
52+
- name: position_ids
53+
shape: [1, 384]
54+
layout: NC
4255
framework: dldt
4356
license: https://raw.githubusercontent.com/openvinotoolkit/open_model_zoo/master/LICENSE

0 commit comments

Comments
 (0)