register.py 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  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 ...base.register import register_model_info, register_suite_info
  17. from .model import ClsModel
  18. from .runner import ClsRunner
  19. from .config import ClsConfig
  20. REPO_ROOT_PATH = os.environ.get("PADDLE_PDX_PADDLECLAS_PATH")
  21. PDX_CONFIG_DIR = osp.abspath(osp.join(osp.dirname(__file__), "..", "configs"))
  22. register_suite_info(
  23. {
  24. "suite_name": "Cls",
  25. "model": ClsModel,
  26. "runner": ClsRunner,
  27. "config": ClsConfig,
  28. "runner_root_path": REPO_ROOT_PATH,
  29. }
  30. )
  31. ################ Models Using Universal Config ################
  32. register_model_info(
  33. {
  34. "model_name": "SwinTransformer_tiny_patch4_window7_224",
  35. "suite": "Cls",
  36. "config_path": osp.join(
  37. PDX_CONFIG_DIR, "SwinTransformer_tiny_patch4_window7_224.yaml"
  38. ),
  39. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  40. "infer_config": "deploy/configs/inference_cls.yaml",
  41. }
  42. )
  43. register_model_info(
  44. {
  45. "model_name": "SwinTransformer_small_patch4_window7_224",
  46. "suite": "Cls",
  47. "config_path": osp.join(
  48. PDX_CONFIG_DIR, "SwinTransformer_small_patch4_window7_224.yaml"
  49. ),
  50. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  51. "infer_config": "deploy/configs/inference_cls.yaml",
  52. }
  53. )
  54. register_model_info(
  55. {
  56. "model_name": "SwinTransformer_base_patch4_window7_224",
  57. "suite": "Cls",
  58. "config_path": osp.join(
  59. PDX_CONFIG_DIR, "SwinTransformer_base_patch4_window7_224.yaml"
  60. ),
  61. "supported_apis": ["train", "evaluate", "predict", "export"],
  62. }
  63. )
  64. register_model_info(
  65. {
  66. "model_name": "SwinTransformer_base_patch4_window12_384",
  67. "suite": "Cls",
  68. "config_path": osp.join(
  69. PDX_CONFIG_DIR, "SwinTransformer_base_patch4_window12_384.yaml"
  70. ),
  71. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  72. "infer_config": "deploy/configs/inference_cls.yaml",
  73. }
  74. )
  75. register_model_info(
  76. {
  77. "model_name": "SwinTransformer_large_patch4_window7_224",
  78. "suite": "Cls",
  79. "config_path": osp.join(
  80. PDX_CONFIG_DIR, "SwinTransformer_large_patch4_window7_224.yaml"
  81. ),
  82. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  83. "infer_config": "deploy/configs/inference_cls.yaml",
  84. }
  85. )
  86. register_model_info(
  87. {
  88. "model_name": "SwinTransformer_large_patch4_window12_384",
  89. "suite": "Cls",
  90. "config_path": osp.join(
  91. PDX_CONFIG_DIR, "SwinTransformer_large_patch4_window12_384.yaml"
  92. ),
  93. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  94. "infer_config": "deploy/configs/inference_cls.yaml",
  95. }
  96. )
  97. register_model_info(
  98. {
  99. "model_name": "PP-LCNet_x0_25",
  100. "suite": "Cls",
  101. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x0_25.yaml"),
  102. "supported_apis": ["train", "evaluate", "predict", "export"],
  103. }
  104. )
  105. register_model_info(
  106. {
  107. "model_name": "PP-LCNet_x0_35",
  108. "suite": "Cls",
  109. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x0_35.yaml"),
  110. "supported_apis": ["train", "evaluate", "predict", "export"],
  111. }
  112. )
  113. register_model_info(
  114. {
  115. "model_name": "PP-LCNet_x0_5",
  116. "suite": "Cls",
  117. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x0_5.yaml"),
  118. "supported_apis": ["train", "evaluate", "predict", "export"],
  119. }
  120. )
  121. register_model_info(
  122. {
  123. "model_name": "PP-LCNet_x0_75",
  124. "suite": "Cls",
  125. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x0_75.yaml"),
  126. "supported_apis": ["train", "evaluate", "predict", "export"],
  127. }
  128. )
  129. register_model_info(
  130. {
  131. "model_name": "PP-LCNet_x1_0",
  132. "suite": "Cls",
  133. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x1_0.yaml"),
  134. "supported_apis": ["train", "evaluate", "predict", "export"],
  135. }
  136. )
  137. register_model_info(
  138. {
  139. "model_name": "PP-LCNet_x1_5",
  140. "suite": "Cls",
  141. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x1_5.yaml"),
  142. "supported_apis": ["train", "evaluate", "predict", "export"],
  143. }
  144. )
  145. register_model_info(
  146. {
  147. "model_name": "PP-LCNet_x2_0",
  148. "suite": "Cls",
  149. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x2_0.yaml"),
  150. "supported_apis": ["train", "evaluate", "predict", "export"],
  151. }
  152. )
  153. register_model_info(
  154. {
  155. "model_name": "PP-LCNet_x2_5",
  156. "suite": "Cls",
  157. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x2_5.yaml"),
  158. "supported_apis": ["train", "evaluate", "predict", "export"],
  159. }
  160. )
  161. register_model_info(
  162. {
  163. "model_name": "PP-LCNetV2_small",
  164. "suite": "Cls",
  165. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNetV2_small.yaml"),
  166. "supported_apis": ["train", "evaluate", "predict", "export"],
  167. }
  168. )
  169. register_model_info(
  170. {
  171. "model_name": "PP-LCNetV2_base",
  172. "suite": "Cls",
  173. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNetV2_base.yaml"),
  174. "supported_apis": ["train", "evaluate", "predict", "export"],
  175. }
  176. )
  177. register_model_info(
  178. {
  179. "model_name": "PP-LCNetV2_large",
  180. "suite": "Cls",
  181. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNetV2_large.yaml"),
  182. "supported_apis": ["train", "evaluate", "predict", "export"],
  183. }
  184. )
  185. register_model_info(
  186. {
  187. "model_name": "CLIP_vit_base_patch16_224",
  188. "suite": "Cls",
  189. "config_path": osp.join(PDX_CONFIG_DIR, "CLIP_vit_base_patch16_224.yaml"),
  190. "supported_apis": ["train", "evaluate", "predict", "export"],
  191. }
  192. )
  193. register_model_info(
  194. {
  195. "model_name": "CLIP_vit_large_patch14_224",
  196. "suite": "Cls",
  197. "config_path": osp.join(PDX_CONFIG_DIR, "CLIP_vit_large_patch14_224.yaml"),
  198. "supported_apis": ["train", "evaluate", "predict", "export"],
  199. }
  200. )
  201. register_model_info(
  202. {
  203. "model_name": "PP-HGNet_tiny",
  204. "suite": "Cls",
  205. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNet_tiny.yaml"),
  206. "supported_apis": ["train", "evaluate", "predict", "export"],
  207. }
  208. )
  209. register_model_info(
  210. {
  211. "model_name": "PP-HGNet_small",
  212. "suite": "Cls",
  213. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNet_small.yaml"),
  214. "supported_apis": ["train", "evaluate", "predict", "export"],
  215. }
  216. )
  217. register_model_info(
  218. {
  219. "model_name": "PP-HGNet_base",
  220. "suite": "Cls",
  221. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNet_base.yaml"),
  222. "supported_apis": ["train", "evaluate", "predict", "export"],
  223. }
  224. )
  225. register_model_info(
  226. {
  227. "model_name": "PP-HGNetV2-B0",
  228. "suite": "Cls",
  229. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B0.yaml"),
  230. "supported_apis": ["train", "evaluate", "predict", "export"],
  231. }
  232. )
  233. register_model_info(
  234. {
  235. "model_name": "PP-HGNetV2-B1",
  236. "suite": "Cls",
  237. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B1.yaml"),
  238. "supported_apis": ["train", "evaluate", "predict", "export"],
  239. }
  240. )
  241. register_model_info(
  242. {
  243. "model_name": "PP-HGNetV2-B2",
  244. "suite": "Cls",
  245. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B2.yaml"),
  246. "supported_apis": ["train", "evaluate", "predict", "export"],
  247. }
  248. )
  249. register_model_info(
  250. {
  251. "model_name": "PP-HGNetV2-B3",
  252. "suite": "Cls",
  253. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B3.yaml"),
  254. "supported_apis": ["train", "evaluate", "predict", "export"],
  255. }
  256. )
  257. register_model_info(
  258. {
  259. "model_name": "PP-HGNetV2-B4",
  260. "suite": "Cls",
  261. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B4.yaml"),
  262. "supported_apis": ["train", "evaluate", "predict", "export"],
  263. }
  264. )
  265. register_model_info(
  266. {
  267. "model_name": "PP-HGNetV2-B5",
  268. "suite": "Cls",
  269. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B5.yaml"),
  270. "supported_apis": ["train", "evaluate", "predict", "export"],
  271. }
  272. )
  273. register_model_info(
  274. {
  275. "model_name": "PP-HGNetV2-B6",
  276. "suite": "Cls",
  277. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B6.yaml"),
  278. "supported_apis": ["train", "evaluate", "predict", "export"],
  279. }
  280. )
  281. register_model_info(
  282. {
  283. "model_name": "ResNet18",
  284. "suite": "Cls",
  285. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet18.yaml"),
  286. "supported_apis": ["train", "evaluate", "predict", "export"],
  287. }
  288. )
  289. register_model_info(
  290. {
  291. "model_name": "ResNet18_vd",
  292. "suite": "Cls",
  293. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet18_vd.yaml"),
  294. "supported_apis": ["train", "evaluate", "predict", "export"],
  295. }
  296. )
  297. register_model_info(
  298. {
  299. "model_name": "ResNet34",
  300. "suite": "Cls",
  301. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet34.yaml"),
  302. "supported_apis": ["train", "evaluate", "predict", "export"],
  303. }
  304. )
  305. register_model_info(
  306. {
  307. "model_name": "ResNet34_vd",
  308. "suite": "Cls",
  309. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet34_vd.yaml"),
  310. "supported_apis": ["train", "evaluate", "predict", "export"],
  311. }
  312. )
  313. register_model_info(
  314. {
  315. "model_name": "ResNet50",
  316. "suite": "Cls",
  317. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet50.yaml"),
  318. "supported_apis": ["train", "evaluate", "predict", "export"],
  319. }
  320. )
  321. register_model_info(
  322. {
  323. "model_name": "ResNet50_vd",
  324. "suite": "Cls",
  325. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet50_vd.yaml"),
  326. "supported_apis": ["train", "evaluate", "predict", "export"],
  327. }
  328. )
  329. register_model_info(
  330. {
  331. "model_name": "ResNet101",
  332. "suite": "Cls",
  333. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet101.yaml"),
  334. "supported_apis": ["train", "evaluate", "predict", "export"],
  335. }
  336. )
  337. register_model_info(
  338. {
  339. "model_name": "ResNet101_vd",
  340. "suite": "Cls",
  341. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet101_vd.yaml"),
  342. "supported_apis": ["train", "evaluate", "predict", "export"],
  343. }
  344. )
  345. register_model_info(
  346. {
  347. "model_name": "ResNet152",
  348. "suite": "Cls",
  349. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet152.yaml"),
  350. "supported_apis": ["train", "evaluate", "predict", "export"],
  351. }
  352. )
  353. register_model_info(
  354. {
  355. "model_name": "ResNet152_vd",
  356. "suite": "Cls",
  357. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet152_vd.yaml"),
  358. "supported_apis": ["train", "evaluate", "predict", "export"],
  359. }
  360. )
  361. register_model_info(
  362. {
  363. "model_name": "ResNet200_vd",
  364. "suite": "Cls",
  365. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet200_vd.yaml"),
  366. "supported_apis": ["train", "evaluate", "predict", "export"],
  367. }
  368. )
  369. register_model_info(
  370. {
  371. "model_name": "MobileNetV1_x0_25",
  372. "suite": "Cls",
  373. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV1_x0_25.yaml"),
  374. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  375. "infer_config": "deploy/configs/inference_cls.yaml",
  376. }
  377. )
  378. register_model_info(
  379. {
  380. "model_name": "MobileNetV1_x0_5",
  381. "suite": "Cls",
  382. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV1_x0_5.yaml"),
  383. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  384. "infer_config": "deploy/configs/inference_cls.yaml",
  385. }
  386. )
  387. register_model_info(
  388. {
  389. "model_name": "MobileNetV1_x0_75",
  390. "suite": "Cls",
  391. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV1_x0_75.yaml"),
  392. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  393. "infer_config": "deploy/configs/inference_cls.yaml",
  394. }
  395. )
  396. register_model_info(
  397. {
  398. "model_name": "MobileNetV1_x1_0",
  399. "suite": "Cls",
  400. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV1_x1_0.yaml"),
  401. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  402. "infer_config": "deploy/configs/inference_cls.yaml",
  403. }
  404. )
  405. register_model_info(
  406. {
  407. "model_name": "MobileNetV2_x0_25",
  408. "suite": "Cls",
  409. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV2_x0_25.yaml"),
  410. "supported_apis": ["train", "evaluate", "predict", "export"],
  411. }
  412. )
  413. register_model_info(
  414. {
  415. "model_name": "MobileNetV2_x0_5",
  416. "suite": "Cls",
  417. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV2_x0_5.yaml"),
  418. "supported_apis": ["train", "evaluate", "predict", "export"],
  419. }
  420. )
  421. register_model_info(
  422. {
  423. "model_name": "MobileNetV2_x1_0",
  424. "suite": "Cls",
  425. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV2_x1_0.yaml"),
  426. "supported_apis": ["train", "evaluate", "predict", "export"],
  427. }
  428. )
  429. register_model_info(
  430. {
  431. "model_name": "MobileNetV2_x1_5",
  432. "suite": "Cls",
  433. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV2_x1_5.yaml"),
  434. "supported_apis": ["train", "evaluate", "predict", "export"],
  435. }
  436. )
  437. register_model_info(
  438. {
  439. "model_name": "MobileNetV2_x2_0",
  440. "suite": "Cls",
  441. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV2_x2_0.yaml"),
  442. "supported_apis": ["train", "evaluate", "predict", "export"],
  443. }
  444. )
  445. register_model_info(
  446. {
  447. "model_name": "MobileNetV3_large_x0_35",
  448. "suite": "Cls",
  449. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_large_x0_35.yaml"),
  450. "supported_apis": ["train", "evaluate", "predict", "export"],
  451. }
  452. )
  453. register_model_info(
  454. {
  455. "model_name": "MobileNetV3_large_x0_5",
  456. "suite": "Cls",
  457. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_large_x0_5.yaml"),
  458. "supported_apis": ["train", "evaluate", "predict", "export"],
  459. }
  460. )
  461. register_model_info(
  462. {
  463. "model_name": "MobileNetV3_large_x0_75",
  464. "suite": "Cls",
  465. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_large_x0_75.yaml"),
  466. "supported_apis": ["train", "evaluate", "predict", "export"],
  467. }
  468. )
  469. register_model_info(
  470. {
  471. "model_name": "MobileNetV3_large_x1_0",
  472. "suite": "Cls",
  473. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_large_x1_0.yaml"),
  474. "supported_apis": ["train", "evaluate", "predict", "export"],
  475. }
  476. )
  477. register_model_info(
  478. {
  479. "model_name": "MobileNetV3_large_x1_25",
  480. "suite": "Cls",
  481. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_large_x1_25.yaml"),
  482. "supported_apis": ["train", "evaluate", "predict", "export"],
  483. }
  484. )
  485. register_model_info(
  486. {
  487. "model_name": "MobileNetV3_small_x0_35",
  488. "suite": "Cls",
  489. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_small_x0_35.yaml"),
  490. "supported_apis": ["train", "evaluate", "predict", "export"],
  491. }
  492. )
  493. register_model_info(
  494. {
  495. "model_name": "MobileNetV3_small_x0_5",
  496. "suite": "Cls",
  497. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_small_x0_5.yaml"),
  498. "supported_apis": ["train", "evaluate", "predict", "export"],
  499. }
  500. )
  501. register_model_info(
  502. {
  503. "model_name": "MobileNetV3_small_x0_75",
  504. "suite": "Cls",
  505. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_small_x0_75.yaml"),
  506. "supported_apis": ["train", "evaluate", "predict", "export"],
  507. }
  508. )
  509. register_model_info(
  510. {
  511. "model_name": "MobileNetV3_small_x1_0",
  512. "suite": "Cls",
  513. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_small_x1_0.yaml"),
  514. "supported_apis": ["train", "evaluate", "predict", "export"],
  515. }
  516. )
  517. register_model_info(
  518. {
  519. "model_name": "MobileNetV3_small_x1_25",
  520. "suite": "Cls",
  521. "config_path": osp.join(PDX_CONFIG_DIR, "MobileNetV3_small_x1_25.yaml"),
  522. "supported_apis": ["train", "evaluate", "predict", "export"],
  523. }
  524. )
  525. register_model_info(
  526. {
  527. "model_name": "ConvNeXt_tiny",
  528. "suite": "Cls",
  529. "config_path": osp.join(PDX_CONFIG_DIR, "ConvNeXt_tiny.yaml"),
  530. "supported_apis": ["train", "evaluate", "predict", "export"],
  531. }
  532. )
  533. register_model_info(
  534. {
  535. "model_name": "ConvNeXt_small",
  536. "suite": "Cls",
  537. "config_path": osp.join(PDX_CONFIG_DIR, "ConvNeXt_small.yaml"),
  538. "supported_apis": ["train", "evaluate", "predict", "export"],
  539. }
  540. )
  541. register_model_info(
  542. {
  543. "model_name": "ConvNeXt_base_224",
  544. "suite": "Cls",
  545. "config_path": osp.join(PDX_CONFIG_DIR, "ConvNeXt_base_224.yaml"),
  546. "supported_apis": ["train", "evaluate", "predict", "export"],
  547. }
  548. )
  549. register_model_info(
  550. {
  551. "model_name": "ConvNeXt_base_384",
  552. "suite": "Cls",
  553. "config_path": osp.join(PDX_CONFIG_DIR, "ConvNeXt_base_384.yaml"),
  554. "supported_apis": ["train", "evaluate", "predict", "export"],
  555. }
  556. )
  557. register_model_info(
  558. {
  559. "model_name": "ConvNeXt_large_224",
  560. "suite": "Cls",
  561. "config_path": osp.join(PDX_CONFIG_DIR, "ConvNeXt_large_224.yaml"),
  562. "supported_apis": ["train", "evaluate", "predict", "export"],
  563. }
  564. )
  565. register_model_info(
  566. {
  567. "model_name": "ConvNeXt_large_384",
  568. "suite": "Cls",
  569. "config_path": osp.join(PDX_CONFIG_DIR, "ConvNeXt_large_384.yaml"),
  570. "supported_apis": ["train", "evaluate", "predict", "export"],
  571. }
  572. )
  573. register_model_info(
  574. {
  575. "model_name": "PP-LCNet_x1_0_ML",
  576. "suite": "Cls",
  577. "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x1_0_ML.yaml"),
  578. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  579. "infer_config": "deploy/configs/inference_cls.yaml",
  580. }
  581. )
  582. register_model_info(
  583. {
  584. "model_name": "ResNet50_ML",
  585. "suite": "Cls",
  586. "config_path": osp.join(PDX_CONFIG_DIR, "ResNet50_ML.yaml"),
  587. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  588. "infer_config": "deploy/configs/inference_cls.yaml",
  589. }
  590. )
  591. register_model_info(
  592. {
  593. "model_name": "PP-HGNetV2-B0_ML",
  594. "suite": "Cls",
  595. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B0_ML.yaml"),
  596. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  597. "infer_config": "deploy/configs/inference_cls.yaml",
  598. }
  599. )
  600. register_model_info(
  601. {
  602. "model_name": "PP-HGNetV2-B4_ML",
  603. "suite": "Cls",
  604. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B4_ML.yaml"),
  605. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  606. "infer_config": "deploy/configs/inference_cls.yaml",
  607. }
  608. )
  609. register_model_info(
  610. {
  611. "model_name": "PP-HGNetV2-B6_ML",
  612. "suite": "Cls",
  613. "config_path": osp.join(PDX_CONFIG_DIR, "PP-HGNetV2-B6_ML.yaml"),
  614. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  615. "infer_config": "deploy/configs/inference_cls.yaml",
  616. }
  617. )
  618. register_model_info(
  619. {
  620. "model_name": "CLIP_vit_base_patch16_448_ML",
  621. "suite": "Cls",
  622. "config_path": osp.join(PDX_CONFIG_DIR, "CLIP_vit_base_patch16_448_ML.yaml"),
  623. "supported_apis": ["train", "evaluate", "predict", "export", "infer"],
  624. "infer_config": "deploy/configs/inference_cls.yaml",
  625. }
  626. )