register.py 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135
  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. import os
  15. import os.path as osp
  16. from ...base.register import register_model_info, register_suite_info
  17. from .config import DetConfig
  18. from .model import DetModel
  19. from .runner import DetRunner
  20. REPO_ROOT_PATH = os.environ.get("PADDLE_PDX_PADDLEDETECTION_PATH")
  21. PDX_CONFIG_DIR = osp.abspath(osp.join(osp.dirname(__file__), "..", "configs"))
  22. register_suite_info(
  23. {
  24. "suite_name": "Det",
  25. "model": DetModel,
  26. "runner": DetRunner,
  27. "config": DetConfig,
  28. "runner_root_path": REPO_ROOT_PATH,
  29. }
  30. )
  31. ################ Models Using Universal Config ################
  32. register_model_info(
  33. {
  34. "model_name": "PicoDet-S",
  35. "suite": "Det",
  36. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet-S.yaml"),
  37. "auto_compression_config_path": osp.join(
  38. PDX_CONFIG_DIR, "slim", "picodet_s_lcnet_qat.yml"
  39. ),
  40. "supported_apis": ["train", "evaluate", "predict", "export", "compression"],
  41. "supported_dataset_types": ["COCODetDataset"],
  42. }
  43. )
  44. register_model_info(
  45. {
  46. "model_name": "PicoDet-L",
  47. "suite": "Det",
  48. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet-L.yaml"),
  49. "auto_compression_config_path": osp.join(
  50. PDX_CONFIG_DIR, "slim", "picodet_l_lcnet_qat.yml"
  51. ),
  52. "supported_apis": ["train", "evaluate", "predict", "export", "compression"],
  53. "supported_dataset_types": ["COCODetDataset"],
  54. }
  55. )
  56. register_model_info(
  57. {
  58. "model_name": "PP-YOLOE_plus-S",
  59. "suite": "Det",
  60. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE_plus-S.yaml"),
  61. "auto_compression_config_path": osp.join(
  62. PDX_CONFIG_DIR, "slim", "ppyoloe_plus_crn_s_qat.yml"
  63. ),
  64. "supported_apis": ["train", "evaluate", "predict", "export", "compression"],
  65. "supported_dataset_types": ["COCODetDataset"],
  66. "supported_train_opts": {
  67. "device": ["cpu", "gpu_nxcx"],
  68. "dy2st": False,
  69. "amp": ["O1", "O2"],
  70. },
  71. }
  72. )
  73. register_model_info(
  74. {
  75. "model_name": "PP-YOLOE_plus-M",
  76. "suite": "Det",
  77. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE_plus-M.yaml"),
  78. "auto_compression_config_path": osp.join(
  79. PDX_CONFIG_DIR, "slim", "ppyoloe_plus_crn_l_qat.yml"
  80. ),
  81. "supported_apis": ["train", "evaluate", "predict", "export", "compression"],
  82. "supported_dataset_types": ["COCODetDataset"],
  83. "supported_train_opts": {
  84. "device": ["cpu", "gpu_nxcx"],
  85. "dy2st": False,
  86. "amp": ["O1", "O2"],
  87. },
  88. }
  89. )
  90. register_model_info(
  91. {
  92. "model_name": "PP-YOLOE_plus-L",
  93. "suite": "Det",
  94. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE_plus-L.yaml"),
  95. "supported_apis": ["train", "evaluate", "predict", "export"],
  96. "supported_dataset_types": ["COCODetDataset"],
  97. "supported_train_opts": {
  98. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  99. "dy2st": False,
  100. "amp": ["O1", "O2"],
  101. },
  102. }
  103. )
  104. register_model_info(
  105. {
  106. "model_name": "PP-YOLOE_plus-X",
  107. "suite": "Det",
  108. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE_plus-X.yaml"),
  109. "supported_apis": ["train", "evaluate", "predict", "export"],
  110. "supported_dataset_types": ["COCODetDataset"],
  111. "supported_train_opts": {
  112. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  113. "dy2st": False,
  114. "amp": ["O1", "O2"],
  115. },
  116. }
  117. )
  118. register_model_info(
  119. {
  120. "model_name": "RT-DETR-L",
  121. "suite": "Det",
  122. "config_path": osp.join(PDX_CONFIG_DIR, "RT-DETR-L.yaml"),
  123. "supported_apis": ["train", "evaluate", "predict", "export"],
  124. "supported_dataset_types": ["COCODetDataset"],
  125. "supported_train_opts": {
  126. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  127. "dy2st": False,
  128. "amp": ["OFF"],
  129. },
  130. }
  131. )
  132. register_model_info(
  133. {
  134. "model_name": "RT-DETR-H",
  135. "suite": "Det",
  136. "config_path": osp.join(PDX_CONFIG_DIR, "RT-DETR-H.yaml"),
  137. "supported_apis": ["train", "evaluate", "predict", "export"],
  138. "supported_dataset_types": ["COCODetDataset"],
  139. "supported_train_opts": {
  140. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  141. "dy2st": False,
  142. "amp": ["OFF"],
  143. },
  144. }
  145. )
  146. register_model_info(
  147. {
  148. "model_name": "RT-DETR-X",
  149. "suite": "Det",
  150. "config_path": osp.join(PDX_CONFIG_DIR, "RT-DETR-X.yaml"),
  151. "supported_apis": ["train", "evaluate", "predict", "export"],
  152. "supported_dataset_types": ["COCODetDataset"],
  153. "supported_train_opts": {
  154. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  155. "dy2st": False,
  156. "amp": ["OFF"],
  157. },
  158. }
  159. )
  160. register_model_info(
  161. {
  162. "model_name": "RT-DETR-R18",
  163. "suite": "Det",
  164. "config_path": osp.join(PDX_CONFIG_DIR, "RT-DETR-R18.yaml"),
  165. "supported_apis": ["train", "evaluate", "predict", "export"],
  166. "supported_dataset_types": ["COCODetDataset"],
  167. "supported_train_opts": {
  168. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  169. "dy2st": False,
  170. "amp": ["OFF"],
  171. },
  172. }
  173. )
  174. register_model_info(
  175. {
  176. "model_name": "RT-DETR-R50",
  177. "suite": "Det",
  178. "config_path": osp.join(PDX_CONFIG_DIR, "RT-DETR-R50.yaml"),
  179. "supported_apis": ["train", "evaluate", "predict", "export"],
  180. "supported_dataset_types": ["COCODetDataset"],
  181. "supported_train_opts": {
  182. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  183. "dy2st": False,
  184. "amp": ["OFF"],
  185. },
  186. }
  187. )
  188. register_model_info(
  189. {
  190. "model_name": "PicoDet_layout_1x",
  191. "suite": "Det",
  192. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet_layout_1x.yaml"),
  193. "supported_apis": ["train", "evaluate", "predict", "export"],
  194. "supported_dataset_types": ["COCODetDataset"],
  195. "supported_train_opts": {
  196. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  197. "dy2st": False,
  198. "amp": ["OFF"],
  199. },
  200. }
  201. )
  202. register_model_info(
  203. {
  204. "model_name": "PicoDet_layout_1x_table",
  205. "suite": "Det",
  206. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet_layout_1x_table.yaml"),
  207. "supported_apis": ["train", "evaluate", "predict", "export"],
  208. "supported_dataset_types": ["COCODetDataset"],
  209. "supported_train_opts": {
  210. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  211. "dy2st": False,
  212. "amp": ["OFF"],
  213. },
  214. }
  215. )
  216. register_model_info(
  217. {
  218. "model_name": "YOLOv3-DarkNet53",
  219. "suite": "Det",
  220. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOv3-DarkNet53.yaml"),
  221. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  222. "supported_dataset_types": ["COCODetDataset"],
  223. "supported_train_opts": {
  224. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  225. "dy2st": False,
  226. "amp": ["OFF"],
  227. },
  228. }
  229. )
  230. register_model_info(
  231. {
  232. "model_name": "YOLOv3-MobileNetV3",
  233. "suite": "Det",
  234. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOv3-MobileNetV3.yaml"),
  235. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  236. "supported_dataset_types": ["COCODetDataset"],
  237. "supported_train_opts": {
  238. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  239. "dy2st": False,
  240. "amp": ["OFF"],
  241. },
  242. }
  243. )
  244. register_model_info(
  245. {
  246. "model_name": "YOLOv3-ResNet50_vd_DCN",
  247. "suite": "Det",
  248. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOv3-ResNet50_vd_DCN.yaml"),
  249. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  250. "supported_dataset_types": ["COCODetDataset"],
  251. "supported_train_opts": {
  252. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  253. "dy2st": False,
  254. "amp": ["OFF"],
  255. },
  256. }
  257. )
  258. register_model_info(
  259. {
  260. "model_name": "YOLOX-L",
  261. "suite": "Det",
  262. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOX-L.yaml"),
  263. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  264. "supported_dataset_types": ["COCODetDataset"],
  265. "supported_train_opts": {
  266. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  267. "dy2st": False,
  268. "amp": ["OFF"],
  269. },
  270. }
  271. )
  272. register_model_info(
  273. {
  274. "model_name": "YOLOX-M",
  275. "suite": "Det",
  276. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOX-M.yaml"),
  277. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  278. "supported_dataset_types": ["COCODetDataset"],
  279. "supported_train_opts": {
  280. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  281. "dy2st": False,
  282. "amp": ["OFF"],
  283. },
  284. }
  285. )
  286. register_model_info(
  287. {
  288. "model_name": "YOLOX-N",
  289. "suite": "Det",
  290. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOX-N.yaml"),
  291. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  292. "supported_dataset_types": ["COCODetDataset"],
  293. "supported_train_opts": {
  294. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  295. "dy2st": False,
  296. "amp": ["OFF"],
  297. },
  298. }
  299. )
  300. register_model_info(
  301. {
  302. "model_name": "YOLOX-S",
  303. "suite": "Det",
  304. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOX-S.yaml"),
  305. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  306. "supported_dataset_types": ["COCODetDataset"],
  307. "supported_train_opts": {
  308. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  309. "dy2st": False,
  310. "amp": ["OFF"],
  311. },
  312. }
  313. )
  314. register_model_info(
  315. {
  316. "model_name": "YOLOX-T",
  317. "suite": "Det",
  318. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOX-T.yaml"),
  319. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  320. "supported_dataset_types": ["COCODetDataset"],
  321. "supported_train_opts": {
  322. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  323. "dy2st": False,
  324. "amp": ["OFF"],
  325. },
  326. }
  327. )
  328. register_model_info(
  329. {
  330. "model_name": "YOLOX-X",
  331. "suite": "Det",
  332. "config_path": osp.join(PDX_CONFIG_DIR, "YOLOX-X.yaml"),
  333. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  334. "supported_dataset_types": ["COCODetDataset"],
  335. "supported_train_opts": {
  336. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  337. "dy2st": False,
  338. "amp": ["OFF"],
  339. },
  340. }
  341. )
  342. register_model_info(
  343. {
  344. "model_name": "FasterRCNN-ResNet34-FPN",
  345. "suite": "Det",
  346. "config_path": osp.join(PDX_CONFIG_DIR, "FasterRCNN-ResNet34-FPN.yaml"),
  347. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  348. "supported_dataset_types": ["COCODetDataset"],
  349. "supported_train_opts": {
  350. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  351. "dy2st": False,
  352. "amp": ["OFF"],
  353. },
  354. }
  355. )
  356. register_model_info(
  357. {
  358. "model_name": "FasterRCNN-ResNet50",
  359. "suite": "Det",
  360. "config_path": osp.join(PDX_CONFIG_DIR, "FasterRCNN-ResNet50.yaml"),
  361. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  362. "supported_dataset_types": ["COCODetDataset"],
  363. "supported_train_opts": {
  364. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  365. "dy2st": False,
  366. "amp": ["OFF"],
  367. },
  368. }
  369. )
  370. register_model_info(
  371. {
  372. "model_name": "FasterRCNN-ResNet50-FPN",
  373. "suite": "Det",
  374. "config_path": osp.join(PDX_CONFIG_DIR, "FasterRCNN-ResNet50-FPN.yaml"),
  375. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  376. "supported_dataset_types": ["COCODetDataset"],
  377. "supported_train_opts": {
  378. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  379. "dy2st": False,
  380. "amp": ["OFF"],
  381. },
  382. }
  383. )
  384. register_model_info(
  385. {
  386. "model_name": "FasterRCNN-ResNet50-vd-FPN",
  387. "suite": "Det",
  388. "config_path": osp.join(PDX_CONFIG_DIR, "FasterRCNN-ResNet50-vd-FPN.yaml"),
  389. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  390. "supported_dataset_types": ["COCODetDataset"],
  391. "supported_train_opts": {
  392. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  393. "dy2st": False,
  394. "amp": ["OFF"],
  395. },
  396. }
  397. )
  398. register_model_info(
  399. {
  400. "model_name": "FasterRCNN-ResNet50-vd-SSLDv2-FPN",
  401. "suite": "Det",
  402. "config_path": osp.join(
  403. PDX_CONFIG_DIR, "FasterRCNN-ResNet50-vd-SSLDv2-FPN.yaml"
  404. ),
  405. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  406. "supported_dataset_types": ["COCODetDataset"],
  407. "supported_train_opts": {
  408. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  409. "dy2st": False,
  410. "amp": ["OFF"],
  411. },
  412. }
  413. )
  414. register_model_info(
  415. {
  416. "model_name": "FasterRCNN-ResNet101",
  417. "suite": "Det",
  418. "config_path": osp.join(PDX_CONFIG_DIR, "FasterRCNN-ResNet101.yaml"),
  419. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  420. "supported_dataset_types": ["COCODetDataset"],
  421. "supported_train_opts": {
  422. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  423. "dy2st": False,
  424. "amp": ["OFF"],
  425. },
  426. }
  427. )
  428. register_model_info(
  429. {
  430. "model_name": "FasterRCNN-ResNet101-FPN",
  431. "suite": "Det",
  432. "config_path": osp.join(PDX_CONFIG_DIR, "FasterRCNN-ResNet101-FPN.yaml"),
  433. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  434. "supported_dataset_types": ["COCODetDataset"],
  435. "supported_train_opts": {
  436. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  437. "dy2st": False,
  438. "amp": ["OFF"],
  439. },
  440. }
  441. )
  442. register_model_info(
  443. {
  444. "model_name": "FasterRCNN-ResNeXt101-vd-FPN",
  445. "suite": "Det",
  446. "config_path": osp.join(PDX_CONFIG_DIR, "FasterRCNN-ResNeXt101-vd-FPN.yaml"),
  447. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  448. "supported_dataset_types": ["COCODetDataset"],
  449. "supported_train_opts": {
  450. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  451. "dy2st": False,
  452. "amp": ["OFF"],
  453. },
  454. }
  455. )
  456. register_model_info(
  457. {
  458. "model_name": "FasterRCNN-Swin-Tiny-FPN",
  459. "suite": "Det",
  460. "config_path": osp.join(PDX_CONFIG_DIR, "FasterRCNN-Swin-Tiny-FPN.yaml"),
  461. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  462. "supported_dataset_types": ["COCODetDataset"],
  463. "supported_train_opts": {
  464. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  465. "dy2st": False,
  466. "amp": ["OFF"],
  467. },
  468. }
  469. )
  470. register_model_info(
  471. {
  472. "model_name": "Cascade-FasterRCNN-ResNet50-FPN",
  473. "suite": "Det",
  474. "config_path": osp.join(PDX_CONFIG_DIR, "Cascade-FasterRCNN-ResNet50-FPN.yaml"),
  475. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  476. "supported_dataset_types": ["COCODetDataset"],
  477. "supported_train_opts": {
  478. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  479. "dy2st": False,
  480. "amp": ["OFF"],
  481. },
  482. }
  483. )
  484. register_model_info(
  485. {
  486. "model_name": "Cascade-FasterRCNN-ResNet50-vd-SSLDv2-FPN",
  487. "suite": "Det",
  488. "config_path": osp.join(
  489. PDX_CONFIG_DIR, "Cascade-FasterRCNN-ResNet50-vd-SSLDv2-FPN.yaml"
  490. ),
  491. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  492. "supported_dataset_types": ["COCODetDataset"],
  493. "supported_train_opts": {
  494. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  495. "dy2st": False,
  496. "amp": ["OFF"],
  497. },
  498. }
  499. )
  500. register_model_info(
  501. {
  502. "model_name": "PicoDet-XS",
  503. "suite": "Det",
  504. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet-XS.yaml"),
  505. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  506. "supported_dataset_types": ["COCODetDataset"],
  507. "supported_train_opts": {
  508. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  509. "dy2st": False,
  510. "amp": ["OFF"],
  511. },
  512. }
  513. )
  514. register_model_info(
  515. {
  516. "model_name": "PicoDet-M",
  517. "suite": "Det",
  518. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet-M.yaml"),
  519. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  520. "supported_dataset_types": ["COCODetDataset"],
  521. "supported_train_opts": {
  522. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  523. "dy2st": False,
  524. "amp": ["OFF"],
  525. },
  526. }
  527. )
  528. register_model_info(
  529. {
  530. "model_name": "FCOS-ResNet50",
  531. "suite": "Det",
  532. "config_path": osp.join(PDX_CONFIG_DIR, "FCOS-ResNet50.yaml"),
  533. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  534. "supported_dataset_types": ["COCODetDataset"],
  535. "supported_train_opts": {
  536. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  537. "dy2st": False,
  538. "amp": ["OFF"],
  539. },
  540. }
  541. )
  542. register_model_info(
  543. {
  544. "model_name": "DETR-R50",
  545. "suite": "Det",
  546. "config_path": osp.join(PDX_CONFIG_DIR, "DETR-R50.yaml"),
  547. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  548. "supported_dataset_types": ["COCODetDataset"],
  549. "supported_train_opts": {
  550. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  551. "dy2st": False,
  552. "amp": ["OFF"],
  553. },
  554. }
  555. )
  556. register_model_info(
  557. {
  558. "model_name": "PP-YOLOE-L_vehicle",
  559. "suite": "Det",
  560. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE-L_vehicle.yaml"),
  561. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  562. "supported_dataset_types": ["COCODetDataset"],
  563. "supported_train_opts": {
  564. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  565. "dy2st": False,
  566. "amp": ["OFF"],
  567. },
  568. }
  569. )
  570. register_model_info(
  571. {
  572. "model_name": "PP-YOLOE-S_vehicle",
  573. "suite": "Det",
  574. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE-S_vehicle.yaml"),
  575. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  576. "supported_dataset_types": ["COCODetDataset"],
  577. "supported_train_opts": {
  578. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  579. "dy2st": False,
  580. "amp": ["OFF"],
  581. },
  582. }
  583. )
  584. register_model_info(
  585. {
  586. "model_name": "PP-ShiTuV2_det",
  587. "suite": "Det",
  588. "config_path": osp.join(PDX_CONFIG_DIR, "PP-ShiTuV2_det.yaml"),
  589. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  590. "supported_dataset_types": ["COCODetDataset"],
  591. "supported_train_opts": {
  592. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  593. "dy2st": False,
  594. "amp": ["OFF"],
  595. },
  596. }
  597. )
  598. register_model_info(
  599. {
  600. "model_name": "PP-YOLOE-L_human",
  601. "suite": "Det",
  602. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE-L_human.yaml"),
  603. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  604. "supported_dataset_types": ["COCODetDataset"],
  605. "supported_train_opts": {
  606. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  607. "dy2st": False,
  608. "amp": ["OFF"],
  609. },
  610. }
  611. )
  612. register_model_info(
  613. {
  614. "model_name": "PP-YOLOE-S_human",
  615. "suite": "Det",
  616. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE-S_human.yaml"),
  617. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  618. "supported_dataset_types": ["COCODetDataset"],
  619. "supported_train_opts": {
  620. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  621. "dy2st": False,
  622. "amp": ["OFF"],
  623. },
  624. }
  625. )
  626. register_model_info(
  627. {
  628. "model_name": "CenterNet-DLA-34",
  629. "suite": "Det",
  630. "config_path": osp.join(PDX_CONFIG_DIR, "CenterNet-DLA-34.yaml"),
  631. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  632. "supported_dataset_types": ["COCODetDataset"],
  633. "supported_train_opts": {
  634. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  635. "dy2st": False,
  636. "amp": ["OFF"],
  637. },
  638. }
  639. )
  640. register_model_info(
  641. {
  642. "model_name": "CenterNet-ResNet50",
  643. "suite": "Det",
  644. "config_path": osp.join(PDX_CONFIG_DIR, "CenterNet-ResNet50.yaml"),
  645. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  646. "supported_dataset_types": ["COCODetDataset"],
  647. "supported_train_opts": {
  648. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  649. "dy2st": False,
  650. "amp": ["OFF"],
  651. },
  652. }
  653. )
  654. register_model_info(
  655. {
  656. "model_name": "PP-YOLOE_plus_SOD-L",
  657. "suite": "Det",
  658. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE_plus_SOD-L.yaml"),
  659. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  660. "supported_dataset_types": ["COCODetDataset"],
  661. "supported_train_opts": {
  662. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  663. "dy2st": False,
  664. "amp": ["OFF"],
  665. },
  666. }
  667. )
  668. register_model_info(
  669. {
  670. "model_name": "PP-YOLOE_plus_SOD-S",
  671. "suite": "Det",
  672. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE_plus_SOD-S.yaml"),
  673. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  674. "supported_dataset_types": ["COCODetDataset"],
  675. "supported_train_opts": {
  676. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  677. "dy2st": False,
  678. "amp": ["OFF"],
  679. },
  680. }
  681. )
  682. register_model_info(
  683. {
  684. "model_name": "PP-YOLOE_plus_SOD-largesize-L",
  685. "suite": "Det",
  686. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE_plus_SOD-largesize-L.yaml"),
  687. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  688. "supported_dataset_types": ["COCODetDataset"],
  689. "supported_train_opts": {
  690. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  691. "dy2st": False,
  692. "amp": ["OFF"],
  693. },
  694. }
  695. )
  696. register_model_info(
  697. {
  698. "model_name": "RT-DETR-H_layout_3cls",
  699. "suite": "Det",
  700. "config_path": osp.join(PDX_CONFIG_DIR, "RT-DETR-H_layout_3cls.yaml"),
  701. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  702. "supported_dataset_types": ["COCODetDataset"],
  703. "supported_train_opts": {
  704. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  705. "dy2st": False,
  706. "amp": ["OFF"],
  707. },
  708. }
  709. )
  710. register_model_info(
  711. {
  712. "model_name": "PicoDet-S_layout_3cls",
  713. "suite": "Det",
  714. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet-S_layout_3cls.yaml"),
  715. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  716. "supported_dataset_types": ["COCODetDataset"],
  717. "supported_train_opts": {
  718. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  719. "dy2st": False,
  720. "amp": ["OFF"],
  721. },
  722. }
  723. )
  724. register_model_info(
  725. {
  726. "model_name": "PicoDet-S_layout_17cls",
  727. "suite": "Det",
  728. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet-S_layout_17cls.yaml"),
  729. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  730. "supported_dataset_types": ["COCODetDataset"],
  731. "supported_train_opts": {
  732. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  733. "dy2st": False,
  734. "amp": ["OFF"],
  735. },
  736. }
  737. )
  738. register_model_info(
  739. {
  740. "model_name": "PicoDet-L_layout_3cls",
  741. "suite": "Det",
  742. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet-L_layout_3cls.yaml"),
  743. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  744. "supported_dataset_types": ["COCODetDataset"],
  745. "supported_train_opts": {
  746. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  747. "dy2st": False,
  748. "amp": ["OFF"],
  749. },
  750. }
  751. )
  752. register_model_info(
  753. {
  754. "model_name": "PicoDet-L_layout_17cls",
  755. "suite": "Det",
  756. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet-L_layout_17cls.yaml"),
  757. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  758. "supported_dataset_types": ["COCODetDataset"],
  759. "supported_train_opts": {
  760. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  761. "dy2st": False,
  762. "amp": ["OFF"],
  763. },
  764. }
  765. )
  766. register_model_info(
  767. {
  768. "model_name": "RT-DETR-H_layout_17cls",
  769. "suite": "Det",
  770. "config_path": osp.join(PDX_CONFIG_DIR, "RT-DETR-H_layout_17cls.yaml"),
  771. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  772. "supported_dataset_types": ["COCODetDataset"],
  773. "supported_train_opts": {
  774. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  775. "dy2st": False,
  776. "amp": ["OFF"],
  777. },
  778. }
  779. )
  780. register_model_info(
  781. {
  782. "model_name": "PicoDet_LCNet_x2_5_face",
  783. "suite": "Det",
  784. "config_path": osp.join(PDX_CONFIG_DIR, "PicoDet_LCNet_x2_5_face.yaml"),
  785. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  786. "supported_dataset_types": ["COCODetDataset"],
  787. "supported_train_opts": {
  788. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  789. "dy2st": False,
  790. "amp": ["OFF"],
  791. },
  792. }
  793. )
  794. register_model_info(
  795. {
  796. "model_name": "BlazeFace",
  797. "suite": "Det",
  798. "config_path": osp.join(PDX_CONFIG_DIR, "BlazeFace.yaml"),
  799. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  800. "supported_dataset_types": ["COCODetDataset"],
  801. "supported_train_opts": {
  802. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  803. "dy2st": False,
  804. "amp": ["OFF"],
  805. },
  806. }
  807. )
  808. register_model_info(
  809. {
  810. "model_name": "BlazeFace-FPN-SSH",
  811. "suite": "Det",
  812. "config_path": osp.join(PDX_CONFIG_DIR, "BlazeFace-FPN-SSH.yaml"),
  813. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  814. "supported_dataset_types": ["COCODetDataset"],
  815. "supported_train_opts": {
  816. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  817. "dy2st": False,
  818. "amp": ["OFF"],
  819. },
  820. }
  821. )
  822. register_model_info(
  823. {
  824. "model_name": "PP-YOLOE_plus-S_face",
  825. "suite": "Det",
  826. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE_plus-S_face.yaml"),
  827. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  828. "supported_dataset_types": ["COCODetDataset"],
  829. "supported_train_opts": {
  830. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  831. "dy2st": False,
  832. "amp": ["OFF"],
  833. },
  834. }
  835. )
  836. register_model_info(
  837. {
  838. "model_name": "PP-YOLOE-R-L",
  839. "suite": "Det",
  840. "config_path": osp.join(PDX_CONFIG_DIR, "PP-YOLOE-R-L.yaml"),
  841. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  842. "supported_dataset_types": ["COCODetDataset"],
  843. "supported_train_opts": {
  844. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  845. "dy2st": False,
  846. "amp": ["OFF"],
  847. },
  848. }
  849. )
  850. register_model_info(
  851. {
  852. "model_name": "RT-DETR-L_wired_table_cell_det",
  853. "suite": "Det",
  854. "config_path": osp.join(PDX_CONFIG_DIR, "RT-DETR-L_wired_table_cell_det.yaml"),
  855. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  856. "supported_dataset_types": ["COCODetDataset"],
  857. "supported_train_opts": {
  858. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  859. "dy2st": False,
  860. "amp": ["OFF"],
  861. },
  862. }
  863. )
  864. register_model_info(
  865. {
  866. "model_name": "RT-DETR-L_wireless_table_cell_det",
  867. "suite": "Det",
  868. "config_path": osp.join(
  869. PDX_CONFIG_DIR, "RT-DETR-L_wireless_table_cell_det.yaml"
  870. ),
  871. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  872. "supported_dataset_types": ["COCODetDataset"],
  873. "supported_train_opts": {
  874. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  875. "dy2st": False,
  876. "amp": ["OFF"],
  877. },
  878. }
  879. )
  880. register_model_info(
  881. {
  882. "model_name": "Co-Deformable-DETR-R50",
  883. "suite": "Det",
  884. "config_path": osp.join(PDX_CONFIG_DIR, "Co-Deformable-DETR-R50.yaml"),
  885. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  886. "supported_dataset_types": ["COCODetDataset"],
  887. "supported_train_opts": {
  888. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  889. "dy2st": False,
  890. "amp": ["OFF"],
  891. },
  892. }
  893. )
  894. register_model_info(
  895. {
  896. "model_name": "Co-Deformable-DETR-Swin-T",
  897. "suite": "Det",
  898. "config_path": osp.join(PDX_CONFIG_DIR, "Co-Deformable-DETR-Swin-T.yaml"),
  899. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  900. "supported_dataset_types": ["COCODetDataset"],
  901. "supported_train_opts": {
  902. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  903. "dy2st": False,
  904. "amp": ["OFF"],
  905. },
  906. }
  907. )
  908. register_model_info(
  909. {
  910. "model_name": "Co-DINO-R50",
  911. "suite": "Det",
  912. "config_path": osp.join(PDX_CONFIG_DIR, "Co-DINO-R50.yaml"),
  913. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  914. "supported_dataset_types": ["COCODetDataset"],
  915. "supported_train_opts": {
  916. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  917. "dy2st": False,
  918. "amp": ["OFF"],
  919. },
  920. }
  921. )
  922. register_model_info(
  923. {
  924. "model_name": "Co-DINO-Swin-L",
  925. "suite": "Det",
  926. "config_path": osp.join(PDX_CONFIG_DIR, "Co-DINO-Swin-L.yaml"),
  927. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  928. "supported_dataset_types": ["COCODetDataset"],
  929. "supported_train_opts": {
  930. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  931. "dy2st": False,
  932. "amp": ["OFF"],
  933. },
  934. }
  935. )
  936. register_model_info(
  937. {
  938. "model_name": "PP-TinyPose_128x96",
  939. "suite": "Det",
  940. "config_path": osp.join(PDX_CONFIG_DIR, "PP-TinyPose_128x96.yaml"),
  941. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  942. "supported_dataset_types": ["KeypointTopDownCocoDetDataset"],
  943. "supported_train_opts": {
  944. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  945. "dy2st": False,
  946. "amp": ["OFF"],
  947. },
  948. }
  949. )
  950. register_model_info(
  951. {
  952. "model_name": "PP-TinyPose_256x192",
  953. "suite": "Det",
  954. "config_path": osp.join(PDX_CONFIG_DIR, "PP-TinyPose_256x192.yaml"),
  955. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  956. "supported_dataset_types": ["KeypointTopDownCocoDetDataset"],
  957. "supported_train_opts": {
  958. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  959. "dy2st": False,
  960. "amp": ["OFF"],
  961. },
  962. }
  963. )
  964. register_model_info(
  965. {
  966. "model_name": "PP-DocLayout-L",
  967. "suite": "Det",
  968. "config_path": osp.join(PDX_CONFIG_DIR, "PP-DocLayout-L.yaml"),
  969. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  970. "supported_dataset_types": ["COCODetDataset"],
  971. "supported_train_opts": {
  972. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  973. "dy2st": False,
  974. "amp": ["OFF"],
  975. },
  976. }
  977. )
  978. register_model_info(
  979. {
  980. "model_name": "PP-DocLayout-M",
  981. "suite": "Det",
  982. "config_path": osp.join(PDX_CONFIG_DIR, "PP-DocLayout-M.yaml"),
  983. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  984. "supported_dataset_types": ["COCODetDataset"],
  985. "supported_train_opts": {
  986. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  987. "dy2st": False,
  988. "amp": ["OFF"],
  989. },
  990. }
  991. )
  992. register_model_info(
  993. {
  994. "model_name": "PP-DocLayout-S",
  995. "suite": "Det",
  996. "config_path": osp.join(PDX_CONFIG_DIR, "PP-DocLayout-S.yaml"),
  997. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  998. "supported_dataset_types": ["COCODetDataset"],
  999. "supported_train_opts": {
  1000. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  1001. "dy2st": False,
  1002. "amp": ["OFF"],
  1003. },
  1004. }
  1005. )
  1006. register_model_info(
  1007. {
  1008. "model_name": "PP-DocLayout_plus-L",
  1009. "suite": "Det",
  1010. "config_path": osp.join(PDX_CONFIG_DIR, "PP-DocLayout_plus-L.yaml"),
  1011. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  1012. "supported_dataset_types": ["COCODetDataset"],
  1013. "supported_train_opts": {
  1014. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  1015. "dy2st": False,
  1016. "amp": ["OFF"],
  1017. },
  1018. }
  1019. )
  1020. register_model_info(
  1021. {
  1022. "model_name": "PP-DocBlockLayout",
  1023. "suite": "Det",
  1024. "config_path": osp.join(PDX_CONFIG_DIR, "PP-DocBlockLayout.yaml"),
  1025. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  1026. "supported_dataset_types": ["COCODetDataset"],
  1027. "supported_train_opts": {
  1028. "device": ["cpu", "gpu_nxcx", "xpu", "npu", "mlu"],
  1029. "dy2st": False,
  1030. "amp": ["OFF"],
  1031. },
  1032. }
  1033. )