model_meta_nodeps.py 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
  2. # Full license terms provided in LICENSE.md file.
  3. CHECKPOINT_DIR = 'data/checkpoints/'
  4. FROZEN_GRAPHS_DIR = 'data/frozen_graphs/'
  5. UFF_DIR = 'data/uff/'
  6. NETS = {
  7. 'vgg_16': {
  8. 'num_classes': 1000,
  9. 'input_name': 'input',
  10. 'output_names': ['vgg_16/fc8/BiasAdd'],
  11. 'input_width': 224,
  12. 'input_height': 224,
  13. 'input_channels': 3,
  14. 'preprocess_fn': 'preprocess_vgg',
  15. 'checkpoint_filename': CHECKPOINT_DIR + 'vgg_16.ckpt',
  16. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'vgg_16.pb',
  17. 'trt_convert_status': "works",
  18. 'uff_filename': UFF_DIR + 'vgg_16.uff'
  19. },
  20. 'vgg_19': {
  21. 'num_classes': 1000,
  22. 'input_name': 'input',
  23. 'output_names': ['vgg_19/fc8/BiasAdd'],
  24. 'input_width': 224,
  25. 'input_height': 224,
  26. 'input_channels': 3,
  27. 'preprocess_fn': 'preprocess_vgg',
  28. 'checkpoint_filename': CHECKPOINT_DIR + 'vgg_19.ckpt',
  29. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'vgg_19.pb',
  30. 'trt_convert_status': "works",
  31. 'uff_filename': UFF_DIR + 'vgg_19.uff'
  32. },
  33. 'inception_v1': {
  34. 'num_classes': 1001,
  35. 'input_name': 'input',
  36. 'input_width': 224,
  37. 'input_height': 224,
  38. 'input_channels': 3,
  39. 'output_names': ['InceptionV1/Logits/SpatialSqueeze'],
  40. 'checkpoint_filename': CHECKPOINT_DIR + 'inception_v1.ckpt',
  41. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'inception_v1.pb',
  42. 'preprocess_fn': 'preprocess_inception',
  43. 'trt_convert_status': "works",
  44. 'uff_filename': UFF_DIR + 'inception_v1.uff'
  45. },
  46. 'inception_v2': {
  47. 'num_classes': 1001,
  48. 'input_name': 'input',
  49. 'input_width': 224,
  50. 'input_height': 224,
  51. 'input_channels': 3,
  52. 'output_names': ['InceptionV2/Logits/SpatialSqueeze'],
  53. 'checkpoint_filename': CHECKPOINT_DIR + 'inception_v2.ckpt',
  54. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'inception_v2.pb',
  55. 'preprocess_fn': 'preprocess_inception',
  56. 'trt_convert_status': "bad results",
  57. 'uff_filename': UFF_DIR + 'inception_v2.uff'
  58. },
  59. 'inception_v3': {
  60. 'num_classes': 1001,
  61. 'input_name': 'input',
  62. 'input_width': 299,
  63. 'input_height': 299,
  64. 'input_channels': 3,
  65. 'output_names': ['InceptionV3/Logits/SpatialSqueeze'],
  66. 'checkpoint_filename': CHECKPOINT_DIR + 'inception_v3.ckpt',
  67. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'inception_v3.pb',
  68. 'preprocess_fn': 'preprocess_inception',
  69. 'trt_convert_status': "works",
  70. 'uff_filename': UFF_DIR + 'inception_v3.uff'
  71. },
  72. 'inception_v4': {
  73. 'num_classes': 1001,
  74. 'input_name': 'input',
  75. 'input_width': 299,
  76. 'input_height': 299,
  77. 'input_channels': 3,
  78. 'output_names': ['InceptionV4/Logits/Logits/BiasAdd'],
  79. 'checkpoint_filename': CHECKPOINT_DIR + 'inception_v4.ckpt',
  80. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'inception_v4.pb',
  81. 'preprocess_fn': 'preprocess_inception',
  82. 'trt_convert_status': "works",
  83. 'uff_filename': UFF_DIR + 'inception_v4.uff'
  84. },
  85. 'inception_resnet_v2': {
  86. 'num_classes': 1001,
  87. 'input_name': 'input',
  88. 'input_width': 299,
  89. 'input_height': 299,
  90. 'input_channels': 3,
  91. 'output_names': ['InceptionResnetV2/Logits/Logits/BiasAdd'],
  92. 'checkpoint_filename': CHECKPOINT_DIR + 'inception_resnet_v2_2016_08_30.ckpt',
  93. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'inception_resnet_v2.pb',
  94. 'preprocess_fn': 'preprocess_inception',
  95. 'trt_convert_status': "works",
  96. 'uff_filename': UFF_DIR + 'inception_resnet_v2.uff'
  97. },
  98. 'resnet_v1_50': {
  99. 'num_classes': 1000,
  100. 'input_name': 'input',
  101. 'input_width': 224,
  102. 'input_height': 224,
  103. 'input_channels': 3,
  104. 'output_names': ['resnet_v1_50/SpatialSqueeze'],
  105. 'checkpoint_filename': CHECKPOINT_DIR + 'resnet_v1_50.ckpt',
  106. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'resnet_v1_50.pb',
  107. 'preprocess_fn': 'preprocess_vgg',
  108. 'uff_filename': UFF_DIR + 'resnet_v1_50.uff'
  109. },
  110. 'resnet_v1_101': {
  111. 'num_classes': 1000,
  112. 'input_name': 'input',
  113. 'input_width': 224,
  114. 'input_height': 224,
  115. 'input_channels': 3,
  116. 'output_names': ['resnet_v1_101/SpatialSqueeze'],
  117. 'checkpoint_filename': CHECKPOINT_DIR + 'resnet_v1_101.ckpt',
  118. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'resnet_v1_101.pb',
  119. 'preprocess_fn': 'preprocess_vgg',
  120. 'uff_filename': UFF_DIR + 'resnet_v1_101.uff'
  121. },
  122. 'resnet_v1_152': {
  123. 'num_classes': 1000,
  124. 'input_name': 'input',
  125. 'input_width': 224,
  126. 'input_height': 224,
  127. 'input_channels': 3,
  128. 'output_names': ['resnet_v1_152/SpatialSqueeze'],
  129. 'checkpoint_filename': CHECKPOINT_DIR + 'resnet_v1_152.ckpt',
  130. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'resnet_v1_152.pb',
  131. 'preprocess_fn': 'preprocess_vgg',
  132. 'uff_filename': UFF_DIR + 'resnet_v1_152.uff'
  133. },
  134. 'resnet_v2_50': {
  135. 'num_classes': 1001,
  136. 'input_name': 'input',
  137. 'input_width': 299,
  138. 'input_height': 299,
  139. 'input_channels': 3,
  140. 'output_names': ['resnet_v2_50/SpatialSqueeze'],
  141. 'checkpoint_filename': CHECKPOINT_DIR + 'resnet_v2_50.ckpt',
  142. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'resnet_v2_50.pb',
  143. 'preprocess_fn': 'preprocess_inception',
  144. 'uff_filename': UFF_DIR + 'resnet_v2_50.uff'
  145. },
  146. 'resnet_v2_101': {
  147. 'num_classes': 1001,
  148. 'input_name': 'input',
  149. 'input_width': 299,
  150. 'input_height': 299,
  151. 'input_channels': 3,
  152. 'output_names': ['resnet_v2_101/SpatialSqueeze'],
  153. 'checkpoint_filename': CHECKPOINT_DIR + 'resnet_v2_101.ckpt',
  154. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'resnet_v2_101.pb',
  155. 'preprocess_fn': 'preprocess_inception',
  156. 'uff_filename': UFF_DIR + 'resnet_v2_101.uff'
  157. },
  158. 'resnet_v2_152': {
  159. 'num_classes': 1001,
  160. 'input_name': 'input',
  161. 'input_width': 299,
  162. 'input_height': 299,
  163. 'input_channels': 3,
  164. 'output_names': ['resnet_v2_152/SpatialSqueeze'],
  165. 'checkpoint_filename': CHECKPOINT_DIR + 'resnet_v2_152.ckpt',
  166. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'resnet_v2_152.pb',
  167. 'preprocess_fn': 'preprocess_inception',
  168. 'uff_filename': UFF_DIR + 'resnet_v2_152.uff'
  169. },
  170. #'resnet_v2_200': {
  171. #},
  172. 'mobilenet_v1_1p0_224': {
  173. 'num_classes': 1001,
  174. 'input_name': 'input',
  175. 'input_width': 224,
  176. 'input_height': 224,
  177. 'input_channels': 3,
  178. 'output_names': ['MobilenetV1/Logits/SpatialSqueeze'],
  179. 'checkpoint_filename': CHECKPOINT_DIR +
  180. 'mobilenet_v1_1.0_224.ckpt',
  181. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'mobilenet_v1_1p0_224.pb',
  182. 'uff_filename': UFF_DIR + 'mobilenet_v1_1p0_224.uff',
  183. 'preprocess_fn': 'preprocess_inception',
  184. },
  185. 'mobilenet_v1_0p5_160': {
  186. 'num_classes': 1001,
  187. 'input_name': 'input',
  188. 'input_width': 160,
  189. 'input_height': 160,
  190. 'input_channels': 3,
  191. 'output_names': ['MobilenetV1/Logits/SpatialSqueeze'],
  192. 'checkpoint_filename': CHECKPOINT_DIR +
  193. 'mobilenet_v1_0.50_160.ckpt',
  194. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'mobilenet_v1_0p5_160.pb',
  195. 'uff_filename': UFF_DIR + 'mobilenet_v1_0p5_160.uff',
  196. 'preprocess_fn': 'preprocess_inception',
  197. },
  198. 'mobilenet_v1_0p25_128': {
  199. 'num_classes': 1001,
  200. 'input_name': 'input',
  201. 'input_width': 128,
  202. 'input_height': 128,
  203. 'input_channels': 3,
  204. 'output_names': ['MobilenetV1/Logits/SpatialSqueeze'],
  205. 'checkpoint_filename': CHECKPOINT_DIR +
  206. 'mobilenet_v1_0.25_128.ckpt',
  207. 'frozen_graph_filename': FROZEN_GRAPHS_DIR + 'mobilenet_v1_0p25_128.pb',
  208. 'uff_filename': UFF_DIR + 'mobilenet_v1_0p25_128.uff',
  209. 'preprocess_fn': 'preprocess_inception',
  210. },
  211. }