diff --git a/model/detection/anchors.bin b/model/detection/anchors.bin new file mode 100644 index 0000000000000000000000000000000000000000..4e1eb6e35e42e4b327b018eb06c6248028645ff4 --- /dev/null +++ b/model/detection/anchors.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9716292971d360340793974db08926a9ec6d1d9ae3a69a0f4a15d5f92daec42 +size 818400 diff --git a/model/detection/documents_detector_04.json b/model/detection/documents_detector_04.json new file mode 100644 index 0000000000000000000000000000000000000000..6d5bf43288704f57392a47c530f544cad0733512 --- /dev/null +++ b/model/detection/documents_detector_04.json @@ -0,0 +1,57 @@ +{ + "type": "multibox_detector_v2", + "document_detector": { + "model_name": "documents_detector_04.onnx", + "score_threshold": 0.3, + "nnet_input_name": "input:0", + "nnet_boxes_output_name": "Identity_2:0", + "nnet_scores_output_name": "Identity_1:0", + "preprocessors": [ + { + "type": "resize", + "target_width": 640, + "target_height": 640, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [127.5, 127.5, 127.5], + "std": [127.5, 127.5, 127.5] + } + ], + "ssd_detection_class_ids": { + "document": 0, + "photo": 1 + }, + "postprocessor": { + "path_to_anchors_data": "anchors.bin", + "max_detections": 10, + "num_classes": 2, + "max_classes_per_detection": 1, + "non_max_suppression_score_threshold": 1e-08, + "intersection_over_union_threshold": 0.6, + "h_scale": 5, + "w_scale": 5, + "x_scale": 10, + "y_scale": 10 + } + }, + "orientation_detector": { + "model_name": "orientation_detector_03.onnx", + "nnet_input_name": "input_tensor:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "resize", + "target_width": 224, + "target_height": 224, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [127.5, 127.5, 127.5], + "std": [127.5, 127.5, 127.5] + } + ] + } +} diff --git a/model/detection/documents_detector_04.onnx b/model/detection/documents_detector_04.onnx new file mode 100644 index 0000000000000000000000000000000000000000..26a784f2de74a533aa86db188eb0882aadad92b4 --- /dev/null +++ b/model/detection/documents_detector_04.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:208856e1f3e41dcb640b51cd187f4fea6deacc40200da9b8c8190abcb32f77f4 +size 10414415 diff --git a/model/detection/documents_detector_06.json b/model/detection/documents_detector_06.json new file mode 100644 index 0000000000000000000000000000000000000000..b58da3138a3f4630cf2da2eebb1c81fa211f50f7 --- /dev/null +++ b/model/detection/documents_detector_06.json @@ -0,0 +1,80 @@ +{ + "type": "multibox_detector_v2", + "common_ssd_preprocessors": [ + { + "type": "resize", + "target_width": 640, + "target_height": 640, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [127.5, 127.5, 127.5], + "std": [127.5, 127.5, 127.5] + } + ], + "document_detector": { + "model_name": "documents_detector_04.onnx", + "score_threshold": 0.3, + "nnet_input_name": "input:0", + "nnet_boxes_output_name": "Identity_2:0", + "nnet_scores_output_name": "Identity_1:0", + "ssd_detection_class_ids": { + "document": 0, + "photo": 1 + }, + "postprocessor": { + "path_to_anchors_data": "anchors.bin", + "max_detections": 10, + "num_classes": 2, + "max_classes_per_detection": 1, + "non_max_suppression_score_threshold": 1e-08, + "intersection_over_union_threshold": 0.6, + "h_scale": 5, + "w_scale": 5, + "x_scale": 10, + "y_scale": 10 + } + }, + "ghost_detector": { + "model_name": "ghost_detector_02.onnx", + "score_threshold": 0.1, + "nnet_input_name": "input", + "nnet_boxes_output_name": "Identity_2:0", + "nnet_scores_output_name": "Identity_1:0", + "ssd_detection_class_ids": { + "ghost_photo": 0 + }, + "postprocessor": { + "path_to_anchors_data": "anchors.bin", + "max_detections": 10, + "num_classes": 1, + "max_classes_per_detection": 1, + "non_max_suppression_score_threshold": 0.2, + "intersection_over_union_threshold": 0.6, + "h_scale": 5, + "w_scale": 5, + "x_scale": 10, + "y_scale": 10 + }, + "timing_cache_config": "../cache/timing_cache.json" + }, + "orientation_detector": { + "model_name": "orientation_detector_03.onnx", + "nnet_input_name": "input_tensor:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "resize", + "target_width": 224, + "target_height": 224, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [127.5, 127.5, 127.5], + "std": [127.5, 127.5, 127.5] + } + ] + } +} diff --git a/model/detection/ghost_detector_02.onnx b/model/detection/ghost_detector_02.onnx new file mode 100644 index 0000000000000000000000000000000000000000..8907d58a0758254dd2b660079fc256196744bfc9 --- /dev/null +++ b/model/detection/ghost_detector_02.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f48758e08cc4d5a89c5bf3a074eb573acfb5a19a03ecee5b91d35d4911417ae +size 3069100 diff --git a/model/detection/orientation_detector_03.onnx b/model/detection/orientation_detector_03.onnx new file mode 100644 index 0000000000000000000000000000000000000000..7f4f54c3cbb703f9322548874887b45ba6cf2a88 --- /dev/null +++ b/model/detection/orientation_detector_03.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ed95033650943f6082f92ff37a6aee8aca38e0e929935f3216cc9a103e69408 +size 8944179 diff --git a/model/pipelines/robin-pc.json b/model/pipelines/robin-pc.json new file mode 100644 index 0000000000000000000000000000000000000000..fa86d83eba15547af331eec850b65b12870afe3e Binary files /dev/null and b/model/pipelines/robin-pc.json differ diff --git a/model/pipelines/toucan-sr.json b/model/pipelines/toucan-sr.json new file mode 100644 index 0000000000000000000000000000000000000000..950fbe0b35e5837d1c08cc352b008691610b2d1f Binary files /dev/null and b/model/pipelines/toucan-sr.json differ diff --git a/model/pipelines/umbrellabird-ps.json b/model/pipelines/umbrellabird-ps.json new file mode 100644 index 0000000000000000000000000000000000000000..3e88ef40d85d4f334fbd097ce46bbfc162b54f96 Binary files /dev/null and b/model/pipelines/umbrellabird-ps.json differ diff --git a/model/quality_checker/detection_quality_checker/detection_quality_checker.json b/model/quality_checker/detection_quality_checker/detection_quality_checker.json new file mode 100644 index 0000000000000000000000000000000000000000..ee87b49c16a714f39cda2c73e47586425a63d4e9 --- /dev/null +++ b/model/quality_checker/detection_quality_checker/detection_quality_checker.json @@ -0,0 +1,3 @@ +{ + "type": "DetectionQualityCheckerEngine" +} \ No newline at end of file diff --git a/model/quality_checker/image_quality_checker/iqa2_xs_384.json b/model/quality_checker/image_quality_checker/iqa2_xs_384.json new file mode 100644 index 0000000000000000000000000000000000000000..46a33e22128e7ed5823523055e10026a670f04f3 --- /dev/null +++ b/model/quality_checker/image_quality_checker/iqa2_xs_384.json @@ -0,0 +1,34 @@ +{ + "type": "ImageQualityCheckerEngine", + "model_name": "iqa2_xs_384.onnx", + "nnet_input_name": "input", + "nnet_output_name": "output", + "output_thresholds": [-1.8, -0.9, -1.6, 0.5], + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 10, + "detection_to_use": "kGenericDocument" + }, + { + "type": "resize", + "target_width": 384, + "target_height": 384, + "interpolation_mode": "INTER_AREA" + }, + { + "type": "normalize", + "mean": [ + 123.675, + 116.28, + 103.53 + ], + "std": [ + 58.395, + 57.12, + 57.375 + ] + } + ] +} \ No newline at end of file diff --git a/model/quality_checker/image_quality_checker/iqa2_xs_384.onnx b/model/quality_checker/image_quality_checker/iqa2_xs_384.onnx new file mode 100644 index 0000000000000000000000000000000000000000..c9ae1b04ed14e9e38f795add3fd1e383c10d0a4d --- /dev/null +++ b/model/quality_checker/image_quality_checker/iqa2_xs_384.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86e18b52c308b7f8ce5d801a4640d26df52686b7ce569340bc5cac788c2ed974 +size 8619705 diff --git a/model/spoof/af_11/af_11.json b/model/spoof/af_11/af_11.json new file mode 100644 index 0000000000000000000000000000000000000000..41115492dffbd9220c2220ddd9d7a2380530fff9 --- /dev/null +++ b/model/spoof/af_11/af_11.json @@ -0,0 +1,30 @@ +{ + "model_name": "af_11.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "resize", + "target_width": 384, + "target_height": 384, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "lead_to_orientation", + "target_orientation": "k0" + }, + { + "type": "normalize", + "mean": [ + 123.675, + 116.28, + 103.53 + ], + "std": [ + 58.395, + 57.12, + 57.375 + ] + } + ] +} \ No newline at end of file diff --git a/model/spoof/af_11/af_11.onnx b/model/spoof/af_11/af_11.onnx new file mode 100644 index 0000000000000000000000000000000000000000..28b3795bd3316359363a8afb2f61bff51831e300 --- /dev/null +++ b/model/spoof/af_11/af_11.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fee47a8ebbefed0198ae94db2d075977c700fccfa3bf49ea369a034fc067c5c0 +size 80624966 diff --git a/model/spoof/af_19/af_19.json b/model/spoof/af_19/af_19.json new file mode 100644 index 0000000000000000000000000000000000000000..412184fcc270e2ee2a1d94257a54ca1e5ea7b3a9 --- /dev/null +++ b/model/spoof/af_19/af_19.json @@ -0,0 +1,26 @@ +{ + "model_name": "af_19.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "resize", + "target_width": 600, + "target_height": 600, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [ + 123.675, + 116.28, + 103.53 + ], + "std": [ + 58.395, + 57.12, + 57.375 + ] + } + ] +} diff --git a/model/spoof/af_19/af_19.onnx b/model/spoof/af_19/af_19.onnx new file mode 100644 index 0000000000000000000000000000000000000000..fbfb090e8348756180fcba9d6f791be84808034a --- /dev/null +++ b/model/spoof/af_19/af_19.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a260d72adb137681519151ff288f91115fdc518c0e3ec552718c82189217bb5 +size 80625537 diff --git a/model/spoof/af_49/af_49.json b/model/spoof/af_49/af_49.json new file mode 100644 index 0000000000000000000000000000000000000000..0cb39c79f4681690f0358ee861a5f6c142b40e55 --- /dev/null +++ b/model/spoof/af_49/af_49.json @@ -0,0 +1,35 @@ +{ + "model_name": "af_49.onnx", + "nnet_input_name": "input", + "nnet_output_name": "output", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "detection_to_use": "kGenericDocument", + "pad_percentage": 30 + }, + { + "type": "resize", + "target_width": 518, + "target_height": 518, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [ + 123.675, + 116.28, + 103.53 + ], + "std": [ + 58.395, + 57.12, + 57.375 + ] + } + ], + "cache": { + "7.5": "af_49.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/af_49/af_49.onnx b/model/spoof/af_49/af_49.onnx new file mode 100644 index 0000000000000000000000000000000000000000..84f56b2ba8ea12d684af3800901a7a8937b6f39a --- /dev/null +++ b/model/spoof/af_49/af_49.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a311aea219fbc6520fa15d376e8e4f414862a9cfe31d0dcaf59ea65344cfbf4d +size 92821924 diff --git a/model/spoof/ag_195/ag_195.json b/model/spoof/ag_195/ag_195.json new file mode 100644 index 0000000000000000000000000000000000000000..4fe9b54abf49994678508cabf7329e51bcce6aea --- /dev/null +++ b/model/spoof/ag_195/ag_195.json @@ -0,0 +1,33 @@ +{ + "model_name": "ag_195.onnx", + "nnet_input_name": "x", + "nnet_output_name": "identity", + "preprocessors": [ + { + "type": "resize", + "target_height": 288, + "target_width": 288, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "lead_to_orientation", + "target_orientation": "k0" + }, + { + "type": "normalize", + "mean": [ + 123.675, + 116.28, + 103.53 + ], + "std": [ + 58.395, + 57.12, + 57.375 + ] + } + ], + "cache": { + "7.5": "ag_195.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/ag_195/ag_195.onnx b/model/spoof/ag_195/ag_195.onnx new file mode 100644 index 0000000000000000000000000000000000000000..0fc7c08edfaad0bd433f9551e52e39f5d6c23bb8 --- /dev/null +++ b/model/spoof/ag_195/ag_195.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0834af359510862b1214d6f5a30e50dc4db08c871117ae8020bb9b84e0c93b0e +size 42725318 diff --git a/model/spoof/ag_52/ag_52.json b/model/spoof/ag_52/ag_52.json new file mode 100644 index 0000000000000000000000000000000000000000..69742a76e76b7e5505ca93d71012dcdadd91a923 --- /dev/null +++ b/model/spoof/ag_52/ag_52.json @@ -0,0 +1,30 @@ +{ + "model_name": "ag_52.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "resize", + "target_height": 356, + "target_width": 356, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "lead_to_orientation", + "target_orientation": "k0" + }, + { + "type": "normalize", + "mean": [ + 123.675, + 116.28, + 103.53 + ], + "std": [ + 58.395, + 57.12, + 57.375 + ] + } + ] +} diff --git a/model/spoof/ag_52/ag_52.onnx b/model/spoof/ag_52/ag_52.onnx new file mode 100644 index 0000000000000000000000000000000000000000..7b19720eee7170c88e9917cf4bcd59ca2d81b3a8 --- /dev/null +++ b/model/spoof/ag_52/ag_52.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:324e269dbf4dca5fa2a8bde4105047a6eb98e69a8029ce1fe2016f007cb88e98 +size 43108729 diff --git a/model/spoof/ec_75/ec_75.json b/model/spoof/ec_75/ec_75.json new file mode 100644 index 0000000000000000000000000000000000000000..7fc28b1fd7bbf14414f1942e6021dbb7adc36717 --- /dev/null +++ b/model/spoof/ec_75/ec_75.json @@ -0,0 +1,25 @@ +{ + "model_name": "ec_75.onnx", + "nnet_input_name": "input_1", + "nnet_output_name": "classification", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 15, + "detection_to_use": "kGenericDocument" + }, + { + "type": "resize", + "target_width": 450, + "target_height": 450, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "convert_to_float" + } + ], + "cache": { + "7.5": "ec_75.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/ec_75/ec_75.onnx b/model/spoof/ec_75/ec_75.onnx new file mode 100644 index 0000000000000000000000000000000000000000..b2cfb8f1549ceee581a0b1cd8208582a87e7933f --- /dev/null +++ b/model/spoof/ec_75/ec_75.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5641c8a06c28d2d9c1684cbc965ceac5615901541aad975616a7609f8115c68c +size 80613660 diff --git a/model/spoof/ec_99/ec_99.json b/model/spoof/ec_99/ec_99.json new file mode 100644 index 0000000000000000000000000000000000000000..8d7ebae2d10982472d25d19e8389d1bbb5f2be85 --- /dev/null +++ b/model/spoof/ec_99/ec_99.json @@ -0,0 +1,25 @@ +{ + "model_name": "ec_99.onnx", + "nnet_input_name": "input_1", + "nnet_output_name": "classification", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 16, + "detection_to_use": "kGenericDocument" + }, + { + "type": "resize", + "target_width": 450, + "target_height": 450, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "convert_to_float" + } + ], + "cache": { + "7.5": "ec_99.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/ec_99/ec_99.onnx b/model/spoof/ec_99/ec_99.onnx new file mode 100644 index 0000000000000000000000000000000000000000..92347d853ea866b4a80cd5182d8c752f58e7efb9 --- /dev/null +++ b/model/spoof/ec_99/ec_99.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:456858e890fc77e25493291c2496bf8ea9f20b18740da6542376af67377671c4 +size 111560314 diff --git a/model/spoof/nt_47/nt_47.json b/model/spoof/nt_47/nt_47.json new file mode 100644 index 0000000000000000000000000000000000000000..2178e7f4c9eaa7f4287a54c93adfa87704ff46f8 --- /dev/null +++ b/model/spoof/nt_47/nt_47.json @@ -0,0 +1,41 @@ +{ + "model_name": "nt_47.onnx", + "nnet_input_name": "input", + "nnet_output_name": "output", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "detection_to_use": "kPhoto", + "pad_percentage": 60 + }, + { + "type": "resize", + "target_width": 224, + "target_height": 224, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [ + 123.675, + 116.28, + 103.53 + ], + "std": [ + 58.395, + 57.12, + 57.375 + ] + } + ], + "nnet_input_shape": [ + 1, + 224, + 224, + 3 + ], + "cache": { + "7.5": "nt_47.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/nt_47/nt_47.onnx b/model/spoof/nt_47/nt_47.onnx new file mode 100644 index 0000000000000000000000000000000000000000..41559a01d4103c0dbda79a07a7a1a7abcb776e2d --- /dev/null +++ b/model/spoof/nt_47/nt_47.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ed3b3ed3a9fc856203f6c88149b2733dee222dc14868427ba9a51f72af55901 +size 122823105 diff --git a/model/spoof/nt_55/nt_55.json b/model/spoof/nt_55/nt_55.json new file mode 100644 index 0000000000000000000000000000000000000000..b2c42aa709257b933124368d0be58a81cd7f2f9a --- /dev/null +++ b/model/spoof/nt_55/nt_55.json @@ -0,0 +1,41 @@ +{ + "model_name": "nt_55.onnx", + "nnet_input_name": "input", + "nnet_output_name": "output", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "detection_to_use": "kPhoto", + "pad_percentage": 60 + }, + { + "type": "resize", + "target_width": 224, + "target_height": 224, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [ + 123.675, + 116.28, + 103.53 + ], + "std": [ + 58.395, + 57.12, + 57.375 + ] + } + ], + "nnet_input_shape": [ + 1, + 224, + 224, + 3 + ], + "cache": { + "7.5": "nt_55.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/nt_55/nt_55.onnx b/model/spoof/nt_55/nt_55.onnx new file mode 100644 index 0000000000000000000000000000000000000000..efdc8375cc12240a524aac953e2e1734f799b06c --- /dev/null +++ b/model/spoof/nt_55/nt_55.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbe114122e2a5eb550ca1a09146b8a6e16a8d4b4c3991656a9da1d414f0abd14 +size 114443105 diff --git a/model/spoof/rn_19/rn_19.json b/model/spoof/rn_19/rn_19.json new file mode 100644 index 0000000000000000000000000000000000000000..58ac7673440c2d496dea3665ff071240f1d75aca --- /dev/null +++ b/model/spoof/rn_19/rn_19.json @@ -0,0 +1,29 @@ +{ + "model_name": "rn_19.onnx", + "nnet_input_name": "input", + "nnet_output_name": "output", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 60.0, + "detection_to_use": "kPhoto" + }, + { + "type": "lead_to_orientation", + "target_orientation": "k0" + }, + { + "type": "resize", + "target_width": 370, + "target_height": 370, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "convert_to_float" + } + ], + "cache": { + "7.5": "rn_19.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/rn_19/rn_19.onnx b/model/spoof/rn_19/rn_19.onnx new file mode 100644 index 0000000000000000000000000000000000000000..3c342740cd57bb5fb9a120e34611a3fd2ba601c1 --- /dev/null +++ b/model/spoof/rn_19/rn_19.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05e62dc3b74d00210afbcfbe900bb7adb8f84471e978d34c255aabd6811b7fc9 +size 37249554 diff --git a/model/spoof/rn_20/rn_20.json b/model/spoof/rn_20/rn_20.json new file mode 100644 index 0000000000000000000000000000000000000000..c41e06a9e0a5fa414fc9960b981115d8043f10f3 --- /dev/null +++ b/model/spoof/rn_20/rn_20.json @@ -0,0 +1,29 @@ +{ + "model_name": "rn_20.onnx", + "nnet_input_name": "input", + "nnet_output_name": "output", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 60.0, + "detection_to_use": "kPhoto" + }, + { + "type": "lead_to_orientation", + "target_orientation": "k0" + }, + { + "type": "resize", + "target_width": 280, + "target_height": 280, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "convert_to_float" + } + ], + "cache": { + "7.5": "rn_20.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/rn_20/rn_20.onnx b/model/spoof/rn_20/rn_20.onnx new file mode 100644 index 0000000000000000000000000000000000000000..5fba74cb1982f1bf58e19a3270487d0e73b8c49d --- /dev/null +++ b/model/spoof/rn_20/rn_20.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b678c74cbae47da6c5a85911961c7a7f954365c74e55bf42396c855f78c4f3a +size 37249554 diff --git a/model/spoof/rn_4/rn_4.json b/model/spoof/rn_4/rn_4.json new file mode 100644 index 0000000000000000000000000000000000000000..6e6bb389a3c8d53713f9cf20654f2e4a2a590425 --- /dev/null +++ b/model/spoof/rn_4/rn_4.json @@ -0,0 +1,36 @@ +{ + "model_name": "rn_4.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 30, + "detection_to_use": "kPhoto" + }, + { + "type": "lead_to_orientation", + "target_orientation": "k0" + }, + { + "type": "resize", + "target_width": 370, + "target_height": 370, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "normalize", + "mean": [ + 0, + 0, + 0 + ], + "std": [ + 255, + 255, + 255 + ] + } + ] +} \ No newline at end of file diff --git a/model/spoof/rn_4/rn_4.onnx b/model/spoof/rn_4/rn_4.onnx new file mode 100644 index 0000000000000000000000000000000000000000..8a3f1bc39554f201bd1dd845620fdac1ad270801 --- /dev/null +++ b/model/spoof/rn_4/rn_4.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc59861f03f2f5b4b0ee1b254f00356b93875f620f759475d86ae06844fe4fb2 +size 36425491 diff --git a/model/spoof/rn_6/rn_6.json b/model/spoof/rn_6/rn_6.json new file mode 100644 index 0000000000000000000000000000000000000000..e047203c2a2f4774986f9f0d0bbe04fdfc4a7e55 --- /dev/null +++ b/model/spoof/rn_6/rn_6.json @@ -0,0 +1,27 @@ +{ + "model_name": "rn_6.onnx", + "nnet_input_name": "input", + "nnet_output_name": "output", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 40.0, + "detection_to_use": "kPhoto" + }, + { + "type": "lead_to_orientation", + "target_orientation": "k0" + }, + { + "type": "resize", + "target_width": 256, + "target_height": 256, + "interpolation_mode": "INTER_LINEAR" + }, + { + "type": "convert_to_float" + } + ], + "nnet_input_shape": [1, 256, 256, 3] +} diff --git a/model/spoof/rn_6/rn_6.onnx b/model/spoof/rn_6/rn_6.onnx new file mode 100644 index 0000000000000000000000000000000000000000..343ef33cb3434fd09cab9a7c06e5f3464e661bb3 --- /dev/null +++ b/model/spoof/rn_6/rn_6.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02a0f1a9da6408c1c1db183644b02936182e0bcfd6e470de28bc8638bac581a6 +size 120004433 diff --git a/model/spoof/tx_149/tx_149.json b/model/spoof/tx_149/tx_149.json new file mode 100644 index 0000000000000000000000000000000000000000..f2fded00efa10145e3cc825b39a994b5a88b523f --- /dev/null +++ b/model/spoof/tx_149/tx_149.json @@ -0,0 +1,17 @@ +{ + "model_name": "tx_149.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "resize", + "target_width": 416, + "target_height": 416, + "interpolation_mode": "INTER_NEAREST", + "target_orientation": "kV" + }, + { + "type": "convert_to_float" + } + ] +} diff --git a/model/spoof/tx_149/tx_149.onnx b/model/spoof/tx_149/tx_149.onnx new file mode 100644 index 0000000000000000000000000000000000000000..36e5fa705347b28388577088353f567069dc8a3b --- /dev/null +++ b/model/spoof/tx_149/tx_149.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a17fe565099cfec30b4b7ba71b0873d1f9f7994ae16c83c2438addfd776c123 +size 34749221 diff --git a/model/spoof/tx_221/tx_221.json b/model/spoof/tx_221/tx_221.json new file mode 100644 index 0000000000000000000000000000000000000000..4b03ba750ff619298b93e1f6f955cb6d6ccb426d --- /dev/null +++ b/model/spoof/tx_221/tx_221.json @@ -0,0 +1,31 @@ +{ + "model_name": "tx_221.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 30, + "detection_to_use": "kGenericDocument" + }, + { + "type": "resize", + "target_width": 512, + "target_height": 384, + "interpolation_mode": "INTER_NEAREST" + }, + { + "type": "convert_to_float" + } + ], + "nnet_input_shape": [ + 1, + 384, + 512, + 3 + ], + "cache": { + "7.5": "tx_221.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/tx_221/tx_221.onnx b/model/spoof/tx_221/tx_221.onnx new file mode 100644 index 0000000000000000000000000000000000000000..0b918878b310fc8a9b1511296d2d76b11729f7b0 --- /dev/null +++ b/model/spoof/tx_221/tx_221.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58bb97cf9e733dd0a185bec50d09c75b50287865018db78ea2c0c49b0455f888 +size 160994479 diff --git a/model/spoof/tx_224/tx_224.json b/model/spoof/tx_224/tx_224.json new file mode 100644 index 0000000000000000000000000000000000000000..06c672afad7841d31fc07e68802ae0e339fb1478 --- /dev/null +++ b/model/spoof/tx_224/tx_224.json @@ -0,0 +1,31 @@ +{ + "model_name": "tx_224.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 30, + "detection_to_use": "kGenericDocument" + }, + { + "type": "resize", + "target_width": 416, + "target_height": 384, + "interpolation_mode": "INTER_NEAREST" + }, + { + "type": "convert_to_float" + } + ], + "nnet_input_shape": [ + 1, + 384, + 416, + 3 + ], + "cache": { + "7.5": "tx_224.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/tx_224/tx_224.onnx b/model/spoof/tx_224/tx_224.onnx new file mode 100644 index 0000000000000000000000000000000000000000..7bf6e5ef0fc8a2550929a07995f706ca3a826088 --- /dev/null +++ b/model/spoof/tx_224/tx_224.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9500bdfcfaf99890ffaf3ba8c47ae0304eb6273f84d0acd93f466067848dcfe4 +size 120695401 diff --git a/model/spoof/tx_232/tx_232.json b/model/spoof/tx_232/tx_232.json new file mode 100644 index 0000000000000000000000000000000000000000..e2b515cb58bbf8e8452b8bf59c3afa0da4058416 --- /dev/null +++ b/model/spoof/tx_232/tx_232.json @@ -0,0 +1,31 @@ +{ + "model_name": "tx_232.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "align_document_by_bbox", + "pad_type": "kWH", + "pad_percentage": 60, + "detection_to_use": "kGenericDocument" + }, + { + "type": "resize", + "target_width": 416, + "target_height": 416, + "interpolation_mode": "INTER_NEAREST" + }, + { + "type": "convert_to_float" + } + ], + "nnet_input_shape": [ + 1, + 416, + 416, + 3 + ], + "cache": { + "7.5": "tx_232.7-5" + } +} \ No newline at end of file diff --git a/model/spoof/tx_232/tx_232.onnx b/model/spoof/tx_232/tx_232.onnx new file mode 100644 index 0000000000000000000000000000000000000000..de788b19ec90919f43798f97c1e67d352f178af1 --- /dev/null +++ b/model/spoof/tx_232/tx_232.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:092e46bb3fe228ef04341a74616dce966b16fe9265de8678dc551d552fe94e82 +size 134282633 diff --git a/model/spoof/tx_238/tx_238.json b/model/spoof/tx_238/tx_238.json new file mode 100644 index 0000000000000000000000000000000000000000..148236e3b034d84e05e7e6e8750a62af3153330e --- /dev/null +++ b/model/spoof/tx_238/tx_238.json @@ -0,0 +1,36 @@ +{ + "model_name": "tx_238.onnx", + "nnet_input_name": "x:0", + "nnet_output_name": "Identity:0", + "preprocessors": [ + { + "type": "stack_detections_by_bbox", + "target_width": 128, + "target_height": 128, + "interpolation_mode": "INTER_NEAREST", + "detections_to_align_by_bbox": [ + { + "pad_type": "kWH", + "pad_percentage": 50, + "detection_to_use": "kGhostPhoto" + }, + { + "pad_type": "kWH", + "pad_percentage": 0, + "detection_to_use": "kPhoto" + } + ], + "apply_bw_transform": true, + "detections_required": false + }, + { + "type": "convert_to_float" + } + ], + "nnet_input_shape": [ + 1, + 128, + 128, + 2 + ] +} \ No newline at end of file diff --git a/model/spoof/tx_238/tx_238.onnx b/model/spoof/tx_238/tx_238.onnx new file mode 100644 index 0000000000000000000000000000000000000000..920ee6879a1903fd8f455a2bdcf19246f3e51fce --- /dev/null +++ b/model/spoof/tx_238/tx_238.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c7570eb9e5c841c0b334a7c788f7dda4dc87e33d35d53d22c8c9e4891541810 +size 40003319 diff --git a/model/trt_timing_cache/6_1.bin b/model/trt_timing_cache/6_1.bin new file mode 100644 index 0000000000000000000000000000000000000000..53de83461447101ef07fd373b215c4335cf0b273 --- /dev/null +++ b/model/trt_timing_cache/6_1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2485ef3c6fdbb9e0ec910942139d20e507af43648a67eebc983ff91413af5de4 +size 1961543 diff --git a/model/trt_timing_cache/7_0.bin b/model/trt_timing_cache/7_0.bin new file mode 100644 index 0000000000000000000000000000000000000000..9d8a118b5fd4d279a27629fecb630052f4f43c14 --- /dev/null +++ b/model/trt_timing_cache/7_0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58f4ef3668d5babf79a8753f6c2846fd73a262744687d7aa97f652d3f1be3c3f +size 3120210 diff --git a/model/trt_timing_cache/7_5.bin b/model/trt_timing_cache/7_5.bin new file mode 100644 index 0000000000000000000000000000000000000000..465cece407feae7d030cbadd607aec17b275871b --- /dev/null +++ b/model/trt_timing_cache/7_5.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4768dc48ce72f61adc312406257adebc15676cd06b9ecd5240abdf09f5d23f61 +size 3112052 diff --git a/model/trt_timing_cache/8_0.bin b/model/trt_timing_cache/8_0.bin new file mode 100644 index 0000000000000000000000000000000000000000..a439a6f9dffdb82951139e61a2ec843d519e4f10 --- /dev/null +++ b/model/trt_timing_cache/8_0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd24bcb8a59253024b20fe75ac60843bcd6da88dbaf2e340abf1f32070d3f312 +size 3082198 diff --git a/model/trt_timing_cache/8_6.bin b/model/trt_timing_cache/8_6.bin new file mode 100644 index 0000000000000000000000000000000000000000..306b06fede9ff5e733dc46464b738a6070d45492 --- /dev/null +++ b/model/trt_timing_cache/8_6.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1a08a471e199f5a159b08ab8613551ebbe4cadf3b2a5f9409d149fa9d4eb7b6 +size 3205810 diff --git a/model/trt_timing_cache/8_9.bin b/model/trt_timing_cache/8_9.bin new file mode 100644 index 0000000000000000000000000000000000000000..e52b54d72e1dcb281309a8b5fdbe4bc301ae0584 --- /dev/null +++ b/model/trt_timing_cache/8_9.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4eab3e6b6e425f3a9561b3298acd76a85230ff24101e7ad476c25028d163580 +size 3068910 diff --git a/model/trt_timing_cache/trt_timing_cache.json b/model/trt_timing_cache/trt_timing_cache.json new file mode 100644 index 0000000000000000000000000000000000000000..eb172b83ca3f9de60426d7fcd094487ab1e5bc76 --- /dev/null +++ b/model/trt_timing_cache/trt_timing_cache.json @@ -0,0 +1,8 @@ +{ + "6.1": "6_1.bin", + "7.0": "7_0.bin", + "7.5": "7_5.bin", + "8.0": "8_0.bin", + "8.6": "8_6.bin", + "8.9": "8_9.bin", +} diff --git a/model/validation/basic_document_validator.json b/model/validation/basic_document_validator.json new file mode 100644 index 0000000000000000000000000000000000000000..dc8c112dd420fa676c4e804e599d34b38b4a1d38 --- /dev/null +++ b/model/validation/basic_document_validator.json @@ -0,0 +1,5 @@ +{ + "type": "basic_document_validator", + "max_number_of_documents": 1, + "min_document_padding_px": 2 +}