custom_device_whitelist.py 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. # copyright (c) 2024 PaddlePaddle Authors. All Rights Reserve.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. DCU_WHITELIST = [
  15. "ResNet18",
  16. "ResNet34",
  17. "ResNet50",
  18. "ResNet101",
  19. "ResNet152",
  20. "Deeplabv3_Plus-R50",
  21. "Deeplabv3_Plus-R101",
  22. ]
  23. MLU_WHITELIST = [
  24. "MobileNetV3_large_x0_5",
  25. "MobileNetV3_large_x0_35",
  26. "MobileNetV3_large_x0_75",
  27. "MobileNetV3_large_x1_0",
  28. "MobileNetV3_large_x1_25",
  29. "MobileNetV3_small_x0_5",
  30. "MobileNetV3_small_x0_35",
  31. "MobileNetV3_small_x0_75",
  32. "MobileNetV3_small_x1_0",
  33. "MobileNetV3_small_x1_25",
  34. "PP-HGNet_small",
  35. "PP-LCNet_x0_5",
  36. "PP-LCNet_x0_25",
  37. "PP-LCNet_x0_35",
  38. "PP-LCNet_x0_75",
  39. "PP-LCNet_x1_0",
  40. "PP-LCNet_x1_5",
  41. "PP-LCNet_x2_0",
  42. "PP-LCNet_x2_5",
  43. "ResNet18",
  44. "ResNet34",
  45. "ResNet50",
  46. "ResNet101",
  47. "ResNet152",
  48. "PicoDet-L",
  49. "PicoDet-S",
  50. "PP-YOLOE_plus-L",
  51. "PP-YOLOE_plus-M",
  52. "PP-YOLOE_plus-S",
  53. "PP-YOLOE_plus-X",
  54. "PP-LiteSeg-T",
  55. "PP-OCRv4_mobile_det",
  56. "PP-OCRv4_server_det",
  57. "PP-OCRv4_mobile_rec",
  58. "PP-OCRv4_server_rec",
  59. "PicoDet_layout_1x",
  60. "DLinear",
  61. "NLinear",
  62. "RLinear",
  63. ]
  64. NPU_WHITELIST = [
  65. "CLIP_vit_base_patch16_224",
  66. "CLIP_vit_large_patch14_224",
  67. "ConvNeXt_base_224",
  68. "ConvNeXt_base_384",
  69. "ConvNeXt_large_224",
  70. "ConvNeXt_large_384",
  71. "ConvNeXt_small",
  72. "ConvNeXt_tiny",
  73. "MobileNetV1_x0_5",
  74. "MobileNetV1_x0_25",
  75. "MobileNetV1_x0_75",
  76. "MobileNetV1_x1_0",
  77. "MobileNetV2_x0_5",
  78. "MobileNetV2_x0_25",
  79. "MobileNetV2_x1_0",
  80. "MobileNetV2_x1_5",
  81. "MobileNetV2_x2_0",
  82. "MobileNetV3_large_x0_5",
  83. "MobileNetV3_large_x0_35",
  84. "MobileNetV3_large_x0_75",
  85. "MobileNetV3_large_x1_0",
  86. "MobileNetV3_large_x1_25",
  87. "MobileNetV3_small_x0_5",
  88. "MobileNetV3_small_x0_35",
  89. "MobileNetV3_small_x0_75",
  90. "MobileNetV3_small_x1_0",
  91. "MobileNetV3_small_x1_25",
  92. "MobileNetV4_conv_large",
  93. "MobileNetV4_conv_medium",
  94. "MobileNetV4_conv_small",
  95. "PP-HGNet_base",
  96. "PP-HGNet_small",
  97. "PP-HGNet_tiny",
  98. "PP-HGNetV2-B0",
  99. "PP-HGNetV2-B1",
  100. "PP-HGNetV2-B2",
  101. "PP-HGNetV2-B3",
  102. "PP-HGNetV2-B4",
  103. "PP-HGNetV2-B5",
  104. "PP-HGNetV2-B6",
  105. "PP-LCNet_x0_5",
  106. "PP-LCNet_x0_25",
  107. "PP-LCNet_x0_35",
  108. "PP-LCNet_x0_75",
  109. "PP-LCNet_x1_0",
  110. "PP-LCNet_x1_5",
  111. "PP-LCNet_x2_0",
  112. "PP-LCNet_x2_5",
  113. "PP-LCNetV2_base",
  114. "PP-LCNetV2_large",
  115. "PP-LCNetV2_small",
  116. "ResNet18_vd",
  117. "ResNet18",
  118. "ResNet34_vd",
  119. "ResNet34",
  120. "ResNet50_vd",
  121. "ResNet50",
  122. "ResNet101_vd",
  123. "ResNet101",
  124. "ResNet152_vd",
  125. "ResNet152",
  126. "ResNet200_vd",
  127. "SwinTransformer_base_patch4_window7_224",
  128. "SwinTransformer_base_patch4_window12_384",
  129. "SwinTransformer_large_patch4_window7_224",
  130. "SwinTransformer_large_patch4_window12_384",
  131. "SwinTransformer_small_patch4_window7_224",
  132. "SwinTransformer_tiny_patch4_window7_224",
  133. "CLIP_vit_base_patch16_448_ML",
  134. "PP-HGNetV2-B0_ML",
  135. "PP-HGNetV2-B4_ML",
  136. "PP-HGNetV2-B6_ML",
  137. "Cascade-FasterRCNN-ResNet50-FPN",
  138. "Cascade-FasterRCNN-ResNet50-vd-SSLDv2-FPN",
  139. "CenterNet-DLA-34",
  140. "CenterNet-ResNet50",
  141. "DETR-R50",
  142. "FasterRCNN-ResNet34-FPN",
  143. "FasterRCNN-ResNet50",
  144. "FasterRCNN-ResNet50-FPN",
  145. "FasterRCNN-ResNet50-vd-FPN",
  146. "FasterRCNN-ResNet50-vd-SSLDv2-FPN",
  147. "FasterRCNN-ResNet101",
  148. "FasterRCNN-ResNet101-FPN",
  149. "FasterRCNN-ResNeXt101-vd-FPN",
  150. "FasterRCNN-Swin-Tiny-FPN",
  151. "FCOS-ResNet50",
  152. "PicoDet-L",
  153. "PicoDet-M",
  154. "PicoDet-S",
  155. "PicoDet-XS",
  156. "PP-YOLOE_plus-L",
  157. "PP-YOLOE_plus-M",
  158. "PP-YOLOE_plus-S",
  159. "PP-YOLOE_plus-X",
  160. "RT-DETR-H",
  161. "RT-DETR-L",
  162. "RT-DETR-R18",
  163. "RT-DETR-R50",
  164. "RT-DETR-X",
  165. "YOLOv3-DarkNet53",
  166. "YOLOv3-MobileNetV3",
  167. "YOLOv3-ResNet50_vd_DCN",
  168. "PP-YOLOE_plus_SOD-S",
  169. "PP-YOLOE_plus_SOD-L",
  170. "PP-YOLOE_plus_SOD-largesize-L",
  171. "PP-YOLOE-L_human",
  172. "PP-YOLOE-S_human",
  173. "Deeplabv3_Plus-R50",
  174. "Deeplabv3_Plus-R101",
  175. "Deeplabv3-R50",
  176. "Deeplabv3-R101",
  177. "OCRNet_HRNet-W48",
  178. "PP-LiteSeg-T",
  179. "Mask-RT-DETR-H",
  180. "Mask-RT-DETR-L",
  181. "Mask-RT-DETR-M",
  182. "Mask-RT-DETR-S",
  183. "Mask-RT-DETR-X",
  184. "Cascade-MaskRCNN-ResNet50-FPN",
  185. "Cascade-MaskRCNN-ResNet50-vd-SSLDv2-FPN",
  186. "MaskRCNN-ResNet50-FPN",
  187. "MaskRCNN-ResNet50-vd-FPN",
  188. "MaskRCNN-ResNet50",
  189. "MaskRCNN-ResNet101-FPN",
  190. "MaskRCNN-ResNet101-vd-FPN",
  191. "MaskRCNN-ResNeXt101-vd-FPN",
  192. "PP-YOLOE_seg-S",
  193. "PP-ShiTuV2_rec_CLIP_vit_base",
  194. "PP-ShiTuV2_rec_CLIP_vit_large",
  195. "PP-ShiTuV2_det",
  196. "PP-YOLOE-L_vehicle",
  197. "PP-YOLOE-S_vehicle",
  198. "STFPM",
  199. "PP-OCRv4_mobile_det",
  200. "PP-OCRv4_server_det",
  201. "PP-OCRv4_mobile_rec",
  202. "PP-OCRv4_server_rec",
  203. "ch_SVTRv2_rec",
  204. "ch_RepSVTR_rec",
  205. "SLANet",
  206. "PicoDet_layout_1x",
  207. "PicoDet-L_layout_3cls",
  208. "RT-DETR-H_layout_3cls",
  209. "RT-DETR-H_layout_17cls",
  210. "DLinear",
  211. "NLinear",
  212. "Nonstationary",
  213. "PatchTST",
  214. "RLinear",
  215. "TiDE",
  216. "TimesNet",
  217. "AutoEncoder_ad",
  218. "DLinear_ad",
  219. "Nonstationary_ad",
  220. "PatchTST_ad",
  221. "TimesNet_ad",
  222. "TimesNet_cls",
  223. ]
  224. XPU_WHITELIST = [
  225. "MobileNetV3_large_x0_5",
  226. "MobileNetV3_large_x0_35",
  227. "MobileNetV3_large_x0_75",
  228. "MobileNetV3_large_x1_0",
  229. "MobileNetV3_large_x1_25",
  230. "MobileNetV3_small_x0_5",
  231. "MobileNetV3_small_x0_35",
  232. "MobileNetV3_small_x0_75",
  233. "MobileNetV3_small_x1_0",
  234. "MobileNetV3_small_x1_25",
  235. "PP-HGNet_small",
  236. "PP-LCNet_x0_5",
  237. "PP-LCNet_x0_25",
  238. "PP-LCNet_x0_35",
  239. "PP-LCNet_x0_75",
  240. "PP-LCNet_x1_0",
  241. "PP-LCNet_x1_5",
  242. "PP-LCNet_x2_0",
  243. "PP-LCNet_x2_5",
  244. "ResNet18",
  245. "ResNet34",
  246. "ResNet50",
  247. "ResNet101",
  248. "ResNet152",
  249. "PicoDet-L",
  250. "PicoDet-S",
  251. "PP-YOLOE_plus-L",
  252. "PP-YOLOE_plus-M",
  253. "PP-YOLOE_plus-S",
  254. "PP-YOLOE_plus-X",
  255. "PP-LiteSeg-T",
  256. "PP-OCRv4_mobile_det",
  257. "PP-OCRv4_server_det",
  258. "PP-OCRv4_mobile_rec",
  259. "PP-OCRv4_server_rec",
  260. "PicoDet_layout_1x",
  261. "DLinear",
  262. "NLinear",
  263. "RLinear",
  264. ]
  265. GCU_WHITELIST = [
  266. "ResNet50",
  267. "PP-YOLOE_plus-L",
  268. "PP-YOLOE_plus-M",
  269. "PP-YOLOE_plus-S",
  270. "PP-YOLOE_plus-X",
  271. "RT-DETR-H",
  272. "RT-DETR-L",
  273. "RT-DETR-R18",
  274. "RT-DETR-R50",
  275. "RT-DETR-X",
  276. "PP-OCRv4_mobile_det",
  277. "PP-OCRv4_server_det",
  278. "PP-OCRv4_mobile_rec",
  279. "PP-OCRv4_server_rec",
  280. ]