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.

859 lines
37 KiB

  1. # Generated by the protocol buffer compiler. DO NOT EDIT!
  2. # source: object_detection/protos/losses.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 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. from google.protobuf import descriptor_pb2
  10. # @@protoc_insertion_point(imports)
  11. _sym_db = _symbol_database.Default()
  12. DESCRIPTOR = _descriptor.FileDescriptor(
  13. name='object_detection/protos/losses.proto',
  14. package='object_detection.protos',
  15. syntax='proto2',
  16. serialized_pb=_b('\n$object_detection/protos/losses.proto\x12\x17object_detection.protos\"\xfe\x05\n\x04Loss\x12\x44\n\x11localization_loss\x18\x01 \x01(\x0b\x32).object_detection.protos.LocalizationLoss\x12H\n\x13\x63lassification_loss\x18\x02 \x01(\x0b\x32+.object_detection.protos.ClassificationLoss\x12\x45\n\x12hard_example_miner\x18\x03 \x01(\x0b\x32).object_detection.protos.HardExampleMiner\x12 \n\x15\x63lassification_weight\x18\x04 \x01(\x02:\x01\x31\x12\x1e\n\x13localization_weight\x18\x05 \x01(\x02:\x01\x31\x12M\n\x16random_example_sampler\x18\x06 \x01(\x0b\x32-.object_detection.protos.RandomExampleSampler\x12I\n\x11\x65qualization_loss\x18\x07 \x01(\x0b\x32..object_detection.protos.Loss.EqualizationLoss\x12V\n\x15\x65xpected_loss_weights\x18\x12 \x01(\x0e\x32\x31.object_detection.protos.Loss.ExpectedLossWeights:\x04NONE\x12#\n\x18min_num_negative_samples\x18\x13 \x01(\x02:\x01\x30\x12*\n\x1f\x64\x65sired_negative_sampling_ratio\x18\x14 \x01(\x02:\x01\x33\x1a?\n\x10\x45qualizationLoss\x12\x11\n\x06weight\x18\x01 \x01(\x02:\x01\x30\x12\x18\n\x10\x65xclude_prefixes\x18\x02 \x03(\t\"Y\n\x13\x45xpectedLossWeights\x12\x08\n\x04NONE\x10\x00\x12\x15\n\x11\x45XPECTED_SAMPLING\x10\x01\x12!\n\x1dREWEIGHTING_UNMATCHED_ANCHORS\x10\x02\"\x9a\x02\n\x10LocalizationLoss\x12J\n\x0bweighted_l2\x18\x01 \x01(\x0b\x32\x33.object_detection.protos.WeightedL2LocalizationLossH\x00\x12W\n\x12weighted_smooth_l1\x18\x02 \x01(\x0b\x32\x39.object_detection.protos.WeightedSmoothL1LocalizationLossH\x00\x12L\n\x0cweighted_iou\x18\x03 \x01(\x0b\x32\x34.object_detection.protos.WeightedIOULocalizationLossH\x00\x42\x13\n\x11localization_loss\">\n\x1aWeightedL2LocalizationLoss\x12 \n\x11\x61nchorwise_output\x18\x01 \x01(\x08:\x05\x66\x61lse\"V\n WeightedSmoothL1LocalizationLoss\x12 \n\x11\x61nchorwise_output\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x10\n\x05\x64\x65lta\x18\x02 \x01(\x02:\x01\x31\"\x1d\n\x1bWeightedIOULocalizationLoss\"\x82\x04\n\x12\x43lassificationLoss\x12V\n\x10weighted_sigmoid\x18\x01 \x01(\x0b\x32:.object_detection.protos.WeightedSigmoidClassificationLossH\x00\x12V\n\x10weighted_softmax\x18\x02 \x01(\x0b\x32:.object_detection.protos.WeightedSoftmaxClassificationLossH\x00\x12j\n\x17weighted_logits_softmax\x18\x05 \x01(\x0b\x32G.object_detection.protos.WeightedSoftmaxClassificationAgainstLogitsLossH\x00\x12^\n\x14\x62ootstrapped_sigmoid\x18\x03 \x01(\x0b\x32>.object_detection.protos.BootstrappedSigmoidClassificationLossH\x00\x12Y\n\x16weighted_sigmoid_focal\x18\x04 \x01(\x0b\x32\x37.object_detection.protos.SigmoidFocalClassificationLossH\x00\x42\x15\n\x13\x63lassification_loss\"E\n!WeightedSigmoidClassificationLoss\x12 \n\x11\x61nchorwise_output\x18\x01 \x01(\x08:\x05\x66\x61lse\"c\n\x1eSigmoidFocalClassificationLoss\x12 \n\x11\x61nchorwise_output\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x10\n\x05gamma\x18\x02 \x01(\x02:\x01\x32\x12\r\n\x05\x61lpha\x18\x03 \x01(\x02\"]\n!WeightedSoftmaxClassificationLoss\x12 \n\x11\x61nchorwise_output\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x16\n\x0blogit_scale\x18\x02 \x01(\x02:\x01\x31\"j\n.WeightedSoftmaxClassificationAgainstLogitsLoss\x12 \n\x11\x61nchorwise_output\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x16\n\x0blogit_scale\x18\x02 \x01(\x02:\x01\x31\"w\n%BootstrappedSigmoidClassificationLoss\x12\r\n\x05\x61lpha\x18\x01 \x01(\x02\x12\x1d\n\x0ehard_bootstrap\x18\x02 \x01(\x08:\x05\x66\x61lse\x12 \n\x11\x61nchorwise_output\x18\x03 \x01(\x08:\x05\x66\x61lse\"\xa1\x02\n\x10HardExampleMiner\x12\x1d\n\x11num_hard_examples\x18\x01 \x01(\x05:\x02\x36\x34\x12\x1a\n\riou_threshold\x18\x02 \x01(\x02:\x03\x30.7\x12K\n\tloss_type\x18\x03 \x01(\x0e\x32\x32.object_detection.protos.HardExampleMiner.LossType:\x04\x42OTH\x12%\n\x1amax_negatives_per_positive\x18\x04 \x01(\x05:\x01\x30\x12\"\n\x17min_negatives_per_image\x18\x05 \x01(\x05:\x01\x30\":\n\x08LossType\x12\x08\n\x04\x42OTH\x10\x00\x12\x12\n\x0e\x43LASSIFICATION\x10\x01\x12\x10\n\x0cLOCALIZATION\x10\x02\">\n\x14RandomExampleSampler\x12&\n\x18positive_sample_fraction\x18\x01 \x01(\x02:\x04\x30.01')
  17. )
  18. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  19. _LOSS_EXPECTEDLOSSWEIGHTS = _descriptor.EnumDescriptor(
  20. name='ExpectedLossWeights',
  21. full_name='object_detection.protos.Loss.ExpectedLossWeights',
  22. filename=None,
  23. file=DESCRIPTOR,
  24. values=[
  25. _descriptor.EnumValueDescriptor(
  26. name='NONE', index=0, number=0,
  27. options=None,
  28. type=None),
  29. _descriptor.EnumValueDescriptor(
  30. name='EXPECTED_SAMPLING', index=1, number=1,
  31. options=None,
  32. type=None),
  33. _descriptor.EnumValueDescriptor(
  34. name='REWEIGHTING_UNMATCHED_ANCHORS', index=2, number=2,
  35. options=None,
  36. type=None),
  37. ],
  38. containing_type=None,
  39. options=None,
  40. serialized_start=743,
  41. serialized_end=832,
  42. )
  43. _sym_db.RegisterEnumDescriptor(_LOSS_EXPECTEDLOSSWEIGHTS)
  44. _HARDEXAMPLEMINER_LOSSTYPE = _descriptor.EnumDescriptor(
  45. name='LossType',
  46. full_name='object_detection.protos.HardExampleMiner.LossType',
  47. filename=None,
  48. file=DESCRIPTOR,
  49. values=[
  50. _descriptor.EnumValueDescriptor(
  51. name='BOTH', index=0, number=0,
  52. options=None,
  53. type=None),
  54. _descriptor.EnumValueDescriptor(
  55. name='CLASSIFICATION', index=1, number=1,
  56. options=None,
  57. type=None),
  58. _descriptor.EnumValueDescriptor(
  59. name='LOCALIZATION', index=2, number=2,
  60. options=None,
  61. type=None),
  62. ],
  63. containing_type=None,
  64. options=None,
  65. serialized_start=2547,
  66. serialized_end=2605,
  67. )
  68. _sym_db.RegisterEnumDescriptor(_HARDEXAMPLEMINER_LOSSTYPE)
  69. _LOSS_EQUALIZATIONLOSS = _descriptor.Descriptor(
  70. name='EqualizationLoss',
  71. full_name='object_detection.protos.Loss.EqualizationLoss',
  72. filename=None,
  73. file=DESCRIPTOR,
  74. containing_type=None,
  75. fields=[
  76. _descriptor.FieldDescriptor(
  77. name='weight', full_name='object_detection.protos.Loss.EqualizationLoss.weight', index=0,
  78. number=1, type=2, cpp_type=6, label=1,
  79. has_default_value=True, default_value=float(0),
  80. message_type=None, enum_type=None, containing_type=None,
  81. is_extension=False, extension_scope=None,
  82. options=None),
  83. _descriptor.FieldDescriptor(
  84. name='exclude_prefixes', full_name='object_detection.protos.Loss.EqualizationLoss.exclude_prefixes', index=1,
  85. number=2, type=9, cpp_type=9, label=3,
  86. has_default_value=False, default_value=[],
  87. message_type=None, enum_type=None, containing_type=None,
  88. is_extension=False, extension_scope=None,
  89. options=None),
  90. ],
  91. extensions=[
  92. ],
  93. nested_types=[],
  94. enum_types=[
  95. ],
  96. options=None,
  97. is_extendable=False,
  98. syntax='proto2',
  99. extension_ranges=[],
  100. oneofs=[
  101. ],
  102. serialized_start=678,
  103. serialized_end=741,
  104. )
  105. _LOSS = _descriptor.Descriptor(
  106. name='Loss',
  107. full_name='object_detection.protos.Loss',
  108. filename=None,
  109. file=DESCRIPTOR,
  110. containing_type=None,
  111. fields=[
  112. _descriptor.FieldDescriptor(
  113. name='localization_loss', full_name='object_detection.protos.Loss.localization_loss', index=0,
  114. number=1, type=11, cpp_type=10, label=1,
  115. has_default_value=False, default_value=None,
  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='classification_loss', full_name='object_detection.protos.Loss.classification_loss', index=1,
  121. number=2, type=11, cpp_type=10, label=1,
  122. has_default_value=False, default_value=None,
  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='hard_example_miner', full_name='object_detection.protos.Loss.hard_example_miner', index=2,
  128. number=3, type=11, cpp_type=10, label=1,
  129. has_default_value=False, default_value=None,
  130. message_type=None, enum_type=None, containing_type=None,
  131. is_extension=False, extension_scope=None,
  132. options=None),
  133. _descriptor.FieldDescriptor(
  134. name='classification_weight', full_name='object_detection.protos.Loss.classification_weight', index=3,
  135. number=4, type=2, cpp_type=6, label=1,
  136. has_default_value=True, default_value=float(1),
  137. message_type=None, enum_type=None, containing_type=None,
  138. is_extension=False, extension_scope=None,
  139. options=None),
  140. _descriptor.FieldDescriptor(
  141. name='localization_weight', full_name='object_detection.protos.Loss.localization_weight', index=4,
  142. number=5, type=2, cpp_type=6, label=1,
  143. has_default_value=True, default_value=float(1),
  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='random_example_sampler', full_name='object_detection.protos.Loss.random_example_sampler', index=5,
  149. number=6, type=11, cpp_type=10, label=1,
  150. has_default_value=False, default_value=None,
  151. message_type=None, enum_type=None, containing_type=None,
  152. is_extension=False, extension_scope=None,
  153. options=None),
  154. _descriptor.FieldDescriptor(
  155. name='equalization_loss', full_name='object_detection.protos.Loss.equalization_loss', index=6,
  156. number=7, type=11, cpp_type=10, label=1,
  157. has_default_value=False, default_value=None,
  158. message_type=None, enum_type=None, containing_type=None,
  159. is_extension=False, extension_scope=None,
  160. options=None),
  161. _descriptor.FieldDescriptor(
  162. name='expected_loss_weights', full_name='object_detection.protos.Loss.expected_loss_weights', index=7,
  163. number=18, type=14, cpp_type=8, 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='min_num_negative_samples', full_name='object_detection.protos.Loss.min_num_negative_samples', index=8,
  170. number=19, type=2, cpp_type=6, label=1,
  171. has_default_value=True, default_value=float(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='desired_negative_sampling_ratio', full_name='object_detection.protos.Loss.desired_negative_sampling_ratio', index=9,
  177. number=20, type=2, cpp_type=6, label=1,
  178. has_default_value=True, default_value=float(3),
  179. message_type=None, enum_type=None, containing_type=None,
  180. is_extension=False, extension_scope=None,
  181. options=None),
  182. ],
  183. extensions=[
  184. ],
  185. nested_types=[_LOSS_EQUALIZATIONLOSS, ],
  186. enum_types=[
  187. _LOSS_EXPECTEDLOSSWEIGHTS,
  188. ],
  189. options=None,
  190. is_extendable=False,
  191. syntax='proto2',
  192. extension_ranges=[],
  193. oneofs=[
  194. ],
  195. serialized_start=66,
  196. serialized_end=832,
  197. )
  198. _LOCALIZATIONLOSS = _descriptor.Descriptor(
  199. name='LocalizationLoss',
  200. full_name='object_detection.protos.LocalizationLoss',
  201. filename=None,
  202. file=DESCRIPTOR,
  203. containing_type=None,
  204. fields=[
  205. _descriptor.FieldDescriptor(
  206. name='weighted_l2', full_name='object_detection.protos.LocalizationLoss.weighted_l2', index=0,
  207. number=1, type=11, cpp_type=10, label=1,
  208. has_default_value=False, default_value=None,
  209. message_type=None, enum_type=None, containing_type=None,
  210. is_extension=False, extension_scope=None,
  211. options=None),
  212. _descriptor.FieldDescriptor(
  213. name='weighted_smooth_l1', full_name='object_detection.protos.LocalizationLoss.weighted_smooth_l1', index=1,
  214. number=2, type=11, cpp_type=10, label=1,
  215. has_default_value=False, default_value=None,
  216. message_type=None, enum_type=None, containing_type=None,
  217. is_extension=False, extension_scope=None,
  218. options=None),
  219. _descriptor.FieldDescriptor(
  220. name='weighted_iou', full_name='object_detection.protos.LocalizationLoss.weighted_iou', index=2,
  221. number=3, type=11, cpp_type=10, label=1,
  222. has_default_value=False, default_value=None,
  223. message_type=None, enum_type=None, containing_type=None,
  224. is_extension=False, extension_scope=None,
  225. options=None),
  226. ],
  227. extensions=[
  228. ],
  229. nested_types=[],
  230. enum_types=[
  231. ],
  232. options=None,
  233. is_extendable=False,
  234. syntax='proto2',
  235. extension_ranges=[],
  236. oneofs=[
  237. _descriptor.OneofDescriptor(
  238. name='localization_loss', full_name='object_detection.protos.LocalizationLoss.localization_loss',
  239. index=0, containing_type=None, fields=[]),
  240. ],
  241. serialized_start=835,
  242. serialized_end=1117,
  243. )
  244. _WEIGHTEDL2LOCALIZATIONLOSS = _descriptor.Descriptor(
  245. name='WeightedL2LocalizationLoss',
  246. full_name='object_detection.protos.WeightedL2LocalizationLoss',
  247. filename=None,
  248. file=DESCRIPTOR,
  249. containing_type=None,
  250. fields=[
  251. _descriptor.FieldDescriptor(
  252. name='anchorwise_output', full_name='object_detection.protos.WeightedL2LocalizationLoss.anchorwise_output', index=0,
  253. number=1, type=8, cpp_type=7, label=1,
  254. has_default_value=True, default_value=False,
  255. message_type=None, enum_type=None, containing_type=None,
  256. is_extension=False, extension_scope=None,
  257. options=None),
  258. ],
  259. extensions=[
  260. ],
  261. nested_types=[],
  262. enum_types=[
  263. ],
  264. options=None,
  265. is_extendable=False,
  266. syntax='proto2',
  267. extension_ranges=[],
  268. oneofs=[
  269. ],
  270. serialized_start=1119,
  271. serialized_end=1181,
  272. )
  273. _WEIGHTEDSMOOTHL1LOCALIZATIONLOSS = _descriptor.Descriptor(
  274. name='WeightedSmoothL1LocalizationLoss',
  275. full_name='object_detection.protos.WeightedSmoothL1LocalizationLoss',
  276. filename=None,
  277. file=DESCRIPTOR,
  278. containing_type=None,
  279. fields=[
  280. _descriptor.FieldDescriptor(
  281. name='anchorwise_output', full_name='object_detection.protos.WeightedSmoothL1LocalizationLoss.anchorwise_output', index=0,
  282. number=1, type=8, cpp_type=7, label=1,
  283. has_default_value=True, default_value=False,
  284. message_type=None, enum_type=None, containing_type=None,
  285. is_extension=False, extension_scope=None,
  286. options=None),
  287. _descriptor.FieldDescriptor(
  288. name='delta', full_name='object_detection.protos.WeightedSmoothL1LocalizationLoss.delta', index=1,
  289. number=2, type=2, cpp_type=6, label=1,
  290. has_default_value=True, default_value=float(1),
  291. message_type=None, enum_type=None, containing_type=None,
  292. is_extension=False, extension_scope=None,
  293. options=None),
  294. ],
  295. extensions=[
  296. ],
  297. nested_types=[],
  298. enum_types=[
  299. ],
  300. options=None,
  301. is_extendable=False,
  302. syntax='proto2',
  303. extension_ranges=[],
  304. oneofs=[
  305. ],
  306. serialized_start=1183,
  307. serialized_end=1269,
  308. )
  309. _WEIGHTEDIOULOCALIZATIONLOSS = _descriptor.Descriptor(
  310. name='WeightedIOULocalizationLoss',
  311. full_name='object_detection.protos.WeightedIOULocalizationLoss',
  312. filename=None,
  313. file=DESCRIPTOR,
  314. containing_type=None,
  315. fields=[
  316. ],
  317. extensions=[
  318. ],
  319. nested_types=[],
  320. enum_types=[
  321. ],
  322. options=None,
  323. is_extendable=False,
  324. syntax='proto2',
  325. extension_ranges=[],
  326. oneofs=[
  327. ],
  328. serialized_start=1271,
  329. serialized_end=1300,
  330. )
  331. _CLASSIFICATIONLOSS = _descriptor.Descriptor(
  332. name='ClassificationLoss',
  333. full_name='object_detection.protos.ClassificationLoss',
  334. filename=None,
  335. file=DESCRIPTOR,
  336. containing_type=None,
  337. fields=[
  338. _descriptor.FieldDescriptor(
  339. name='weighted_sigmoid', full_name='object_detection.protos.ClassificationLoss.weighted_sigmoid', index=0,
  340. number=1, type=11, cpp_type=10, label=1,
  341. has_default_value=False, default_value=None,
  342. message_type=None, enum_type=None, containing_type=None,
  343. is_extension=False, extension_scope=None,
  344. options=None),
  345. _descriptor.FieldDescriptor(
  346. name='weighted_softmax', full_name='object_detection.protos.ClassificationLoss.weighted_softmax', index=1,
  347. number=2, type=11, cpp_type=10, label=1,
  348. has_default_value=False, default_value=None,
  349. message_type=None, enum_type=None, containing_type=None,
  350. is_extension=False, extension_scope=None,
  351. options=None),
  352. _descriptor.FieldDescriptor(
  353. name='weighted_logits_softmax', full_name='object_detection.protos.ClassificationLoss.weighted_logits_softmax', index=2,
  354. number=5, type=11, cpp_type=10, label=1,
  355. has_default_value=False, default_value=None,
  356. message_type=None, enum_type=None, containing_type=None,
  357. is_extension=False, extension_scope=None,
  358. options=None),
  359. _descriptor.FieldDescriptor(
  360. name='bootstrapped_sigmoid', full_name='object_detection.protos.ClassificationLoss.bootstrapped_sigmoid', index=3,
  361. number=3, type=11, cpp_type=10, label=1,
  362. has_default_value=False, default_value=None,
  363. message_type=None, enum_type=None, containing_type=None,
  364. is_extension=False, extension_scope=None,
  365. options=None),
  366. _descriptor.FieldDescriptor(
  367. name='weighted_sigmoid_focal', full_name='object_detection.protos.ClassificationLoss.weighted_sigmoid_focal', index=4,
  368. number=4, type=11, cpp_type=10, label=1,
  369. has_default_value=False, default_value=None,
  370. message_type=None, enum_type=None, containing_type=None,
  371. is_extension=False, extension_scope=None,
  372. options=None),
  373. ],
  374. extensions=[
  375. ],
  376. nested_types=[],
  377. enum_types=[
  378. ],
  379. options=None,
  380. is_extendable=False,
  381. syntax='proto2',
  382. extension_ranges=[],
  383. oneofs=[
  384. _descriptor.OneofDescriptor(
  385. name='classification_loss', full_name='object_detection.protos.ClassificationLoss.classification_loss',
  386. index=0, containing_type=None, fields=[]),
  387. ],
  388. serialized_start=1303,
  389. serialized_end=1817,
  390. )
  391. _WEIGHTEDSIGMOIDCLASSIFICATIONLOSS = _descriptor.Descriptor(
  392. name='WeightedSigmoidClassificationLoss',
  393. full_name='object_detection.protos.WeightedSigmoidClassificationLoss',
  394. filename=None,
  395. file=DESCRIPTOR,
  396. containing_type=None,
  397. fields=[
  398. _descriptor.FieldDescriptor(
  399. name='anchorwise_output', full_name='object_detection.protos.WeightedSigmoidClassificationLoss.anchorwise_output', index=0,
  400. number=1, type=8, cpp_type=7, label=1,
  401. has_default_value=True, default_value=False,
  402. message_type=None, enum_type=None, containing_type=None,
  403. is_extension=False, extension_scope=None,
  404. options=None),
  405. ],
  406. extensions=[
  407. ],
  408. nested_types=[],
  409. enum_types=[
  410. ],
  411. options=None,
  412. is_extendable=False,
  413. syntax='proto2',
  414. extension_ranges=[],
  415. oneofs=[
  416. ],
  417. serialized_start=1819,
  418. serialized_end=1888,
  419. )
  420. _SIGMOIDFOCALCLASSIFICATIONLOSS = _descriptor.Descriptor(
  421. name='SigmoidFocalClassificationLoss',
  422. full_name='object_detection.protos.SigmoidFocalClassificationLoss',
  423. filename=None,
  424. file=DESCRIPTOR,
  425. containing_type=None,
  426. fields=[
  427. _descriptor.FieldDescriptor(
  428. name='anchorwise_output', full_name='object_detection.protos.SigmoidFocalClassificationLoss.anchorwise_output', index=0,
  429. number=1, type=8, cpp_type=7, label=1,
  430. has_default_value=True, default_value=False,
  431. message_type=None, enum_type=None, containing_type=None,
  432. is_extension=False, extension_scope=None,
  433. options=None),
  434. _descriptor.FieldDescriptor(
  435. name='gamma', full_name='object_detection.protos.SigmoidFocalClassificationLoss.gamma', index=1,
  436. number=2, type=2, cpp_type=6, label=1,
  437. has_default_value=True, default_value=float(2),
  438. message_type=None, enum_type=None, containing_type=None,
  439. is_extension=False, extension_scope=None,
  440. options=None),
  441. _descriptor.FieldDescriptor(
  442. name='alpha', full_name='object_detection.protos.SigmoidFocalClassificationLoss.alpha', index=2,
  443. number=3, type=2, cpp_type=6, label=1,
  444. has_default_value=False, default_value=float(0),
  445. message_type=None, enum_type=None, containing_type=None,
  446. is_extension=False, extension_scope=None,
  447. options=None),
  448. ],
  449. extensions=[
  450. ],
  451. nested_types=[],
  452. enum_types=[
  453. ],
  454. options=None,
  455. is_extendable=False,
  456. syntax='proto2',
  457. extension_ranges=[],
  458. oneofs=[
  459. ],
  460. serialized_start=1890,
  461. serialized_end=1989,
  462. )
  463. _WEIGHTEDSOFTMAXCLASSIFICATIONLOSS = _descriptor.Descriptor(
  464. name='WeightedSoftmaxClassificationLoss',
  465. full_name='object_detection.protos.WeightedSoftmaxClassificationLoss',
  466. filename=None,
  467. file=DESCRIPTOR,
  468. containing_type=None,
  469. fields=[
  470. _descriptor.FieldDescriptor(
  471. name='anchorwise_output', full_name='object_detection.protos.WeightedSoftmaxClassificationLoss.anchorwise_output', index=0,
  472. number=1, type=8, cpp_type=7, label=1,
  473. has_default_value=True, default_value=False,
  474. message_type=None, enum_type=None, containing_type=None,
  475. is_extension=False, extension_scope=None,
  476. options=None),
  477. _descriptor.FieldDescriptor(
  478. name='logit_scale', full_name='object_detection.protos.WeightedSoftmaxClassificationLoss.logit_scale', index=1,
  479. number=2, type=2, cpp_type=6, label=1,
  480. has_default_value=True, default_value=float(1),
  481. message_type=None, enum_type=None, containing_type=None,
  482. is_extension=False, extension_scope=None,
  483. options=None),
  484. ],
  485. extensions=[
  486. ],
  487. nested_types=[],
  488. enum_types=[
  489. ],
  490. options=None,
  491. is_extendable=False,
  492. syntax='proto2',
  493. extension_ranges=[],
  494. oneofs=[
  495. ],
  496. serialized_start=1991,
  497. serialized_end=2084,
  498. )
  499. _WEIGHTEDSOFTMAXCLASSIFICATIONAGAINSTLOGITSLOSS = _descriptor.Descriptor(
  500. name='WeightedSoftmaxClassificationAgainstLogitsLoss',
  501. full_name='object_detection.protos.WeightedSoftmaxClassificationAgainstLogitsLoss',
  502. filename=None,
  503. file=DESCRIPTOR,
  504. containing_type=None,
  505. fields=[
  506. _descriptor.FieldDescriptor(
  507. name='anchorwise_output', full_name='object_detection.protos.WeightedSoftmaxClassificationAgainstLogitsLoss.anchorwise_output', index=0,
  508. number=1, type=8, cpp_type=7, label=1,
  509. has_default_value=True, default_value=False,
  510. message_type=None, enum_type=None, containing_type=None,
  511. is_extension=False, extension_scope=None,
  512. options=None),
  513. _descriptor.FieldDescriptor(
  514. name='logit_scale', full_name='object_detection.protos.WeightedSoftmaxClassificationAgainstLogitsLoss.logit_scale', index=1,
  515. number=2, type=2, cpp_type=6, label=1,
  516. has_default_value=True, default_value=float(1),
  517. message_type=None, enum_type=None, containing_type=None,
  518. is_extension=False, extension_scope=None,
  519. options=None),
  520. ],
  521. extensions=[
  522. ],
  523. nested_types=[],
  524. enum_types=[
  525. ],
  526. options=None,
  527. is_extendable=False,
  528. syntax='proto2',
  529. extension_ranges=[],
  530. oneofs=[
  531. ],
  532. serialized_start=2086,
  533. serialized_end=2192,
  534. )
  535. _BOOTSTRAPPEDSIGMOIDCLASSIFICATIONLOSS = _descriptor.Descriptor(
  536. name='BootstrappedSigmoidClassificationLoss',
  537. full_name='object_detection.protos.BootstrappedSigmoidClassificationLoss',
  538. filename=None,
  539. file=DESCRIPTOR,
  540. containing_type=None,
  541. fields=[
  542. _descriptor.FieldDescriptor(
  543. name='alpha', full_name='object_detection.protos.BootstrappedSigmoidClassificationLoss.alpha', index=0,
  544. number=1, type=2, cpp_type=6, label=1,
  545. has_default_value=False, default_value=float(0),
  546. message_type=None, enum_type=None, containing_type=None,
  547. is_extension=False, extension_scope=None,
  548. options=None),
  549. _descriptor.FieldDescriptor(
  550. name='hard_bootstrap', full_name='object_detection.protos.BootstrappedSigmoidClassificationLoss.hard_bootstrap', index=1,
  551. number=2, type=8, cpp_type=7, label=1,
  552. has_default_value=True, default_value=False,
  553. message_type=None, enum_type=None, containing_type=None,
  554. is_extension=False, extension_scope=None,
  555. options=None),
  556. _descriptor.FieldDescriptor(
  557. name='anchorwise_output', full_name='object_detection.protos.BootstrappedSigmoidClassificationLoss.anchorwise_output', index=2,
  558. number=3, type=8, cpp_type=7, label=1,
  559. has_default_value=True, default_value=False,
  560. message_type=None, enum_type=None, containing_type=None,
  561. is_extension=False, extension_scope=None,
  562. options=None),
  563. ],
  564. extensions=[
  565. ],
  566. nested_types=[],
  567. enum_types=[
  568. ],
  569. options=None,
  570. is_extendable=False,
  571. syntax='proto2',
  572. extension_ranges=[],
  573. oneofs=[
  574. ],
  575. serialized_start=2194,
  576. serialized_end=2313,
  577. )
  578. _HARDEXAMPLEMINER = _descriptor.Descriptor(
  579. name='HardExampleMiner',
  580. full_name='object_detection.protos.HardExampleMiner',
  581. filename=None,
  582. file=DESCRIPTOR,
  583. containing_type=None,
  584. fields=[
  585. _descriptor.FieldDescriptor(
  586. name='num_hard_examples', full_name='object_detection.protos.HardExampleMiner.num_hard_examples', index=0,
  587. number=1, type=5, cpp_type=1, label=1,
  588. has_default_value=True, default_value=64,
  589. message_type=None, enum_type=None, containing_type=None,
  590. is_extension=False, extension_scope=None,
  591. options=None),
  592. _descriptor.FieldDescriptor(
  593. name='iou_threshold', full_name='object_detection.protos.HardExampleMiner.iou_threshold', index=1,
  594. number=2, type=2, cpp_type=6, label=1,
  595. has_default_value=True, default_value=float(0.7),
  596. message_type=None, enum_type=None, containing_type=None,
  597. is_extension=False, extension_scope=None,
  598. options=None),
  599. _descriptor.FieldDescriptor(
  600. name='loss_type', full_name='object_detection.protos.HardExampleMiner.loss_type', index=2,
  601. number=3, type=14, cpp_type=8, label=1,
  602. has_default_value=True, default_value=0,
  603. message_type=None, enum_type=None, containing_type=None,
  604. is_extension=False, extension_scope=None,
  605. options=None),
  606. _descriptor.FieldDescriptor(
  607. name='max_negatives_per_positive', full_name='object_detection.protos.HardExampleMiner.max_negatives_per_positive', index=3,
  608. number=4, type=5, cpp_type=1, label=1,
  609. has_default_value=True, default_value=0,
  610. message_type=None, enum_type=None, containing_type=None,
  611. is_extension=False, extension_scope=None,
  612. options=None),
  613. _descriptor.FieldDescriptor(
  614. name='min_negatives_per_image', full_name='object_detection.protos.HardExampleMiner.min_negatives_per_image', index=4,
  615. number=5, type=5, cpp_type=1, label=1,
  616. has_default_value=True, default_value=0,
  617. message_type=None, enum_type=None, containing_type=None,
  618. is_extension=False, extension_scope=None,
  619. options=None),
  620. ],
  621. extensions=[
  622. ],
  623. nested_types=[],
  624. enum_types=[
  625. _HARDEXAMPLEMINER_LOSSTYPE,
  626. ],
  627. options=None,
  628. is_extendable=False,
  629. syntax='proto2',
  630. extension_ranges=[],
  631. oneofs=[
  632. ],
  633. serialized_start=2316,
  634. serialized_end=2605,
  635. )
  636. _RANDOMEXAMPLESAMPLER = _descriptor.Descriptor(
  637. name='RandomExampleSampler',
  638. full_name='object_detection.protos.RandomExampleSampler',
  639. filename=None,
  640. file=DESCRIPTOR,
  641. containing_type=None,
  642. fields=[
  643. _descriptor.FieldDescriptor(
  644. name='positive_sample_fraction', full_name='object_detection.protos.RandomExampleSampler.positive_sample_fraction', index=0,
  645. number=1, type=2, cpp_type=6, label=1,
  646. has_default_value=True, default_value=float(0.01),
  647. message_type=None, enum_type=None, containing_type=None,
  648. is_extension=False, extension_scope=None,
  649. options=None),
  650. ],
  651. extensions=[
  652. ],
  653. nested_types=[],
  654. enum_types=[
  655. ],
  656. options=None,
  657. is_extendable=False,
  658. syntax='proto2',
  659. extension_ranges=[],
  660. oneofs=[
  661. ],
  662. serialized_start=2607,
  663. serialized_end=2669,
  664. )
  665. _LOSS_EQUALIZATIONLOSS.containing_type = _LOSS
  666. _LOSS.fields_by_name['localization_loss'].message_type = _LOCALIZATIONLOSS
  667. _LOSS.fields_by_name['classification_loss'].message_type = _CLASSIFICATIONLOSS
  668. _LOSS.fields_by_name['hard_example_miner'].message_type = _HARDEXAMPLEMINER
  669. _LOSS.fields_by_name['random_example_sampler'].message_type = _RANDOMEXAMPLESAMPLER
  670. _LOSS.fields_by_name['equalization_loss'].message_type = _LOSS_EQUALIZATIONLOSS
  671. _LOSS.fields_by_name['expected_loss_weights'].enum_type = _LOSS_EXPECTEDLOSSWEIGHTS
  672. _LOSS_EXPECTEDLOSSWEIGHTS.containing_type = _LOSS
  673. _LOCALIZATIONLOSS.fields_by_name['weighted_l2'].message_type = _WEIGHTEDL2LOCALIZATIONLOSS
  674. _LOCALIZATIONLOSS.fields_by_name['weighted_smooth_l1'].message_type = _WEIGHTEDSMOOTHL1LOCALIZATIONLOSS
  675. _LOCALIZATIONLOSS.fields_by_name['weighted_iou'].message_type = _WEIGHTEDIOULOCALIZATIONLOSS
  676. _LOCALIZATIONLOSS.oneofs_by_name['localization_loss'].fields.append(
  677. _LOCALIZATIONLOSS.fields_by_name['weighted_l2'])
  678. _LOCALIZATIONLOSS.fields_by_name['weighted_l2'].containing_oneof = _LOCALIZATIONLOSS.oneofs_by_name['localization_loss']
  679. _LOCALIZATIONLOSS.oneofs_by_name['localization_loss'].fields.append(
  680. _LOCALIZATIONLOSS.fields_by_name['weighted_smooth_l1'])
  681. _LOCALIZATIONLOSS.fields_by_name['weighted_smooth_l1'].containing_oneof = _LOCALIZATIONLOSS.oneofs_by_name['localization_loss']
  682. _LOCALIZATIONLOSS.oneofs_by_name['localization_loss'].fields.append(
  683. _LOCALIZATIONLOSS.fields_by_name['weighted_iou'])
  684. _LOCALIZATIONLOSS.fields_by_name['weighted_iou'].containing_oneof = _LOCALIZATIONLOSS.oneofs_by_name['localization_loss']
  685. _CLASSIFICATIONLOSS.fields_by_name['weighted_sigmoid'].message_type = _WEIGHTEDSIGMOIDCLASSIFICATIONLOSS
  686. _CLASSIFICATIONLOSS.fields_by_name['weighted_softmax'].message_type = _WEIGHTEDSOFTMAXCLASSIFICATIONLOSS
  687. _CLASSIFICATIONLOSS.fields_by_name['weighted_logits_softmax'].message_type = _WEIGHTEDSOFTMAXCLASSIFICATIONAGAINSTLOGITSLOSS
  688. _CLASSIFICATIONLOSS.fields_by_name['bootstrapped_sigmoid'].message_type = _BOOTSTRAPPEDSIGMOIDCLASSIFICATIONLOSS
  689. _CLASSIFICATIONLOSS.fields_by_name['weighted_sigmoid_focal'].message_type = _SIGMOIDFOCALCLASSIFICATIONLOSS
  690. _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss'].fields.append(
  691. _CLASSIFICATIONLOSS.fields_by_name['weighted_sigmoid'])
  692. _CLASSIFICATIONLOSS.fields_by_name['weighted_sigmoid'].containing_oneof = _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss']
  693. _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss'].fields.append(
  694. _CLASSIFICATIONLOSS.fields_by_name['weighted_softmax'])
  695. _CLASSIFICATIONLOSS.fields_by_name['weighted_softmax'].containing_oneof = _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss']
  696. _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss'].fields.append(
  697. _CLASSIFICATIONLOSS.fields_by_name['weighted_logits_softmax'])
  698. _CLASSIFICATIONLOSS.fields_by_name['weighted_logits_softmax'].containing_oneof = _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss']
  699. _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss'].fields.append(
  700. _CLASSIFICATIONLOSS.fields_by_name['bootstrapped_sigmoid'])
  701. _CLASSIFICATIONLOSS.fields_by_name['bootstrapped_sigmoid'].containing_oneof = _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss']
  702. _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss'].fields.append(
  703. _CLASSIFICATIONLOSS.fields_by_name['weighted_sigmoid_focal'])
  704. _CLASSIFICATIONLOSS.fields_by_name['weighted_sigmoid_focal'].containing_oneof = _CLASSIFICATIONLOSS.oneofs_by_name['classification_loss']
  705. _HARDEXAMPLEMINER.fields_by_name['loss_type'].enum_type = _HARDEXAMPLEMINER_LOSSTYPE
  706. _HARDEXAMPLEMINER_LOSSTYPE.containing_type = _HARDEXAMPLEMINER
  707. DESCRIPTOR.message_types_by_name['Loss'] = _LOSS
  708. DESCRIPTOR.message_types_by_name['LocalizationLoss'] = _LOCALIZATIONLOSS
  709. DESCRIPTOR.message_types_by_name['WeightedL2LocalizationLoss'] = _WEIGHTEDL2LOCALIZATIONLOSS
  710. DESCRIPTOR.message_types_by_name['WeightedSmoothL1LocalizationLoss'] = _WEIGHTEDSMOOTHL1LOCALIZATIONLOSS
  711. DESCRIPTOR.message_types_by_name['WeightedIOULocalizationLoss'] = _WEIGHTEDIOULOCALIZATIONLOSS
  712. DESCRIPTOR.message_types_by_name['ClassificationLoss'] = _CLASSIFICATIONLOSS
  713. DESCRIPTOR.message_types_by_name['WeightedSigmoidClassificationLoss'] = _WEIGHTEDSIGMOIDCLASSIFICATIONLOSS
  714. DESCRIPTOR.message_types_by_name['SigmoidFocalClassificationLoss'] = _SIGMOIDFOCALCLASSIFICATIONLOSS
  715. DESCRIPTOR.message_types_by_name['WeightedSoftmaxClassificationLoss'] = _WEIGHTEDSOFTMAXCLASSIFICATIONLOSS
  716. DESCRIPTOR.message_types_by_name['WeightedSoftmaxClassificationAgainstLogitsLoss'] = _WEIGHTEDSOFTMAXCLASSIFICATIONAGAINSTLOGITSLOSS
  717. DESCRIPTOR.message_types_by_name['BootstrappedSigmoidClassificationLoss'] = _BOOTSTRAPPEDSIGMOIDCLASSIFICATIONLOSS
  718. DESCRIPTOR.message_types_by_name['HardExampleMiner'] = _HARDEXAMPLEMINER
  719. DESCRIPTOR.message_types_by_name['RandomExampleSampler'] = _RANDOMEXAMPLESAMPLER
  720. Loss = _reflection.GeneratedProtocolMessageType('Loss', (_message.Message,), dict(
  721. EqualizationLoss = _reflection.GeneratedProtocolMessageType('EqualizationLoss', (_message.Message,), dict(
  722. DESCRIPTOR = _LOSS_EQUALIZATIONLOSS,
  723. __module__ = 'object_detection.protos.losses_pb2'
  724. # @@protoc_insertion_point(class_scope:object_detection.protos.Loss.EqualizationLoss)
  725. ))
  726. ,
  727. DESCRIPTOR = _LOSS,
  728. __module__ = 'object_detection.protos.losses_pb2'
  729. # @@protoc_insertion_point(class_scope:object_detection.protos.Loss)
  730. ))
  731. _sym_db.RegisterMessage(Loss)
  732. _sym_db.RegisterMessage(Loss.EqualizationLoss)
  733. LocalizationLoss = _reflection.GeneratedProtocolMessageType('LocalizationLoss', (_message.Message,), dict(
  734. DESCRIPTOR = _LOCALIZATIONLOSS,
  735. __module__ = 'object_detection.protos.losses_pb2'
  736. # @@protoc_insertion_point(class_scope:object_detection.protos.LocalizationLoss)
  737. ))
  738. _sym_db.RegisterMessage(LocalizationLoss)
  739. WeightedL2LocalizationLoss = _reflection.GeneratedProtocolMessageType('WeightedL2LocalizationLoss', (_message.Message,), dict(
  740. DESCRIPTOR = _WEIGHTEDL2LOCALIZATIONLOSS,
  741. __module__ = 'object_detection.protos.losses_pb2'
  742. # @@protoc_insertion_point(class_scope:object_detection.protos.WeightedL2LocalizationLoss)
  743. ))
  744. _sym_db.RegisterMessage(WeightedL2LocalizationLoss)
  745. WeightedSmoothL1LocalizationLoss = _reflection.GeneratedProtocolMessageType('WeightedSmoothL1LocalizationLoss', (_message.Message,), dict(
  746. DESCRIPTOR = _WEIGHTEDSMOOTHL1LOCALIZATIONLOSS,
  747. __module__ = 'object_detection.protos.losses_pb2'
  748. # @@protoc_insertion_point(class_scope:object_detection.protos.WeightedSmoothL1LocalizationLoss)
  749. ))
  750. _sym_db.RegisterMessage(WeightedSmoothL1LocalizationLoss)
  751. WeightedIOULocalizationLoss = _reflection.GeneratedProtocolMessageType('WeightedIOULocalizationLoss', (_message.Message,), dict(
  752. DESCRIPTOR = _WEIGHTEDIOULOCALIZATIONLOSS,
  753. __module__ = 'object_detection.protos.losses_pb2'
  754. # @@protoc_insertion_point(class_scope:object_detection.protos.WeightedIOULocalizationLoss)
  755. ))
  756. _sym_db.RegisterMessage(WeightedIOULocalizationLoss)
  757. ClassificationLoss = _reflection.GeneratedProtocolMessageType('ClassificationLoss', (_message.Message,), dict(
  758. DESCRIPTOR = _CLASSIFICATIONLOSS,
  759. __module__ = 'object_detection.protos.losses_pb2'
  760. # @@protoc_insertion_point(class_scope:object_detection.protos.ClassificationLoss)
  761. ))
  762. _sym_db.RegisterMessage(ClassificationLoss)
  763. WeightedSigmoidClassificationLoss = _reflection.GeneratedProtocolMessageType('WeightedSigmoidClassificationLoss', (_message.Message,), dict(
  764. DESCRIPTOR = _WEIGHTEDSIGMOIDCLASSIFICATIONLOSS,
  765. __module__ = 'object_detection.protos.losses_pb2'
  766. # @@protoc_insertion_point(class_scope:object_detection.protos.WeightedSigmoidClassificationLoss)
  767. ))
  768. _sym_db.RegisterMessage(WeightedSigmoidClassificationLoss)
  769. SigmoidFocalClassificationLoss = _reflection.GeneratedProtocolMessageType('SigmoidFocalClassificationLoss', (_message.Message,), dict(
  770. DESCRIPTOR = _SIGMOIDFOCALCLASSIFICATIONLOSS,
  771. __module__ = 'object_detection.protos.losses_pb2'
  772. # @@protoc_insertion_point(class_scope:object_detection.protos.SigmoidFocalClassificationLoss)
  773. ))
  774. _sym_db.RegisterMessage(SigmoidFocalClassificationLoss)
  775. WeightedSoftmaxClassificationLoss = _reflection.GeneratedProtocolMessageType('WeightedSoftmaxClassificationLoss', (_message.Message,), dict(
  776. DESCRIPTOR = _WEIGHTEDSOFTMAXCLASSIFICATIONLOSS,
  777. __module__ = 'object_detection.protos.losses_pb2'
  778. # @@protoc_insertion_point(class_scope:object_detection.protos.WeightedSoftmaxClassificationLoss)
  779. ))
  780. _sym_db.RegisterMessage(WeightedSoftmaxClassificationLoss)
  781. WeightedSoftmaxClassificationAgainstLogitsLoss = _reflection.GeneratedProtocolMessageType('WeightedSoftmaxClassificationAgainstLogitsLoss', (_message.Message,), dict(
  782. DESCRIPTOR = _WEIGHTEDSOFTMAXCLASSIFICATIONAGAINSTLOGITSLOSS,
  783. __module__ = 'object_detection.protos.losses_pb2'
  784. # @@protoc_insertion_point(class_scope:object_detection.protos.WeightedSoftmaxClassificationAgainstLogitsLoss)
  785. ))
  786. _sym_db.RegisterMessage(WeightedSoftmaxClassificationAgainstLogitsLoss)
  787. BootstrappedSigmoidClassificationLoss = _reflection.GeneratedProtocolMessageType('BootstrappedSigmoidClassificationLoss', (_message.Message,), dict(
  788. DESCRIPTOR = _BOOTSTRAPPEDSIGMOIDCLASSIFICATIONLOSS,
  789. __module__ = 'object_detection.protos.losses_pb2'
  790. # @@protoc_insertion_point(class_scope:object_detection.protos.BootstrappedSigmoidClassificationLoss)
  791. ))
  792. _sym_db.RegisterMessage(BootstrappedSigmoidClassificationLoss)
  793. HardExampleMiner = _reflection.GeneratedProtocolMessageType('HardExampleMiner', (_message.Message,), dict(
  794. DESCRIPTOR = _HARDEXAMPLEMINER,
  795. __module__ = 'object_detection.protos.losses_pb2'
  796. # @@protoc_insertion_point(class_scope:object_detection.protos.HardExampleMiner)
  797. ))
  798. _sym_db.RegisterMessage(HardExampleMiner)
  799. RandomExampleSampler = _reflection.GeneratedProtocolMessageType('RandomExampleSampler', (_message.Message,), dict(
  800. DESCRIPTOR = _RANDOMEXAMPLESAMPLER,
  801. __module__ = 'object_detection.protos.losses_pb2'
  802. # @@protoc_insertion_point(class_scope:object_detection.protos.RandomExampleSampler)
  803. ))
  804. _sym_db.RegisterMessage(RandomExampleSampler)
  805. # @@protoc_insertion_point(module_scope)