You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

353 lines
17 KiB

  1. # Generated by the protocol buffer compiler. DO NOT EDIT!
  2. # source: object_detection/protos/input_reader.proto
  3. import sys
  4. _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
  5. from google.protobuf.internal import enum_type_wrapper
  6. from google.protobuf import descriptor as _descriptor
  7. from google.protobuf import message as _message
  8. from google.protobuf import reflection as _reflection
  9. from google.protobuf import symbol_database as _symbol_database
  10. from google.protobuf import descriptor_pb2
  11. # @@protoc_insertion_point(imports)
  12. _sym_db = _symbol_database.Default()
  13. DESCRIPTOR = _descriptor.FileDescriptor(
  14. name='object_detection/protos/input_reader.proto',
  15. package='object_detection.protos',
  16. syntax='proto2',
  17. serialized_pb=_b('\n*object_detection/protos/input_reader.proto\x12\x17object_detection.protos\"\xaa\x07\n\x0bInputReader\x12\x0e\n\x04name\x18\x17 \x01(\t:\x00\x12\x18\n\x0elabel_map_path\x18\x01 \x01(\t:\x00\x12\x15\n\x07shuffle\x18\x02 \x01(\x08:\x04true\x12!\n\x13shuffle_buffer_size\x18\x0b \x01(\r:\x04\x32\x30\x34\x38\x12*\n\x1d\x66ilenames_shuffle_buffer_size\x18\x0c \x01(\r:\x03\x31\x30\x30\x12\x15\n\nnum_epochs\x18\x05 \x01(\r:\x01\x30\x12!\n\x16sample_1_of_n_examples\x18\x16 \x01(\r:\x01\x31\x12\x17\n\x0bnum_readers\x18\x06 \x01(\r:\x02\x36\x34\x12\x1f\n\x14num_parallel_batches\x18\x13 \x01(\r:\x01\x38\x12\x1f\n\x14num_prefetch_batches\x18\x14 \x01(\x05:\x01\x32\x12 \n\x0equeue_capacity\x18\x03 \x01(\r:\x04\x32\x30\x30\x30\x42\x02\x18\x01\x12#\n\x11min_after_dequeue\x18\x04 \x01(\r:\x04\x31\x30\x30\x30\x42\x02\x18\x01\x12\x1d\n\x11read_block_length\x18\x0f \x01(\r:\x02\x33\x32\x12\x1e\n\rprefetch_size\x18\r \x01(\r:\x03\x35\x31\x32\x42\x02\x18\x01\x12&\n\x16num_parallel_map_calls\x18\x0e \x01(\r:\x02\x36\x34\x42\x02\x18\x01\x12\"\n\x17num_additional_channels\x18\x12 \x01(\x05:\x01\x30\x12\x18\n\rnum_keypoints\x18\x10 \x01(\r:\x01\x30\x12 \n\x13max_number_of_boxes\x18\x15 \x01(\x05:\x03\x31\x30\x30\x12%\n\x16load_multiclass_scores\x18\x18 \x01(\x08:\x05\x66\x61lse\x12\"\n\x13load_instance_masks\x18\x07 \x01(\x08:\x05\x66\x61lse\x12M\n\tmask_type\x18\n \x01(\x0e\x32).object_detection.protos.InstanceMaskType:\x0fNUMERICAL_MASKS\x12\x1f\n\x10use_display_name\x18\x11 \x01(\x08:\x05\x66\x61lse\x12N\n\x16tf_record_input_reader\x18\x08 \x01(\x0b\x32,.object_detection.protos.TFRecordInputReaderH\x00\x12M\n\x15\x65xternal_input_reader\x18\t \x01(\x0b\x32,.object_detection.protos.ExternalInputReaderH\x00\x42\x0e\n\x0cinput_reader\")\n\x13TFRecordInputReader\x12\x12\n\ninput_path\x18\x01 \x03(\t\"\x1c\n\x13\x45xternalInputReader*\x05\x08\x01\x10\xe8\x07*C\n\x10InstanceMaskType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x13\n\x0fNUMERICAL_MASKS\x10\x01\x12\r\n\tPNG_MASKS\x10\x02')
  18. )
  19. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  20. _INSTANCEMASKTYPE = _descriptor.EnumDescriptor(
  21. name='InstanceMaskType',
  22. full_name='object_detection.protos.InstanceMaskType',
  23. filename=None,
  24. file=DESCRIPTOR,
  25. values=[
  26. _descriptor.EnumValueDescriptor(
  27. name='DEFAULT', index=0, number=0,
  28. options=None,
  29. type=None),
  30. _descriptor.EnumValueDescriptor(
  31. name='NUMERICAL_MASKS', index=1, number=1,
  32. options=None,
  33. type=None),
  34. _descriptor.EnumValueDescriptor(
  35. name='PNG_MASKS', index=2, number=2,
  36. options=None,
  37. type=None),
  38. ],
  39. containing_type=None,
  40. options=None,
  41. serialized_start=1085,
  42. serialized_end=1152,
  43. )
  44. _sym_db.RegisterEnumDescriptor(_INSTANCEMASKTYPE)
  45. InstanceMaskType = enum_type_wrapper.EnumTypeWrapper(_INSTANCEMASKTYPE)
  46. DEFAULT = 0
  47. NUMERICAL_MASKS = 1
  48. PNG_MASKS = 2
  49. _INPUTREADER = _descriptor.Descriptor(
  50. name='InputReader',
  51. full_name='object_detection.protos.InputReader',
  52. filename=None,
  53. file=DESCRIPTOR,
  54. containing_type=None,
  55. fields=[
  56. _descriptor.FieldDescriptor(
  57. name='name', full_name='object_detection.protos.InputReader.name', index=0,
  58. number=23, type=9, cpp_type=9, label=1,
  59. has_default_value=True, default_value=_b("").decode('utf-8'),
  60. message_type=None, enum_type=None, containing_type=None,
  61. is_extension=False, extension_scope=None,
  62. options=None),
  63. _descriptor.FieldDescriptor(
  64. name='label_map_path', full_name='object_detection.protos.InputReader.label_map_path', index=1,
  65. number=1, type=9, cpp_type=9, label=1,
  66. has_default_value=True, default_value=_b("").decode('utf-8'),
  67. message_type=None, enum_type=None, containing_type=None,
  68. is_extension=False, extension_scope=None,
  69. options=None),
  70. _descriptor.FieldDescriptor(
  71. name='shuffle', full_name='object_detection.protos.InputReader.shuffle', index=2,
  72. number=2, type=8, cpp_type=7, label=1,
  73. has_default_value=True, default_value=True,
  74. message_type=None, enum_type=None, containing_type=None,
  75. is_extension=False, extension_scope=None,
  76. options=None),
  77. _descriptor.FieldDescriptor(
  78. name='shuffle_buffer_size', full_name='object_detection.protos.InputReader.shuffle_buffer_size', index=3,
  79. number=11, type=13, cpp_type=3, label=1,
  80. has_default_value=True, default_value=2048,
  81. message_type=None, enum_type=None, containing_type=None,
  82. is_extension=False, extension_scope=None,
  83. options=None),
  84. _descriptor.FieldDescriptor(
  85. name='filenames_shuffle_buffer_size', full_name='object_detection.protos.InputReader.filenames_shuffle_buffer_size', index=4,
  86. number=12, type=13, cpp_type=3, label=1,
  87. has_default_value=True, default_value=100,
  88. message_type=None, enum_type=None, containing_type=None,
  89. is_extension=False, extension_scope=None,
  90. options=None),
  91. _descriptor.FieldDescriptor(
  92. name='num_epochs', full_name='object_detection.protos.InputReader.num_epochs', index=5,
  93. number=5, type=13, cpp_type=3, label=1,
  94. has_default_value=True, default_value=0,
  95. message_type=None, enum_type=None, containing_type=None,
  96. is_extension=False, extension_scope=None,
  97. options=None),
  98. _descriptor.FieldDescriptor(
  99. name='sample_1_of_n_examples', full_name='object_detection.protos.InputReader.sample_1_of_n_examples', index=6,
  100. number=22, type=13, cpp_type=3, label=1,
  101. has_default_value=True, default_value=1,
  102. message_type=None, enum_type=None, containing_type=None,
  103. is_extension=False, extension_scope=None,
  104. options=None),
  105. _descriptor.FieldDescriptor(
  106. name='num_readers', full_name='object_detection.protos.InputReader.num_readers', index=7,
  107. number=6, type=13, cpp_type=3, label=1,
  108. has_default_value=True, default_value=64,
  109. message_type=None, enum_type=None, containing_type=None,
  110. is_extension=False, extension_scope=None,
  111. options=None),
  112. _descriptor.FieldDescriptor(
  113. name='num_parallel_batches', full_name='object_detection.protos.InputReader.num_parallel_batches', index=8,
  114. number=19, type=13, cpp_type=3, label=1,
  115. has_default_value=True, default_value=8,
  116. message_type=None, enum_type=None, containing_type=None,
  117. is_extension=False, extension_scope=None,
  118. options=None),
  119. _descriptor.FieldDescriptor(
  120. name='num_prefetch_batches', full_name='object_detection.protos.InputReader.num_prefetch_batches', index=9,
  121. number=20, type=5, cpp_type=1, label=1,
  122. has_default_value=True, default_value=2,
  123. message_type=None, enum_type=None, containing_type=None,
  124. is_extension=False, extension_scope=None,
  125. options=None),
  126. _descriptor.FieldDescriptor(
  127. name='queue_capacity', full_name='object_detection.protos.InputReader.queue_capacity', index=10,
  128. number=3, type=13, cpp_type=3, label=1,
  129. has_default_value=True, default_value=2000,
  130. message_type=None, enum_type=None, containing_type=None,
  131. is_extension=False, extension_scope=None,
  132. options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))),
  133. _descriptor.FieldDescriptor(
  134. name='min_after_dequeue', full_name='object_detection.protos.InputReader.min_after_dequeue', index=11,
  135. number=4, type=13, cpp_type=3, label=1,
  136. has_default_value=True, default_value=1000,
  137. message_type=None, enum_type=None, containing_type=None,
  138. is_extension=False, extension_scope=None,
  139. options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))),
  140. _descriptor.FieldDescriptor(
  141. name='read_block_length', full_name='object_detection.protos.InputReader.read_block_length', index=12,
  142. number=15, type=13, cpp_type=3, label=1,
  143. has_default_value=True, default_value=32,
  144. message_type=None, enum_type=None, containing_type=None,
  145. is_extension=False, extension_scope=None,
  146. options=None),
  147. _descriptor.FieldDescriptor(
  148. name='prefetch_size', full_name='object_detection.protos.InputReader.prefetch_size', index=13,
  149. number=13, type=13, cpp_type=3, label=1,
  150. has_default_value=True, default_value=512,
  151. message_type=None, enum_type=None, containing_type=None,
  152. is_extension=False, extension_scope=None,
  153. options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))),
  154. _descriptor.FieldDescriptor(
  155. name='num_parallel_map_calls', full_name='object_detection.protos.InputReader.num_parallel_map_calls', index=14,
  156. number=14, type=13, cpp_type=3, label=1,
  157. has_default_value=True, default_value=64,
  158. message_type=None, enum_type=None, containing_type=None,
  159. is_extension=False, extension_scope=None,
  160. options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))),
  161. _descriptor.FieldDescriptor(
  162. name='num_additional_channels', full_name='object_detection.protos.InputReader.num_additional_channels', index=15,
  163. number=18, type=5, cpp_type=1, label=1,
  164. has_default_value=True, default_value=0,
  165. message_type=None, enum_type=None, containing_type=None,
  166. is_extension=False, extension_scope=None,
  167. options=None),
  168. _descriptor.FieldDescriptor(
  169. name='num_keypoints', full_name='object_detection.protos.InputReader.num_keypoints', index=16,
  170. number=16, type=13, cpp_type=3, label=1,
  171. has_default_value=True, default_value=0,
  172. message_type=None, enum_type=None, containing_type=None,
  173. is_extension=False, extension_scope=None,
  174. options=None),
  175. _descriptor.FieldDescriptor(
  176. name='max_number_of_boxes', full_name='object_detection.protos.InputReader.max_number_of_boxes', index=17,
  177. number=21, type=5, cpp_type=1, label=1,
  178. has_default_value=True, default_value=100,
  179. message_type=None, enum_type=None, containing_type=None,
  180. is_extension=False, extension_scope=None,
  181. options=None),
  182. _descriptor.FieldDescriptor(
  183. name='load_multiclass_scores', full_name='object_detection.protos.InputReader.load_multiclass_scores', index=18,
  184. number=24, type=8, cpp_type=7, label=1,
  185. has_default_value=True, default_value=False,
  186. message_type=None, enum_type=None, containing_type=None,
  187. is_extension=False, extension_scope=None,
  188. options=None),
  189. _descriptor.FieldDescriptor(
  190. name='load_instance_masks', full_name='object_detection.protos.InputReader.load_instance_masks', index=19,
  191. number=7, type=8, cpp_type=7, label=1,
  192. has_default_value=True, default_value=False,
  193. message_type=None, enum_type=None, containing_type=None,
  194. is_extension=False, extension_scope=None,
  195. options=None),
  196. _descriptor.FieldDescriptor(
  197. name='mask_type', full_name='object_detection.protos.InputReader.mask_type', index=20,
  198. number=10, type=14, cpp_type=8, label=1,
  199. has_default_value=True, default_value=1,
  200. message_type=None, enum_type=None, containing_type=None,
  201. is_extension=False, extension_scope=None,
  202. options=None),
  203. _descriptor.FieldDescriptor(
  204. name='use_display_name', full_name='object_detection.protos.InputReader.use_display_name', index=21,
  205. number=17, type=8, cpp_type=7, label=1,
  206. has_default_value=True, default_value=False,
  207. message_type=None, enum_type=None, containing_type=None,
  208. is_extension=False, extension_scope=None,
  209. options=None),
  210. _descriptor.FieldDescriptor(
  211. name='tf_record_input_reader', full_name='object_detection.protos.InputReader.tf_record_input_reader', index=22,
  212. number=8, type=11, cpp_type=10, label=1,
  213. has_default_value=False, default_value=None,
  214. message_type=None, enum_type=None, containing_type=None,
  215. is_extension=False, extension_scope=None,
  216. options=None),
  217. _descriptor.FieldDescriptor(
  218. name='external_input_reader', full_name='object_detection.protos.InputReader.external_input_reader', index=23,
  219. number=9, type=11, cpp_type=10, label=1,
  220. has_default_value=False, default_value=None,
  221. message_type=None, enum_type=None, containing_type=None,
  222. is_extension=False, extension_scope=None,
  223. options=None),
  224. ],
  225. extensions=[
  226. ],
  227. nested_types=[],
  228. enum_types=[
  229. ],
  230. options=None,
  231. is_extendable=False,
  232. syntax='proto2',
  233. extension_ranges=[],
  234. oneofs=[
  235. _descriptor.OneofDescriptor(
  236. name='input_reader', full_name='object_detection.protos.InputReader.input_reader',
  237. index=0, containing_type=None, fields=[]),
  238. ],
  239. serialized_start=72,
  240. serialized_end=1010,
  241. )
  242. _TFRECORDINPUTREADER = _descriptor.Descriptor(
  243. name='TFRecordInputReader',
  244. full_name='object_detection.protos.TFRecordInputReader',
  245. filename=None,
  246. file=DESCRIPTOR,
  247. containing_type=None,
  248. fields=[
  249. _descriptor.FieldDescriptor(
  250. name='input_path', full_name='object_detection.protos.TFRecordInputReader.input_path', index=0,
  251. number=1, type=9, cpp_type=9, label=3,
  252. has_default_value=False, default_value=[],
  253. message_type=None, enum_type=None, containing_type=None,
  254. is_extension=False, extension_scope=None,
  255. options=None),
  256. ],
  257. extensions=[
  258. ],
  259. nested_types=[],
  260. enum_types=[
  261. ],
  262. options=None,
  263. is_extendable=False,
  264. syntax='proto2',
  265. extension_ranges=[],
  266. oneofs=[
  267. ],
  268. serialized_start=1012,
  269. serialized_end=1053,
  270. )
  271. _EXTERNALINPUTREADER = _descriptor.Descriptor(
  272. name='ExternalInputReader',
  273. full_name='object_detection.protos.ExternalInputReader',
  274. filename=None,
  275. file=DESCRIPTOR,
  276. containing_type=None,
  277. fields=[
  278. ],
  279. extensions=[
  280. ],
  281. nested_types=[],
  282. enum_types=[
  283. ],
  284. options=None,
  285. is_extendable=True,
  286. syntax='proto2',
  287. extension_ranges=[(1, 1000), ],
  288. oneofs=[
  289. ],
  290. serialized_start=1055,
  291. serialized_end=1083,
  292. )
  293. _INPUTREADER.fields_by_name['mask_type'].enum_type = _INSTANCEMASKTYPE
  294. _INPUTREADER.fields_by_name['tf_record_input_reader'].message_type = _TFRECORDINPUTREADER
  295. _INPUTREADER.fields_by_name['external_input_reader'].message_type = _EXTERNALINPUTREADER
  296. _INPUTREADER.oneofs_by_name['input_reader'].fields.append(
  297. _INPUTREADER.fields_by_name['tf_record_input_reader'])
  298. _INPUTREADER.fields_by_name['tf_record_input_reader'].containing_oneof = _INPUTREADER.oneofs_by_name['input_reader']
  299. _INPUTREADER.oneofs_by_name['input_reader'].fields.append(
  300. _INPUTREADER.fields_by_name['external_input_reader'])
  301. _INPUTREADER.fields_by_name['external_input_reader'].containing_oneof = _INPUTREADER.oneofs_by_name['input_reader']
  302. DESCRIPTOR.message_types_by_name['InputReader'] = _INPUTREADER
  303. DESCRIPTOR.message_types_by_name['TFRecordInputReader'] = _TFRECORDINPUTREADER
  304. DESCRIPTOR.message_types_by_name['ExternalInputReader'] = _EXTERNALINPUTREADER
  305. DESCRIPTOR.enum_types_by_name['InstanceMaskType'] = _INSTANCEMASKTYPE
  306. InputReader = _reflection.GeneratedProtocolMessageType('InputReader', (_message.Message,), dict(
  307. DESCRIPTOR = _INPUTREADER,
  308. __module__ = 'object_detection.protos.input_reader_pb2'
  309. # @@protoc_insertion_point(class_scope:object_detection.protos.InputReader)
  310. ))
  311. _sym_db.RegisterMessage(InputReader)
  312. TFRecordInputReader = _reflection.GeneratedProtocolMessageType('TFRecordInputReader', (_message.Message,), dict(
  313. DESCRIPTOR = _TFRECORDINPUTREADER,
  314. __module__ = 'object_detection.protos.input_reader_pb2'
  315. # @@protoc_insertion_point(class_scope:object_detection.protos.TFRecordInputReader)
  316. ))
  317. _sym_db.RegisterMessage(TFRecordInputReader)
  318. ExternalInputReader = _reflection.GeneratedProtocolMessageType('ExternalInputReader', (_message.Message,), dict(
  319. DESCRIPTOR = _EXTERNALINPUTREADER,
  320. __module__ = 'object_detection.protos.input_reader_pb2'
  321. # @@protoc_insertion_point(class_scope:object_detection.protos.ExternalInputReader)
  322. ))
  323. _sym_db.RegisterMessage(ExternalInputReader)
  324. _INPUTREADER.fields_by_name['queue_capacity'].has_options = True
  325. _INPUTREADER.fields_by_name['queue_capacity']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))
  326. _INPUTREADER.fields_by_name['min_after_dequeue'].has_options = True
  327. _INPUTREADER.fields_by_name['min_after_dequeue']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))
  328. _INPUTREADER.fields_by_name['prefetch_size'].has_options = True
  329. _INPUTREADER.fields_by_name['prefetch_size']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))
  330. _INPUTREADER.fields_by_name['num_parallel_map_calls'].has_options = True
  331. _INPUTREADER.fields_by_name['num_parallel_map_calls']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))
  332. # @@protoc_insertion_point(module_scope)