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.

261 lines
15 KiB

6 years ago
  1. # Generated by the protocol buffer compiler. DO NOT EDIT!
  2. # source: object_detection/protos/train.proto
  3. import sys,getpass
  4. _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
  5. from google.protobuf import descriptor as _descriptor
  6. from google.protobuf import message as _message
  7. from google.protobuf import reflection as _reflection
  8. from google.protobuf import symbol_database as _symbol_database
  9. # @@protoc_insertion_point(imports)
  10. _sym_db = _symbol_database.Default()
  11. from object_detection.protos import optimizer_pb2 as object__detection_dot_protos_dot_optimizer__pb2
  12. from object_detection.protos import preprocessor_pb2 as object__detection_dot_protos_dot_preprocessor__pb2
  13. DESCRIPTOR = _descriptor.FileDescriptor(
  14. name='object_detection/protos/train.proto',
  15. package='object_detection.protos',
  16. syntax='proto2',
  17. serialized_options=None,
  18. serialized_pb=_b('\n#object_detection/protos/train.proto\x12\x17object_detection.protos\x1a\'object_detection/protos/optimizer.proto\x1a*object_detection/protos/preprocessor.proto\"\xa1\x08\n\x0bTrainConfig\x12\x16\n\nbatch_size\x18\x01 \x01(\r:\x02\x33\x32\x12M\n\x19\x64\x61ta_augmentation_options\x18\x02 \x03(\x0b\x32*.object_detection.protos.PreprocessingStep\x12\x1c\n\rsync_replicas\x18\x03 \x01(\x08:\x05\x66\x61lse\x12,\n\x1dkeep_checkpoint_every_n_hours\x18\x04 \x01(\x02:\x05\x31\x30\x30\x30\x30\x12\x35\n\toptimizer\x18\x05 \x01(\x0b\x32\".object_detection.protos.Optimizer\x12$\n\x19gradient_clipping_by_norm\x18\x06 \x01(\x02:\x01\x30\x12\x1e\n\x14\x66ine_tune_checkpoint\x18\x07 \x01(\t:\x00\x12#\n\x19\x66ine_tune_checkpoint_type\x18\x16 \x01(\t:\x00\x12,\n\x19\x66rom_detection_checkpoint\x18\x08 \x01(\x08:\x05\x66\x61lseB\x02\x18\x01\x12\x31\n\"load_all_detection_checkpoint_vars\x18\x13 \x01(\x08:\x05\x66\x61lse\x12\x14\n\tnum_steps\x18\t \x01(\r:\x01\x30\x12\x1f\n\x13startup_delay_steps\x18\n \x01(\x02:\x02\x31\x35\x12\x1f\n\x14\x62ias_grad_multiplier\x18\x0b \x01(\x02:\x01\x30\x12\"\n\x1aupdate_trainable_variables\x18\x19 \x03(\t\x12\x18\n\x10\x66reeze_variables\x18\x0c \x03(\t\x12 \n\x15replicas_to_aggregate\x18\r \x01(\x05:\x01\x31\x12%\n\x14\x62\x61tch_queue_capacity\x18\x0e \x01(\x05:\x03\x31\x35\x30\x42\x02\x18\x01\x12&\n\x17num_batch_queue_threads\x18\x0f \x01(\x05:\x01\x38\x42\x02\x18\x01\x12&\n\x17prefetch_queue_capacity\x18\x10 \x01(\x05:\x01\x35\x42\x02\x18\x01\x12)\n\x1amerge_multiple_label_boxes\x18\x11 \x01(\x08:\x05\x66\x61lse\x12$\n\x15use_multiclass_scores\x18\x18 \x01(\x08:\x05\x66\x61lse\x12%\n\x17\x61\x64\x64_regularization_loss\x18\x12 \x01(\x08:\x04true\x12$\n\x13max_number_of_boxes\x18\x14 \x01(\x05:\x03\x31\x30\x30\x42\x02\x18\x01\x12\'\n\x19unpad_groundtruth_tensors\x18\x15 \x01(\x08:\x04true\x12%\n\x16retain_original_images\x18\x17 \x01(\x08:\x05\x66\x61lse\x12\x1b\n\x0cuse_bfloat16\x18\x1a \x01(\x08:\x05\x66\x61lse\x12\"\n\x13summarize_gradients\x18\x1b \x01(\x08:\x05\x66\x61lse')
  19. ,
  20. dependencies=[object__detection_dot_protos_dot_optimizer__pb2.DESCRIPTOR,object__detection_dot_protos_dot_preprocessor__pb2.DESCRIPTOR,])
  21. _TRAINCONFIG = _descriptor.Descriptor(
  22. name='TrainConfig',
  23. full_name='object_detection.protos.TrainConfig',
  24. filename=None,
  25. file=DESCRIPTOR,
  26. containing_type=None,
  27. fields=[
  28. _descriptor.FieldDescriptor(
  29. name='batch_size', full_name='object_detection.protos.TrainConfig.batch_size', index=0,
  30. number=1, type=13, cpp_type=3, label=1,
  31. has_default_value=True, default_value=32,
  32. message_type=None, enum_type=None, containing_type=None,
  33. is_extension=False, extension_scope=None,
  34. serialized_options=None, file=DESCRIPTOR),
  35. _descriptor.FieldDescriptor(
  36. name='data_augmentation_options', full_name='object_detection.protos.TrainConfig.data_augmentation_options', index=1,
  37. number=2, type=11, cpp_type=10, label=3,
  38. has_default_value=False, default_value=[],
  39. message_type=None, enum_type=None, containing_type=None,
  40. is_extension=False, extension_scope=None,
  41. serialized_options=None, file=DESCRIPTOR),
  42. _descriptor.FieldDescriptor(
  43. name='sync_replicas', full_name='object_detection.protos.TrainConfig.sync_replicas', index=2,
  44. number=3, type=8, cpp_type=7, label=1,
  45. has_default_value=True, default_value=False,
  46. message_type=None, enum_type=None, containing_type=None,
  47. is_extension=False, extension_scope=None,
  48. serialized_options=None, file=DESCRIPTOR),
  49. _descriptor.FieldDescriptor(
  50. name='keep_checkpoint_every_n_hours', full_name='object_detection.protos.TrainConfig.keep_checkpoint_every_n_hours', index=3,
  51. number=4, type=2, cpp_type=6, label=1,
  52. has_default_value=True, default_value=float(10000),
  53. message_type=None, enum_type=None, containing_type=None,
  54. is_extension=False, extension_scope=None,
  55. serialized_options=None, file=DESCRIPTOR),
  56. _descriptor.FieldDescriptor(
  57. name='optimizer', full_name='object_detection.protos.TrainConfig.optimizer', index=4,
  58. number=5, type=11, cpp_type=10, label=1,
  59. has_default_value=False, default_value=None,
  60. message_type=None, enum_type=None, containing_type=None,
  61. is_extension=False, extension_scope=None,
  62. serialized_options=None, file=DESCRIPTOR),
  63. _descriptor.FieldDescriptor(
  64. name='gradient_clipping_by_norm', full_name='object_detection.protos.TrainConfig.gradient_clipping_by_norm', index=5,
  65. number=6, type=2, cpp_type=6, label=1,
  66. has_default_value=True, default_value=float(0),
  67. message_type=None, enum_type=None, containing_type=None,
  68. is_extension=False, extension_scope=None,
  69. serialized_options=None, file=DESCRIPTOR),
  70. _descriptor.FieldDescriptor(
  71. name='fine_tune_checkpoint', full_name='object_detection.protos.TrainConfig.fine_tune_checkpoint', index=6,
  72. number=7, type=9, cpp_type=9, label=1,
  73. has_default_value=True, default_value=_b("").decode('utf-8'),
  74. message_type=None, enum_type=None, containing_type=None,
  75. is_extension=False, extension_scope=None,
  76. serialized_options=None, file=DESCRIPTOR),
  77. _descriptor.FieldDescriptor(
  78. name='fine_tune_checkpoint_type', full_name='object_detection.protos.TrainConfig.fine_tune_checkpoint_type', index=7,
  79. number=22, type=9, cpp_type=9, label=1,
  80. has_default_value=True, default_value=_b("").decode('utf-8'),
  81. message_type=None, enum_type=None, containing_type=None,
  82. is_extension=False, extension_scope=None,
  83. serialized_options=None, file=DESCRIPTOR),
  84. _descriptor.FieldDescriptor(
  85. name='from_detection_checkpoint', full_name='object_detection.protos.TrainConfig.from_detection_checkpoint', index=8,
  86. number=8, type=8, cpp_type=7, label=1,
  87. has_default_value=True, default_value=False,
  88. message_type=None, enum_type=None, containing_type=None,
  89. is_extension=False, extension_scope=None,
  90. serialized_options=_b('\030\001'), file=DESCRIPTOR),
  91. _descriptor.FieldDescriptor(
  92. name='load_all_detection_checkpoint_vars', full_name='object_detection.protos.TrainConfig.load_all_detection_checkpoint_vars', index=9,
  93. number=19, type=8, cpp_type=7, label=1,
  94. has_default_value=True, default_value=False,
  95. message_type=None, enum_type=None, containing_type=None,
  96. is_extension=False, extension_scope=None,
  97. serialized_options=None, file=DESCRIPTOR),
  98. _descriptor.FieldDescriptor(
  99. name='num_steps', full_name='object_detection.protos.TrainConfig.num_steps', index=10,
  100. number=9, type=13, cpp_type=3, label=1,
  101. has_default_value=True, default_value=0,
  102. message_type=None, enum_type=None, containing_type=None,
  103. is_extension=False, extension_scope=None,
  104. serialized_options=None, file=DESCRIPTOR),
  105. _descriptor.FieldDescriptor(
  106. name='startup_delay_steps', full_name='object_detection.protos.TrainConfig.startup_delay_steps', index=11,
  107. number=10, type=2, cpp_type=6, label=1,
  108. has_default_value=True, default_value=float(15),
  109. message_type=None, enum_type=None, containing_type=None,
  110. is_extension=False, extension_scope=None,
  111. serialized_options=None, file=DESCRIPTOR),
  112. _descriptor.FieldDescriptor(
  113. name='bias_grad_multiplier', full_name='object_detection.protos.TrainConfig.bias_grad_multiplier', index=12,
  114. number=11, type=2, cpp_type=6, label=1,
  115. has_default_value=True, default_value=float(0),
  116. message_type=None, enum_type=None, containing_type=None,
  117. is_extension=False, extension_scope=None,
  118. serialized_options=None, file=DESCRIPTOR),
  119. _descriptor.FieldDescriptor(
  120. name='update_trainable_variables', full_name='object_detection.protos.TrainConfig.update_trainable_variables', index=13,
  121. number=25, type=9, cpp_type=9, label=3,
  122. has_default_value=False, default_value=[],
  123. message_type=None, enum_type=None, containing_type=None,
  124. is_extension=False, extension_scope=None,
  125. serialized_options=None, file=DESCRIPTOR),
  126. _descriptor.FieldDescriptor(
  127. name='freeze_variables', full_name='object_detection.protos.TrainConfig.freeze_variables', index=14,
  128. number=12, type=9, cpp_type=9, label=3,
  129. has_default_value=False, default_value=[],
  130. message_type=None, enum_type=None, containing_type=None,
  131. is_extension=False, extension_scope=None,
  132. serialized_options=None, file=DESCRIPTOR),
  133. _descriptor.FieldDescriptor(
  134. name='replicas_to_aggregate', full_name='object_detection.protos.TrainConfig.replicas_to_aggregate', index=15,
  135. number=13, type=5, cpp_type=1, label=1,
  136. has_default_value=True, default_value=1,
  137. message_type=None, enum_type=None, containing_type=None,
  138. is_extension=False, extension_scope=None,
  139. serialized_options=None, file=DESCRIPTOR),
  140. _descriptor.FieldDescriptor(
  141. name='batch_queue_capacity', full_name='object_detection.protos.TrainConfig.batch_queue_capacity', index=16,
  142. number=14, type=5, cpp_type=1, label=1,
  143. has_default_value=True, default_value=150,
  144. message_type=None, enum_type=None, containing_type=None,
  145. is_extension=False, extension_scope=None,
  146. serialized_options=_b('\030\001'), file=DESCRIPTOR),
  147. _descriptor.FieldDescriptor(
  148. name='num_batch_queue_threads', full_name='object_detection.protos.TrainConfig.num_batch_queue_threads', index=17,
  149. number=15, type=5, cpp_type=1, label=1,
  150. has_default_value=True, default_value=8,
  151. message_type=None, enum_type=None, containing_type=None,
  152. is_extension=False, extension_scope=None,
  153. serialized_options=_b('\030\001'), file=DESCRIPTOR),
  154. _descriptor.FieldDescriptor(
  155. name='prefetch_queue_capacity', full_name='object_detection.protos.TrainConfig.prefetch_queue_capacity', index=18,
  156. number=16, type=5, cpp_type=1, label=1,
  157. has_default_value=True, default_value=5,
  158. message_type=None, enum_type=None, containing_type=None,
  159. is_extension=False, extension_scope=None,
  160. serialized_options=_b('\030\001'), file=DESCRIPTOR),
  161. _descriptor.FieldDescriptor(
  162. name='merge_multiple_label_boxes', full_name='object_detection.protos.TrainConfig.merge_multiple_label_boxes', index=19,
  163. number=17, type=8, cpp_type=7, label=1,
  164. has_default_value=True, default_value=False,
  165. message_type=None, enum_type=None, containing_type=None,
  166. is_extension=False, extension_scope=None,
  167. serialized_options=None, file=DESCRIPTOR),
  168. _descriptor.FieldDescriptor(
  169. name='use_multiclass_scores', full_name='object_detection.protos.TrainConfig.use_multiclass_scores', index=20,
  170. number=24, type=8, cpp_type=7, label=1,
  171. has_default_value=True, default_value=False,
  172. message_type=None, enum_type=None, containing_type=None,
  173. is_extension=False, extension_scope=None,
  174. serialized_options=None, file=DESCRIPTOR),
  175. _descriptor.FieldDescriptor(
  176. name='add_regularization_loss', full_name='object_detection.protos.TrainConfig.add_regularization_loss', index=21,
  177. number=18, type=8, cpp_type=7, label=1,
  178. has_default_value=True, default_value=True,
  179. message_type=None, enum_type=None, containing_type=None,
  180. is_extension=False, extension_scope=None,
  181. serialized_options=None, file=DESCRIPTOR),
  182. _descriptor.FieldDescriptor(
  183. name='max_number_of_boxes', full_name='object_detection.protos.TrainConfig.max_number_of_boxes', index=22,
  184. number=20, type=5, cpp_type=1, label=1,
  185. has_default_value=True, default_value=100,
  186. message_type=None, enum_type=None, containing_type=None,
  187. is_extension=False, extension_scope=None,
  188. serialized_options=_b('\030\001'), file=DESCRIPTOR),
  189. _descriptor.FieldDescriptor(
  190. name='unpad_groundtruth_tensors', full_name='object_detection.protos.TrainConfig.unpad_groundtruth_tensors', index=23,
  191. number=21, type=8, cpp_type=7, label=1,
  192. has_default_value=True, default_value=True,
  193. message_type=None, enum_type=None, containing_type=None,
  194. is_extension=False, extension_scope=None,
  195. serialized_options=None, file=DESCRIPTOR),
  196. _descriptor.FieldDescriptor(
  197. name='retain_original_images', full_name='object_detection.protos.TrainConfig.retain_original_images', index=24,
  198. number=23, type=8, cpp_type=7, label=1,
  199. has_default_value=True, default_value=False,
  200. message_type=None, enum_type=None, containing_type=None,
  201. is_extension=False, extension_scope=None,
  202. serialized_options=None, file=DESCRIPTOR),
  203. _descriptor.FieldDescriptor(
  204. name='use_bfloat16', full_name='object_detection.protos.TrainConfig.use_bfloat16', index=25,
  205. number=26, 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. serialized_options=None, file=DESCRIPTOR),
  210. _descriptor.FieldDescriptor(
  211. name='summarize_gradients', full_name='object_detection.protos.TrainConfig.summarize_gradients', index=26,
  212. number=27, type=8, cpp_type=7, label=1,
  213. has_default_value=True, default_value=False,
  214. message_type=None, enum_type=None, containing_type=None,
  215. is_extension=False, extension_scope=None,
  216. serialized_options=None, file=DESCRIPTOR),
  217. ],
  218. extensions=[
  219. ],
  220. nested_types=[],
  221. enum_types=[
  222. ],
  223. serialized_options=None,
  224. is_extendable=False,
  225. syntax='proto2',
  226. extension_ranges=[],
  227. oneofs=[
  228. ],
  229. serialized_start=150,
  230. serialized_end=1207,
  231. )
  232. _TRAINCONFIG.fields_by_name['data_augmentation_options'].message_type = object__detection_dot_protos_dot_preprocessor__pb2._PREPROCESSINGSTEP
  233. _TRAINCONFIG.fields_by_name['optimizer'].message_type = object__detection_dot_protos_dot_optimizer__pb2._OPTIMIZER
  234. DESCRIPTOR.message_types_by_name['TrainConfig'] = _TRAINCONFIG
  235. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  236. TrainConfig = _reflection.GeneratedProtocolMessageType('TrainConfig', (_message.Message,), dict(
  237. DESCRIPTOR = _TRAINCONFIG,
  238. __module__ = 'object_detection.protos.train_pb2'
  239. # @@protoc_insertion_point(class_scope:object_detection.protos.TrainConfig)
  240. ))
  241. _sym_db.RegisterMessage(TrainConfig)
  242. _TRAINCONFIG.fields_by_name['from_detection_checkpoint']._options = None
  243. _TRAINCONFIG.fields_by_name['batch_queue_capacity']._options = None
  244. _TRAINCONFIG.fields_by_name['num_batch_queue_threads']._options = None
  245. _TRAINCONFIG.fields_by_name['prefetch_queue_capacity']._options = None
  246. _TRAINCONFIG.fields_by_name['max_number_of_boxes']._options = None
  247. # @@protoc_insertion_point(module_scope)