custom_device_whitelist.py 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  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_WHITELIST = [
  110. "ResNet18",
  111. "ResNet34",
  112. "ResNet50",
  113. "ResNet101",
  114. "ResNet152",
  115. "ResNet18_vd",
  116. "ResNet34_vd",
  117. "ResNet50_vd",
  118. "ResNet101_vd",
  119. "ResNet152_vd",
  120. "ResNet200_vd",
  121. "PP-LCNet_x0_25",
  122. "PP-LCNet_x0_35",
  123. "PP-LCNet_x0_5",
  124. "PP-LCNet_x0_75",
  125. "PP-LCNet_x1_0",
  126. "PP-LCNet_x1_5",
  127. "PP-LCNet_x2_5",
  128. "PP-LCNet_x2_0",
  129. "PP-LCNetV2_small",
  130. "PP-LCNetV2_base",
  131. "PP-LCNetV2_large",
  132. "MobileNetV3_large_x0_35",
  133. "MobileNetV3_large_x0_5",
  134. "MobileNetV3_large_x0_75",
  135. "MobileNetV3_large_x1_0",
  136. "MobileNetV3_large_x1_25",
  137. "MobileNetV3_small_x0_35",
  138. "MobileNetV3_small_x0_5",
  139. "MobileNetV3_small_x0_75",
  140. "MobileNetV3_small_x1_0",
  141. "MobileNetV3_small_x1_25",
  142. "ConvNeXt_tiny",
  143. "ConvNeXt_small",
  144. "ConvNeXt_base_224",
  145. "ConvNeXt_base_384",
  146. "ConvNeXt_large_224",
  147. "ConvNeXt_large_384",
  148. "MobileNetV1_x0_25",
  149. "MobileNetV1_x0_5",
  150. "MobileNetV1_x0_75",
  151. "MobileNetV1_x1_0",
  152. "MobileNetV2_x0_25",
  153. "MobileNetV2_x0_5",
  154. "MobileNetV2_x1_0",
  155. "MobileNetV2_x1_5",
  156. "MobileNetV2_x2_0",
  157. "SwinTransformer_tiny_patch4_window7_224",
  158. "SwinTransformer_small_patch4_window7_224",
  159. "SwinTransformer_base_patch4_window7_224",
  160. "SwinTransformer_base_patch4_window12_384",
  161. "SwinTransformer_large_patch4_window7_224",
  162. "SwinTransformer_large_patch4_window12_384",
  163. "PP-HGNet_small",
  164. "PP-HGNet_tiny",
  165. "PP-HGNet_base",
  166. "PP-HGNetV2-B0",
  167. "PP-HGNetV2-B1",
  168. "PP-HGNetV2-B2",
  169. "PP-HGNetV2-B3",
  170. "PP-HGNetV2-B4",
  171. "PP-HGNetV2-B5",
  172. "PP-HGNetV2-B6",
  173. "CLIP_vit_base_patch16_224",
  174. "CLIP_vit_large_patch14_224",
  175. "MobileNetV4_conv_small",
  176. "MobileNetV4_conv_medium",
  177. "MobileNetV4_hybrid_medium",
  178. "MobileNetV4_conv_large",
  179. "MobileNetV4_hybrid_large",
  180. "StarNet-S1 ",
  181. "StarNet-S2",
  182. "StarNet-S3",
  183. "StarNet-S4",
  184. "FasterNet-T0",
  185. "FasterNet-T1",
  186. "FasterNet-T2",
  187. "FasterNet-S",
  188. "FasterNet-M",
  189. "FasterNet-L",
  190. "PP-LCNet_x1_0_ML",
  191. "ResNet50_ML",
  192. "PP-HGNetV2-B0_ML",
  193. "PP-HGNetV2-B4_ML",
  194. "PP-HGNetV2-B6_ML",
  195. "CLIP_vit_base_patch16_224_ML",
  196. "PPLCNet_x1_0_pedestrian_attribute",
  197. "PP-LCNet_x1_0_vehicle_attribute",
  198. "PP-ShiTuV2_rec",
  199. "PP-ShiTuV2_rec_CLIP_vit_base",
  200. "PP-ShiTuV2_rec_CLIP_vit_large",
  201. "PP-YOLOE_plus-X",
  202. "PP-YOLOE_plus-L",
  203. "PP-YOLOE_plus-M",
  204. "PP-YOLOE_plus-S",
  205. "RT-DETR-L",
  206. "RT-DETR-H",
  207. "RT-DETR-X",
  208. "RT-DETR-R18",
  209. "RT-DETR-R50",
  210. "PicoDet-L",
  211. "PicoDet-M",
  212. "PicoDet-S",
  213. "PicoDet-XS",
  214. "CenterNet-DLA-34",
  215. "CenterNet-ResNet50",
  216. "FCOS-ResNet50",
  217. "DETR-R50",
  218. "YOLOX-N",
  219. "YOLOX-T",
  220. "YOLOX-S",
  221. "YOLOX-M",
  222. "FasterRCNN-ResNet34-FPN",
  223. "FasterRCNN-ResNet50",
  224. "FasterRCNN-ResNet50-FPN",
  225. "FasterRCNN-ResNet50-vd-FPN",
  226. "FasterRCNN-ResNet50-vd-SSLDv2-FPN",
  227. "FasterRCNN-ResNet101",
  228. "FasterRCNN-ResNet101-FPN",
  229. "FasterRCNN-ResNeXt101-vd-FPN",
  230. "FasterRCNN-Swin-Tiny-FPN",
  231. "YOLOv3-DarkNet53",
  232. "YOLOv3-ResNet50_vd_DCN",
  233. "YOLOv3-MobileNetV3",
  234. "Cascade-FasterRCNN-ResNet50-FPN",
  235. "Cascade-FasterRCNN-ResNet50-vd-SSLDv2-FPN",
  236. "PP-ShiTuV2_det",
  237. "PP-YOLOE-S_human",
  238. "PP-YOLOE-L_human",
  239. "PP-YOLOE-L_vehicle",
  240. "PP-YOLOE-S_vehicle",
  241. "PP-YOLOE_plus_SOD-S",
  242. "PP-YOLOE_plus_SOD-L",
  243. "PP-YOLOE_plus_SOD-largesize-L",
  244. "STFPM",
  245. "Deeplabv3-R50",
  246. "Deeplabv3-R101",
  247. "Deeplabv3_Plus-R50",
  248. "Deeplabv3_Plus-R101",
  249. "PP-LiteSeg-T",
  250. "OCRNet_HRNet-W18",
  251. "OCRNet_HRNet-W48",
  252. "SeaFormer-tiny",
  253. "SeaFormer-small",
  254. "SeaFormer-base",
  255. "SeaFormer-large",
  256. "SegFormer-B0",
  257. "SegFormer-B1",
  258. "SegFormer-B2",
  259. "SegFormer-B3",
  260. "SegFormer-B4",
  261. "SegFormer-B5",
  262. "PP-YOLOE_seg-S",
  263. "SOLOv2",
  264. "MaskRCNN-ResNet50",
  265. "MaskRCNN-ResNet50-FPN",
  266. "MaskRCNN-ResNet50-vd-FPN",
  267. "MaskRCNN-ResNet101-FPN",
  268. "MaskRCNN-ResNet101-vd-FPN",
  269. "MaskRCNN-ResNeXt101-vd-FPN",
  270. "Cascade-MaskRCNN-ResNet50-vd-SSLDv2-FPN",
  271. "Cascade-MaskRCNN-ResNet50-FPN",
  272. "Mask-RT-DETR-H",
  273. "Mask-RT-DETR-L",
  274. "Mask-RT-DETR-X",
  275. "Mask-RT-DETR-M",
  276. "Mask-RT-DETR-S",
  277. "PP-OCRv4_server_rec",
  278. "PP-OCRv4_mobile_rec",
  279. "PP-OCRv4_server_det",
  280. "PP-OCRv4_mobile_det",
  281. "ch_RepSVTR_rec",
  282. "ch_SVTRv2_rec",
  283. "PicoDet_layout_1x",
  284. "PicoDet-L_layout_3cls",
  285. "RT-DETR-H_layout_3cls",
  286. "RT-DETR-H_layout_17cls",
  287. "SLANet",
  288. "SLANet_plus",
  289. "DLinear",
  290. "DLinear_ad",
  291. "RLinear",
  292. "NLinear",
  293. "PatchTST",
  294. "PatchTST_ad",
  295. "TimesNet",
  296. "TimesNet_cls",
  297. "TimesNet_ad",
  298. "TiDE",
  299. "Nonstationary",
  300. "Nonstationary_ad",
  301. "AutoEncoder_ad",
  302. "PicoDet_LCNet_x2_5_face",
  303. "UVDoc",
  304. "PP-OCRv4_mobile_seal_det",
  305. "PP-OCRv4_server_seal_det",
  306. "PP-LCNet_x1_0_doc_ori",
  307. ]
  308. XPU_WHITELIST = [
  309. "ResNet18",
  310. "ResNet34",
  311. "ResNet50",
  312. "ResNet101",
  313. "ResNet152",
  314. "ResNet18_vd",
  315. "ResNet34_vd",
  316. "ResNet50_vd",
  317. "ResNet101_vd",
  318. "ResNet152_vd",
  319. "ResNet200_vd",
  320. "PP-LCNet_x0_25",
  321. "PP-LCNet_x0_35",
  322. "PP-LCNet_x0_5",
  323. "PP-LCNet_x0_75",
  324. "PP-LCNet_x1_0",
  325. "PP-LCNet_x1_5",
  326. "PP-LCNet_x2_5",
  327. "PP-LCNet_x2_0",
  328. "MobileNetV3_large_x0_35",
  329. "MobileNetV3_large_x0_5",
  330. "MobileNetV3_large_x0_75",
  331. "MobileNetV3_large_x1_0",
  332. "MobileNetV3_large_x1_25",
  333. "MobileNetV3_small_x0_35",
  334. "MobileNetV3_small_x0_5",
  335. "MobileNetV3_small_x0_75",
  336. "MobileNetV3_small_x1_0",
  337. "MobileNetV3_small_x1_25",
  338. "PP-HGNet_small",
  339. "PP-HGNet_tiny",
  340. "PP-HGNet_base",
  341. "PP-YOLOE_plus-X",
  342. "PP-YOLOE_plus-L",
  343. "PP-YOLOE_plus-M",
  344. "PP-YOLOE_plus-S",
  345. "PicoDet-L",
  346. "PicoDet-M",
  347. "PicoDet-S",
  348. "PicoDet-XS",
  349. "STFPM",
  350. "PP-LiteSeg-T",
  351. "PP-OCRv4_server_rec",
  352. "PP-OCRv4_mobile_rec",
  353. "PP-OCRv4_server_det",
  354. "PP-OCRv4_mobile_det",
  355. "PicoDet_layout_1x",
  356. "DLinear",
  357. "RLinear",
  358. "NLinear",
  359. "PicoDet_LCNet_x2_5_face",
  360. ]
  361. GCU_WHITELIST = [
  362. "ConvNeXt_base_224",
  363. "ConvNeXt_base_384",
  364. "ConvNeXt_large_224",
  365. "ConvNeXt_large_384",
  366. "ConvNeXt_small",
  367. "ConvNeXt_tiny",
  368. "FasterNet-L",
  369. "FasterNet-M",
  370. "FasterNet-S",
  371. "FasterNet-T0",
  372. "FasterNet-T1",
  373. "FasterNet-T2",
  374. "MobileNetV1_x0_25",
  375. "MobileNetV1_x0_5",
  376. "MobileNetV1_x0_75",
  377. "MobileNetV1_x1_0",
  378. "MobileNetV2_x0_25",
  379. "MobileNetV2_x0_5",
  380. "MobileNetV2_x1_0",
  381. "MobileNetV2_x1_5",
  382. "MobileNetV2_x2_0",
  383. "MobileNetV3_large_x0_35",
  384. "MobileNetV3_large_x0_5",
  385. "MobileNetV3_large_x0_75",
  386. "MobileNetV3_large_x1_0",
  387. "MobileNetV3_large_x1_25",
  388. "MobileNetV3_small_x0_35",
  389. "MobileNetV3_small_x0_5",
  390. "MobileNetV3_small_x0_75",
  391. "MobileNetV3_small_x1_0",
  392. "MobileNetV3_small_x1_25",
  393. "MobileNetV4_conv_large",
  394. "MobileNetV4_conv_medium",
  395. "MobileNetV4_conv_small",
  396. "PP-HGNet_base",
  397. "PP-HGNet_small",
  398. "PP-HGNet_tiny",
  399. "PP-HGNetV2-B0",
  400. "PP-HGNetV2-B1",
  401. "PP-HGNetV2-B2",
  402. "PP-HGNetV2-B3",
  403. "PP-HGNetV2-B4",
  404. "PP-HGNetV2-B5",
  405. "PP-HGNetV2-B6",
  406. "PP-LCNet_x0_25",
  407. "PP-LCNet_x0_35",
  408. "PP-LCNet_x0_5",
  409. "PP-LCNet_x0_75",
  410. "PP-LCNet_x1_0",
  411. "PP-LCNet_x1_5",
  412. "PP-LCNet_x2_0",
  413. "PP-LCNet_x2_5",
  414. "PP-LCNetV2_base",
  415. "PP-LCNetV2_large",
  416. "PP-LCNetV2_small",
  417. "ResNet18_vd",
  418. "ResNet18",
  419. "ResNet34_vd",
  420. "ResNet34",
  421. "ResNet50_vd",
  422. "ResNet50",
  423. "ResNet101_vd",
  424. "ResNet101",
  425. "ResNet152_vd",
  426. "ResNet152",
  427. "ResNet200_vd",
  428. "StarNet-S1",
  429. "StarNet-S2",
  430. "StarNet-S3",
  431. "StarNet-S4",
  432. "FCOS-ResNet50",
  433. "PicoDet-L",
  434. "PicoDet-M",
  435. "PicoDet-S",
  436. "PicoDet-XS",
  437. "PP-YOLOE_plus-L",
  438. "PP-YOLOE_plus-M",
  439. "PP-YOLOE_plus-S",
  440. "PP-YOLOE_plus-X",
  441. "RT-DETR-H",
  442. "RT-DETR-L",
  443. "RT-DETR-R18",
  444. "RT-DETR-R50",
  445. "RT-DETR-X",
  446. "PP-YOLOE-L_human",
  447. "PP-YOLOE-S_human",
  448. "PP-OCRv4_mobile_det",
  449. "PP-OCRv4_server_det",
  450. "PP-OCRv4_mobile_rec",
  451. "PP-OCRv4_server_rec",
  452. ]