Skip to content

Commit 29ad0e8

Browse files
committed
added required files (protos,object detection, labelmap etc) for inference
1 parent 2078779 commit 29ad0e8

File tree

110 files changed

+26907
-0
lines changed

Some content is hidden

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

110 files changed

+26907
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
item {
2+
id: 1
3+
name: 'nine'
4+
}
5+
6+
item {
7+
id: 2
8+
name: 'ten'
9+
}
10+
11+
item {
12+
id: 3
13+
name: 'jack'
14+
}
15+
16+
item {
17+
id: 4
18+
name: 'queen'
19+
}
20+
21+
item {
22+
id: 5
23+
name: 'king'
24+
}
25+
26+
item {
27+
id: 6
28+
name: 'ace'
29+
}

services/card_detector/application/ai/research/object_detection/protos/__init__.py

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
syntax = "proto2";
2+
3+
package object_detection.protos;
4+
5+
import "object_detection/protos/grid_anchor_generator.proto";
6+
import "object_detection/protos/ssd_anchor_generator.proto";
7+
import "object_detection/protos/multiscale_anchor_generator.proto";
8+
9+
// Configuration proto for the anchor generator to use in the object detection
10+
// pipeline. See core/anchor_generator.py for details.
11+
message AnchorGenerator {
12+
oneof anchor_generator_oneof {
13+
GridAnchorGenerator grid_anchor_generator = 1;
14+
SsdAnchorGenerator ssd_anchor_generator = 2;
15+
MultiscaleAnchorGenerator multiscale_anchor_generator = 3;
16+
}
17+
}

services/card_detector/application/ai/research/object_detection/protos/anchor_generator_pb2.py

Lines changed: 102 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
syntax = "proto2";
2+
3+
package object_detection.protos;
4+
5+
// Configuration proto for ArgMaxMatcher. See
6+
// matchers/argmax_matcher.py for details.
7+
message ArgMaxMatcher {
8+
// Threshold for positive matches.
9+
optional float matched_threshold = 1 [default = 0.5];
10+
11+
// Threshold for negative matches.
12+
optional float unmatched_threshold = 2 [default = 0.5];
13+
14+
// Whether to construct ArgMaxMatcher without thresholds.
15+
optional bool ignore_thresholds = 3 [default = false];
16+
17+
// If True then negative matches are the ones below the unmatched_threshold,
18+
// whereas ignored matches are in between the matched and umatched
19+
// threshold. If False, then negative matches are in between the matched
20+
// and unmatched threshold, and everything lower than unmatched is ignored.
21+
optional bool negatives_lower_than_unmatched = 4 [default = true];
22+
23+
// Whether to ensure each row is matched to at least one column.
24+
optional bool force_match_for_each_row = 5 [default = false];
25+
26+
// Force constructed match objects to use matrix multiplication based gather
27+
// instead of standard tf.gather
28+
optional bool use_matmul_gather = 6 [default = false];
29+
}

services/card_detector/application/ai/research/object_detection/protos/argmax_matcher_pb2.py

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
syntax = "proto2";
2+
3+
package object_detection.protos;
4+
5+
// Configuration proto for bipartite matcher. See
6+
// matchers/bipartite_matcher.py for details.
7+
message BipartiteMatcher {
8+
// Force constructed match objects to use matrix multiplication based gather
9+
// instead of standard tf.gather
10+
optional bool use_matmul_gather = 6 [default = false];
11+
}

services/card_detector/application/ai/research/object_detection/protos/bipartite_matcher_pb2.py

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
syntax = "proto2";
2+
3+
package object_detection.protos;
4+
5+
import "object_detection/protos/faster_rcnn_box_coder.proto";
6+
import "object_detection/protos/keypoint_box_coder.proto";
7+
import "object_detection/protos/mean_stddev_box_coder.proto";
8+
import "object_detection/protos/square_box_coder.proto";
9+
10+
// Configuration proto for the box coder to be used in the object detection
11+
// pipeline. See core/box_coder.py for details.
12+
message BoxCoder {
13+
oneof box_coder_oneof {
14+
FasterRcnnBoxCoder faster_rcnn_box_coder = 1;
15+
MeanStddevBoxCoder mean_stddev_box_coder = 2;
16+
SquareBoxCoder square_box_coder = 3;
17+
KeypointBoxCoder keypoint_box_coder = 4;
18+
}
19+
}

0 commit comments

Comments
 (0)