register.py 32 KB

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