Skip to content

Commit 8c52da8

Browse files
No public description
PiperOrigin-RevId: 756836603
1 parent 5d92e9f commit 8c52da8

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Copyright 2024 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""Pipeline to run the prediction on the images folder with Triton server."""
16+
17+
from absl import flags
18+
19+
INPUT_DIRECTORY = flags.DEFINE_string(
20+
"input_directory", None, "The path to the directory containing images."
21+
)
22+
23+
OUTPUT_DIRECTORY = flags.DEFINE_string(
24+
"output_directory", None, "The path to the directory to save the results."
25+
)
26+
27+
HEIGHT = flags.DEFINE_integer(
28+
"height", None, "Height of an image required by the model"
29+
)
30+
31+
WIDTH = flags.DEFINE_integer(
32+
"width", None, "Width of an image required by the model"
33+
)
34+
35+
MODEL = flags.DEFINE_string("model", None, "Model name")
36+
37+
PREDICTION_THRESHOLD = flags.DEFINE_float(
38+
"score", None, "Threshold to filter the prediction results"
39+
)
40+
41+
SEARCH_RANGE_X = flags.DEFINE_integer(
42+
"search_range_x",
43+
None,
44+
"Pixels upto which every object needs to be tracked along X axis.",
45+
)
46+
47+
SEARCH_RANGE_Y = flags.DEFINE_integer(
48+
"search_range_y",
49+
None,
50+
"Pixels upto which every object needs to be tracked along Y axis.",
51+
)
52+
53+
MEMORY = flags.DEFINE_integer(
54+
"memory", None, "Frames upto which every object needs to be tracked."
55+
)
56+
57+
OVERWRITE = flags.DEFINE_boolean(
58+
"overwrite",
59+
False,
60+
"If True, delete the preexisting BigQuery table before creating a new one.",
61+
)
62+
63+
PROJECT_ID = flags.DEFINE_string(
64+
"project_id", None, "Project ID mentioned in Google Cloud Project"
65+
)
66+
67+
BQ_DATASET_ID = flags.DEFINE_string(
68+
"bq_dataset_id", "Circularnet_dataset", "Big query dataset ID"
69+
)
70+
71+
TABLE_ID = flags.DEFINE_string(
72+
"bq_table_id", "Circularnet_table", "BigQuery Table ID for features data"
73+
)

0 commit comments

Comments
 (0)