本文整理匯總了Python中object_detection.protos.input_reader_pb2.InstanceMaskType方法的典型用法代碼示例。如果您正苦於以下問題:Python input_reader_pb2.InstanceMaskType方法的具體用法?Python input_reader_pb2.InstanceMaskType怎麽用?Python input_reader_pb2.InstanceMaskType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類object_detection.protos.input_reader_pb2
的用法示例。
在下文中一共展示了input_reader_pb2.InstanceMaskType方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _update_mask_type
# 需要導入模塊: from object_detection.protos import input_reader_pb2 [as 別名]
# 或者: from object_detection.protos.input_reader_pb2 import InstanceMaskType [as 別名]
def _update_mask_type(configs, mask_type):
"""Updates the mask type for both train and eval input readers.
The configs dictionary is updated in place, and hence not returned.
Args:
configs: Dictionary of configuration objects. See outputs from
get_configs_from_pipeline_file() or get_configs_from_multiple_files().
mask_type: A string name representing a value of
input_reader_pb2.InstanceMaskType
"""
configs["train_input_config"].mask_type = mask_type
_update_all_eval_input_configs(configs, "mask_type", mask_type)
示例2: _update_mask_type
# 需要導入模塊: from object_detection.protos import input_reader_pb2 [as 別名]
# 或者: from object_detection.protos.input_reader_pb2 import InstanceMaskType [as 別名]
def _update_mask_type(configs, mask_type):
"""Updates the mask type for both train and eval input readers.
The configs dictionary is updated in place, and hence not returned.
Args:
configs: Dictionary of configuration objects. See outputs from
get_configs_from_pipeline_file() or get_configs_from_multiple_files().
mask_type: A string name representing a value of
input_reader_pb2.InstanceMaskType
"""
configs["train_input_config"].mask_type = mask_type
configs["eval_input_config"].mask_type = mask_type