custom_device_list.py 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
  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. "PP-LCNet_x1_0",
  21. "PP-HGNetV2-B0_ML",
  22. "PP-HGNetV2-B4_ML",
  23. "PP-HGNetV2-B6_ML",
  24. "CLIP_vit_base_patch16_224_ML",
  25. "PP-ShiTuV2_rec_CLIP_vit_base",
  26. "PP-YOLOE_plus-L",
  27. "PP-YOLOE_plus-M",
  28. "PP-YOLOE_plus-S",
  29. "RT-DETR-R18",
  30. "PicoDet-L",
  31. "PicoDet-M",
  32. "PicoDet-S",
  33. "PicoDet-XS",
  34. "FCOS-ResNet50",
  35. "YOLOX-N",
  36. "FasterRCNN-ResNet34-FPN",
  37. "YOLOv3-DarkNet53",
  38. "Cascade-FasterRCNN-ResNet50-FPN",
  39. "PP-YOLOE_plus_SOD-S",
  40. "PP-YOLOE_plus_SOD-L",
  41. "PP-YOLOE_plus_SOD-largesize-L",
  42. "STFPM",
  43. "Deeplabv3_Plus-R50",
  44. "Deeplabv3_Plus-R101",
  45. "PP-LiteSeg-T",
  46. "PP-OCRv4_server_rec",
  47. "PP-OCRv4_server_det",
  48. "PP-OCRv4_mobile_det",
  49. "DLinear",
  50. "RLinear",
  51. "NLinear",
  52. "PicoDet_LCNet_x2_5_face",
  53. ]
  54. MLU_WHITELIST = [
  55. "ResNet18",
  56. "ResNet34",
  57. "ResNet50",
  58. "ResNet101",
  59. "ResNet152",
  60. "ResNet18_vd",
  61. "ResNet34_vd",
  62. "ResNet50_vd",
  63. "ResNet101_vd",
  64. "ResNet152_vd",
  65. "ResNet200_vd",
  66. "PP-LCNet_x0_25",
  67. "PP-LCNet_x0_35",
  68. "PP-LCNet_x0_5",
  69. "PP-LCNet_x0_75",
  70. "PP-LCNet_x1_0",
  71. "PP-LCNet_x1_5",
  72. "PP-LCNet_x2_5",
  73. "PP-LCNet_x2_0",
  74. "MobileNetV3_large_x0_35",
  75. "MobileNetV3_large_x0_5",
  76. "MobileNetV3_large_x0_75",
  77. "MobileNetV3_large_x1_0",
  78. "MobileNetV3_large_x1_25",
  79. "MobileNetV3_small_x0_35",
  80. "MobileNetV3_small_x0_5",
  81. "MobileNetV3_small_x0_75",
  82. "MobileNetV3_small_x1_0",
  83. "MobileNetV3_small_x1_25",
  84. "PP-HGNet_small",
  85. "PP-HGNet_tiny",
  86. "PP-HGNet_base",
  87. "PP-ShiTuV2_rec_CLIP_vit_base",
  88. "PP-ShiTuV2_rec_CLIP_vit_large",
  89. "PP-YOLOE_plus-X",
  90. "PP-YOLOE_plus-L",
  91. "PP-YOLOE_plus-M",
  92. "PP-YOLOE_plus-S",
  93. "PicoDet-L",
  94. "PicoDet-M",
  95. "PicoDet-S",
  96. "PicoDet-XS",
  97. "STFPM",
  98. "PP-LiteSeg-T",
  99. "PP-OCRv4_server_rec",
  100. "PP-OCRv4_mobile_rec",
  101. "PP-OCRv4_server_det",
  102. "PP-OCRv4_mobile_det",
  103. "PicoDet_layout_1x",
  104. "DLinear",
  105. "RLinear",
  106. "NLinear",
  107. "PicoDet_LCNet_x2_5_face",
  108. ]
  109. NPU_BLACKLIST = [
  110. "PP-LiteSeg-B",
  111. "MaskFormer_tiny",
  112. "MaskFormer_small",
  113. "PP-YOLOE_plus-S_face",
  114. "BlazeFace",
  115. "BlazeFace-FPN-SSH",
  116. "MobileFaceNet",
  117. "ResNet50_face",
  118. "PP-TSM-R50_8frames_uniform",
  119. "PP-TSMv2-LCNetV2_8frames_uniform",
  120. "PP-TSMv2-LCNetV2_16frames_uniform",
  121. "YOWO",
  122. "PP-YOLOE-R-L",
  123. "SAM-H-BOX",
  124. "SAM-H-point",
  125. "GroundingDINO-T",
  126. "PP-TinyPose128x96",
  127. "PP-TinyPose256x192",
  128. "BEVFusion",
  129. "whisper_large",
  130. "whisper_medium",
  131. "whisper_small",
  132. "whisper_base",
  133. "whisper_tiny",
  134. "UniMERNet",
  135. ]
  136. XPU_WHITELIST = [
  137. "ResNet18",
  138. "ResNet34",
  139. "ResNet50",
  140. "ResNet101",
  141. "ResNet152",
  142. "ResNet18_vd",
  143. "ResNet34_vd",
  144. "ResNet50_vd",
  145. "ResNet101_vd",
  146. "ResNet152_vd",
  147. "ResNet200_vd",
  148. "PP-LCNet_x0_25",
  149. "PP-LCNet_x0_35",
  150. "PP-LCNet_x0_5",
  151. "PP-LCNet_x0_75",
  152. "PP-LCNet_x1_0",
  153. "PP-LCNet_x1_5",
  154. "PP-LCNet_x2_5",
  155. "PP-LCNet_x2_0",
  156. "MobileNetV3_large_x0_35",
  157. "MobileNetV3_large_x0_5",
  158. "MobileNetV3_large_x0_75",
  159. "MobileNetV3_large_x1_0",
  160. "MobileNetV3_large_x1_25",
  161. "MobileNetV3_small_x0_35",
  162. "MobileNetV3_small_x0_5",
  163. "MobileNetV3_small_x0_75",
  164. "MobileNetV3_small_x1_0",
  165. "MobileNetV3_small_x1_25",
  166. "PP-HGNet_small",
  167. "PP-HGNet_tiny",
  168. "PP-HGNet_base",
  169. "PP-YOLOE_plus-X",
  170. "PP-YOLOE_plus-L",
  171. "PP-YOLOE_plus-M",
  172. "PP-YOLOE_plus-S",
  173. "PicoDet-L",
  174. "PicoDet-M",
  175. "PicoDet-S",
  176. "PicoDet-XS",
  177. "STFPM",
  178. "PP-LiteSeg-T",
  179. "PP-OCRv4_server_rec",
  180. "PP-OCRv4_mobile_rec",
  181. "PP-OCRv4_server_det",
  182. "PP-OCRv4_mobile_det",
  183. "PicoDet_layout_1x",
  184. "DLinear",
  185. "RLinear",
  186. "NLinear",
  187. "PicoDet_LCNet_x2_5_face",
  188. "PP-LCNet_x1_0_doc_ori",
  189. "UVDoc",
  190. "PP-DocLayout-L",
  191. "PP-DocLayout-M",
  192. "PP-DocLayout-S",
  193. "PP-DocLayout_plus-L",
  194. "PP-DocBlockLayout",
  195. "SLANeXt_wired",
  196. "SLANeXt_wireless",
  197. "PP-LCNet_x1_0_table_cls",
  198. "RT-DETR-L_wired_table_cell_det",
  199. "RT-DETR-L_wireless_table_cell_det",
  200. "PP-OCRv4_server_seal_det",
  201. "PP-OCRv4_mobile_seal_det",
  202. "PP-OCRv5_server_rec",
  203. "PP-OCRv5_mobile_rec",
  204. "PPDocBee-2B",
  205. "PPDocBee-7B",
  206. "PP-FormulaNet-S",
  207. "PP-FormulaNet-L",
  208. "PP-FormulaNet-M",
  209. "PP-FormulaNet_plus-M",
  210. "PP-FormulaNet_plus-L",
  211. "PP-OCRv5_server_det",
  212. "PP-OCRv5_mobile_det",
  213. "PP-Chart2Table",
  214. ]
  215. GCU_WHITELIST = [
  216. "ConvNeXt_base_224",
  217. "ConvNeXt_base_384",
  218. "ConvNeXt_large_224",
  219. "ConvNeXt_large_384",
  220. "ConvNeXt_small",
  221. "ConvNeXt_tiny",
  222. "FasterNet-L",
  223. "FasterNet-M",
  224. "FasterNet-S",
  225. "FasterNet-T0",
  226. "FasterNet-T1",
  227. "FasterNet-T2",
  228. "MobileNetV1_x0_25",
  229. "MobileNetV1_x0_5",
  230. "MobileNetV1_x0_75",
  231. "MobileNetV1_x1_0",
  232. "MobileNetV2_x0_25",
  233. "MobileNetV2_x0_5",
  234. "MobileNetV2_x1_0",
  235. "MobileNetV2_x1_5",
  236. "MobileNetV2_x2_0",
  237. "MobileNetV3_large_x0_35",
  238. "MobileNetV3_large_x0_5",
  239. "MobileNetV3_large_x0_75",
  240. "MobileNetV3_large_x1_0",
  241. "MobileNetV3_large_x1_25",
  242. "MobileNetV3_small_x0_35",
  243. "MobileNetV3_small_x0_5",
  244. "MobileNetV3_small_x0_75",
  245. "MobileNetV3_small_x1_0",
  246. "MobileNetV3_small_x1_25",
  247. "MobileNetV4_conv_large",
  248. "MobileNetV4_conv_medium",
  249. "MobileNetV4_conv_small",
  250. "PP-HGNet_base",
  251. "PP-HGNet_small",
  252. "PP-HGNet_tiny",
  253. "PP-HGNetV2-B0",
  254. "PP-HGNetV2-B1",
  255. "PP-HGNetV2-B2",
  256. "PP-HGNetV2-B3",
  257. "PP-HGNetV2-B4",
  258. "PP-HGNetV2-B5",
  259. "PP-HGNetV2-B6",
  260. "PP-LCNet_x0_25",
  261. "PP-LCNet_x0_35",
  262. "PP-LCNet_x0_5",
  263. "PP-LCNet_x0_75",
  264. "PP-LCNet_x1_0",
  265. "PP-LCNet_x1_5",
  266. "PP-LCNet_x2_0",
  267. "PP-LCNet_x2_5",
  268. "PP-LCNetV2_base",
  269. "PP-LCNetV2_large",
  270. "PP-LCNetV2_small",
  271. "ResNet18_vd",
  272. "ResNet18",
  273. "ResNet34_vd",
  274. "ResNet34",
  275. "ResNet50_vd",
  276. "ResNet50",
  277. "ResNet101_vd",
  278. "ResNet101",
  279. "ResNet152_vd",
  280. "ResNet152",
  281. "ResNet200_vd",
  282. "StarNet-S1",
  283. "StarNet-S2",
  284. "StarNet-S3",
  285. "StarNet-S4",
  286. "FCOS-ResNet50",
  287. "PicoDet-L",
  288. "PicoDet-M",
  289. "PicoDet-S",
  290. "PicoDet-XS",
  291. "PP-YOLOE_plus-L",
  292. "PP-YOLOE_plus-M",
  293. "PP-YOLOE_plus-S",
  294. "PP-YOLOE_plus-X",
  295. "RT-DETR-H",
  296. "RT-DETR-L",
  297. "RT-DETR-R18",
  298. "RT-DETR-R50",
  299. "RT-DETR-X",
  300. "PP-YOLOE-L_human",
  301. "PP-YOLOE-S_human",
  302. "PP-OCRv4_mobile_det",
  303. "PP-OCRv4_server_det",
  304. "PP-OCRv4_mobile_rec",
  305. "PP-OCRv4_server_rec",
  306. ]