custom_device_list.py 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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. "PP-FormulaNet-L",
  136. "PP-FormulaNet-S",
  137. ]
  138. XPU_WHITELIST = [
  139. "ResNet18",
  140. "ResNet34",
  141. "ResNet50",
  142. "ResNet101",
  143. "ResNet152",
  144. "ResNet18_vd",
  145. "ResNet34_vd",
  146. "ResNet50_vd",
  147. "ResNet101_vd",
  148. "ResNet152_vd",
  149. "ResNet200_vd",
  150. "PP-LCNet_x0_25",
  151. "PP-LCNet_x0_35",
  152. "PP-LCNet_x0_5",
  153. "PP-LCNet_x0_75",
  154. "PP-LCNet_x1_0",
  155. "PP-LCNet_x1_5",
  156. "PP-LCNet_x2_5",
  157. "PP-LCNet_x2_0",
  158. "MobileNetV3_large_x0_35",
  159. "MobileNetV3_large_x0_5",
  160. "MobileNetV3_large_x0_75",
  161. "MobileNetV3_large_x1_0",
  162. "MobileNetV3_large_x1_25",
  163. "MobileNetV3_small_x0_35",
  164. "MobileNetV3_small_x0_5",
  165. "MobileNetV3_small_x0_75",
  166. "MobileNetV3_small_x1_0",
  167. "MobileNetV3_small_x1_25",
  168. "PP-HGNet_small",
  169. "PP-HGNet_tiny",
  170. "PP-HGNet_base",
  171. "PP-YOLOE_plus-X",
  172. "PP-YOLOE_plus-L",
  173. "PP-YOLOE_plus-M",
  174. "PP-YOLOE_plus-S",
  175. "PicoDet-L",
  176. "PicoDet-M",
  177. "PicoDet-S",
  178. "PicoDet-XS",
  179. "STFPM",
  180. "PP-LiteSeg-T",
  181. "PP-OCRv4_server_rec",
  182. "PP-OCRv4_mobile_rec",
  183. "PP-OCRv4_server_det",
  184. "PP-OCRv4_mobile_det",
  185. "PicoDet_layout_1x",
  186. "DLinear",
  187. "RLinear",
  188. "NLinear",
  189. "PicoDet_LCNet_x2_5_face",
  190. ]
  191. GCU_WHITELIST = [
  192. "ConvNeXt_base_224",
  193. "ConvNeXt_base_384",
  194. "ConvNeXt_large_224",
  195. "ConvNeXt_large_384",
  196. "ConvNeXt_small",
  197. "ConvNeXt_tiny",
  198. "FasterNet-L",
  199. "FasterNet-M",
  200. "FasterNet-S",
  201. "FasterNet-T0",
  202. "FasterNet-T1",
  203. "FasterNet-T2",
  204. "MobileNetV1_x0_25",
  205. "MobileNetV1_x0_5",
  206. "MobileNetV1_x0_75",
  207. "MobileNetV1_x1_0",
  208. "MobileNetV2_x0_25",
  209. "MobileNetV2_x0_5",
  210. "MobileNetV2_x1_0",
  211. "MobileNetV2_x1_5",
  212. "MobileNetV2_x2_0",
  213. "MobileNetV3_large_x0_35",
  214. "MobileNetV3_large_x0_5",
  215. "MobileNetV3_large_x0_75",
  216. "MobileNetV3_large_x1_0",
  217. "MobileNetV3_large_x1_25",
  218. "MobileNetV3_small_x0_35",
  219. "MobileNetV3_small_x0_5",
  220. "MobileNetV3_small_x0_75",
  221. "MobileNetV3_small_x1_0",
  222. "MobileNetV3_small_x1_25",
  223. "MobileNetV4_conv_large",
  224. "MobileNetV4_conv_medium",
  225. "MobileNetV4_conv_small",
  226. "PP-HGNet_base",
  227. "PP-HGNet_small",
  228. "PP-HGNet_tiny",
  229. "PP-HGNetV2-B0",
  230. "PP-HGNetV2-B1",
  231. "PP-HGNetV2-B2",
  232. "PP-HGNetV2-B3",
  233. "PP-HGNetV2-B4",
  234. "PP-HGNetV2-B5",
  235. "PP-HGNetV2-B6",
  236. "PP-LCNet_x0_25",
  237. "PP-LCNet_x0_35",
  238. "PP-LCNet_x0_5",
  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. "PP-LCNetV2_base",
  245. "PP-LCNetV2_large",
  246. "PP-LCNetV2_small",
  247. "ResNet18_vd",
  248. "ResNet18",
  249. "ResNet34_vd",
  250. "ResNet34",
  251. "ResNet50_vd",
  252. "ResNet50",
  253. "ResNet101_vd",
  254. "ResNet101",
  255. "ResNet152_vd",
  256. "ResNet152",
  257. "ResNet200_vd",
  258. "StarNet-S1",
  259. "StarNet-S2",
  260. "StarNet-S3",
  261. "StarNet-S4",
  262. "FCOS-ResNet50",
  263. "PicoDet-L",
  264. "PicoDet-M",
  265. "PicoDet-S",
  266. "PicoDet-XS",
  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-YOLOE-L_human",
  277. "PP-YOLOE-S_human",
  278. "PP-OCRv4_mobile_det",
  279. "PP-OCRv4_server_det",
  280. "PP-OCRv4_mobile_rec",
  281. "PP-OCRv4_server_rec",
  282. ]