mainwindow.ui 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>880</width>
  10. <height>640</height>
  11. </rect>
  12. </property>
  13. <property name="minimumSize">
  14. <size>
  15. <width>880</width>
  16. <height>640</height>
  17. </size>
  18. </property>
  19. <property name="maximumSize">
  20. <size>
  21. <width>880</width>
  22. <height>640</height>
  23. </size>
  24. </property>
  25. <property name="contextMenuPolicy">
  26. <enum>Qt::NoContextMenu</enum>
  27. </property>
  28. <property name="windowTitle">
  29. <string>PaddleX可视化推理界面</string>
  30. </property>
  31. <widget class="QWidget" name="centralWidget">
  32. <widget class="QWidget" name="verticalLayoutWidget_4">
  33. <property name="geometry">
  34. <rect>
  35. <x>40</x>
  36. <y>10</y>
  37. <width>794</width>
  38. <height>644</height>
  39. </rect>
  40. </property>
  41. <layout class="QVBoxLayout" name="verticalLayout_7">
  42. <item>
  43. <layout class="QVBoxLayout" name="verticalLayout_6">
  44. <item>
  45. <widget class="Line" name="line_2">
  46. <property name="orientation">
  47. <enum>Qt::Horizontal</enum>
  48. </property>
  49. </widget>
  50. </item>
  51. <item>
  52. <layout class="QHBoxLayout" name="horizontalLayout_10">
  53. <item>
  54. <layout class="QVBoxLayout" name="verticalLayout_4">
  55. <item>
  56. <spacer name="verticalSpacer_3">
  57. <property name="orientation">
  58. <enum>Qt::Vertical</enum>
  59. </property>
  60. <property name="sizeHint" stdset="0">
  61. <size>
  62. <width>20</width>
  63. <height>40</height>
  64. </size>
  65. </property>
  66. </spacer>
  67. </item>
  68. <item>
  69. <layout class="QHBoxLayout" name="horizontalLayout_6">
  70. <item>
  71. <widget class="QLabel" name="label_3">
  72. <property name="maximumSize">
  73. <size>
  74. <width>100</width>
  75. <height>40</height>
  76. </size>
  77. </property>
  78. <property name="lineWidth">
  79. <number>1</number>
  80. </property>
  81. <property name="text">
  82. <string>实时推理耗时</string>
  83. </property>
  84. </widget>
  85. </item>
  86. </layout>
  87. </item>
  88. <item>
  89. <layout class="QHBoxLayout" name="horizontalLayout_7">
  90. <item>
  91. <spacer name="horizontalSpacer_38">
  92. <property name="orientation">
  93. <enum>Qt::Horizontal</enum>
  94. </property>
  95. <property name="sizeType">
  96. <enum>QSizePolicy::Maximum</enum>
  97. </property>
  98. <property name="sizeHint" stdset="0">
  99. <size>
  100. <width>25</width>
  101. <height>20</height>
  102. </size>
  103. </property>
  104. </spacer>
  105. </item>
  106. <item>
  107. <widget class="QLabel" name="labelCostTime">
  108. <property name="maximumSize">
  109. <size>
  110. <width>100</width>
  111. <height>40</height>
  112. </size>
  113. </property>
  114. <property name="text">
  115. <string>0.00</string>
  116. </property>
  117. </widget>
  118. </item>
  119. <item>
  120. <widget class="QLabel" name="label_5">
  121. <property name="maximumSize">
  122. <size>
  123. <width>40</width>
  124. <height>40</height>
  125. </size>
  126. </property>
  127. <property name="text">
  128. <string>ms</string>
  129. </property>
  130. </widget>
  131. </item>
  132. <item>
  133. <spacer name="horizontalSpacer_39">
  134. <property name="orientation">
  135. <enum>Qt::Horizontal</enum>
  136. </property>
  137. <property name="sizeType">
  138. <enum>QSizePolicy::Maximum</enum>
  139. </property>
  140. <property name="sizeHint" stdset="0">
  141. <size>
  142. <width>5</width>
  143. <height>20</height>
  144. </size>
  145. </property>
  146. </spacer>
  147. </item>
  148. </layout>
  149. </item>
  150. </layout>
  151. </item>
  152. <item>
  153. <layout class="QHBoxLayout" name="horizontalLayout_4">
  154. <item>
  155. <widget class="Line" name="line_8">
  156. <property name="orientation">
  157. <enum>Qt::Vertical</enum>
  158. </property>
  159. </widget>
  160. </item>
  161. <item>
  162. <spacer name="horizontalSpacer_5">
  163. <property name="orientation">
  164. <enum>Qt::Horizontal</enum>
  165. </property>
  166. <property name="sizeHint" stdset="0">
  167. <size>
  168. <width>40</width>
  169. <height>20</height>
  170. </size>
  171. </property>
  172. </spacer>
  173. </item>
  174. <item>
  175. <layout class="QVBoxLayout" name="verticalLayout_2">
  176. <item>
  177. <widget class="QPushButton" name="btnInit">
  178. <property name="text">
  179. <string>初始化模型</string>
  180. </property>
  181. </widget>
  182. </item>
  183. <item>
  184. <widget class="Line" name="line_9">
  185. <property name="orientation">
  186. <enum>Qt::Horizontal</enum>
  187. </property>
  188. </widget>
  189. </item>
  190. <item>
  191. <widget class="QPushButton" name="btnDistory">
  192. <property name="text">
  193. <string>销毁模型</string>
  194. </property>
  195. </widget>
  196. </item>
  197. </layout>
  198. </item>
  199. <item>
  200. <spacer name="horizontalSpacer_3">
  201. <property name="orientation">
  202. <enum>Qt::Horizontal</enum>
  203. </property>
  204. <property name="sizeHint" stdset="0">
  205. <size>
  206. <width>40</width>
  207. <height>20</height>
  208. </size>
  209. </property>
  210. </spacer>
  211. </item>
  212. <item>
  213. <layout class="QHBoxLayout" name="horizontalLayout_3">
  214. <item>
  215. <widget class="Line" name="line_5">
  216. <property name="orientation">
  217. <enum>Qt::Vertical</enum>
  218. </property>
  219. </widget>
  220. </item>
  221. <item>
  222. <widget class="QPushButton" name="btnLoadImg">
  223. <property name="text">
  224. <string>加载图片</string>
  225. </property>
  226. </widget>
  227. </item>
  228. <item>
  229. <spacer name="horizontalSpacer_2">
  230. <property name="orientation">
  231. <enum>Qt::Horizontal</enum>
  232. </property>
  233. <property name="sizeHint" stdset="0">
  234. <size>
  235. <width>40</width>
  236. <height>20</height>
  237. </size>
  238. </property>
  239. </spacer>
  240. </item>
  241. <item>
  242. <widget class="QPushButton" name="btnLoadImgs">
  243. <property name="text">
  244. <string>加载文件夹</string>
  245. </property>
  246. </widget>
  247. </item>
  248. <item>
  249. <spacer name="horizontalSpacer_19">
  250. <property name="orientation">
  251. <enum>Qt::Horizontal</enum>
  252. </property>
  253. <property name="sizeHint" stdset="0">
  254. <size>
  255. <width>40</width>
  256. <height>20</height>
  257. </size>
  258. </property>
  259. </spacer>
  260. </item>
  261. <item>
  262. <widget class="QPushButton" name="btnLoadVideo">
  263. <property name="text">
  264. <string>加载视频流</string>
  265. </property>
  266. </widget>
  267. </item>
  268. <item>
  269. <widget class="Line" name="line_6">
  270. <property name="orientation">
  271. <enum>Qt::Vertical</enum>
  272. </property>
  273. </widget>
  274. </item>
  275. </layout>
  276. </item>
  277. <item>
  278. <spacer name="horizontalSpacer_4">
  279. <property name="orientation">
  280. <enum>Qt::Horizontal</enum>
  281. </property>
  282. <property name="sizeHint" stdset="0">
  283. <size>
  284. <width>40</width>
  285. <height>20</height>
  286. </size>
  287. </property>
  288. </spacer>
  289. </item>
  290. <item>
  291. <layout class="QVBoxLayout" name="verticalLayout">
  292. <item>
  293. <widget class="QPushButton" name="btnInfer">
  294. <property name="text">
  295. <string>模型推理</string>
  296. </property>
  297. </widget>
  298. </item>
  299. <item>
  300. <widget class="Line" name="line_10">
  301. <property name="orientation">
  302. <enum>Qt::Horizontal</enum>
  303. </property>
  304. </widget>
  305. </item>
  306. <item>
  307. <widget class="QPushButton" name="btnStop">
  308. <property name="text">
  309. <string>推理终止</string>
  310. </property>
  311. </widget>
  312. </item>
  313. </layout>
  314. </item>
  315. <item>
  316. <spacer name="horizontalSpacer_6">
  317. <property name="orientation">
  318. <enum>Qt::Horizontal</enum>
  319. </property>
  320. <property name="sizeHint" stdset="0">
  321. <size>
  322. <width>40</width>
  323. <height>20</height>
  324. </size>
  325. </property>
  326. </spacer>
  327. </item>
  328. <item>
  329. <widget class="Line" name="line_7">
  330. <property name="orientation">
  331. <enum>Qt::Vertical</enum>
  332. </property>
  333. </widget>
  334. </item>
  335. <item>
  336. <layout class="QVBoxLayout" name="verticalLayout_5">
  337. <item>
  338. <spacer name="verticalSpacer_4">
  339. <property name="orientation">
  340. <enum>Qt::Vertical</enum>
  341. </property>
  342. <property name="sizeHint" stdset="0">
  343. <size>
  344. <width>20</width>
  345. <height>40</height>
  346. </size>
  347. </property>
  348. </spacer>
  349. </item>
  350. <item>
  351. <layout class="QHBoxLayout" name="horizontalLayout_8">
  352. <item>
  353. <widget class="QLabel" name="label_6">
  354. <property name="maximumSize">
  355. <size>
  356. <width>100</width>
  357. <height>40</height>
  358. </size>
  359. </property>
  360. <property name="text">
  361. <string>连续推理间隔</string>
  362. </property>
  363. </widget>
  364. </item>
  365. </layout>
  366. </item>
  367. <item>
  368. <layout class="QHBoxLayout" name="horizontalLayout_9">
  369. <item>
  370. <spacer name="horizontalSpacer_40">
  371. <property name="orientation">
  372. <enum>Qt::Horizontal</enum>
  373. </property>
  374. <property name="sizeType">
  375. <enum>QSizePolicy::Maximum</enum>
  376. </property>
  377. <property name="sizeHint" stdset="0">
  378. <size>
  379. <width>20</width>
  380. <height>20</height>
  381. </size>
  382. </property>
  383. </spacer>
  384. </item>
  385. <item>
  386. <widget class="QSpinBox" name="sBoxDelay">
  387. <property name="minimumSize">
  388. <size>
  389. <width>42</width>
  390. <height>0</height>
  391. </size>
  392. </property>
  393. <property name="maximumSize">
  394. <size>
  395. <width>50</width>
  396. <height>20</height>
  397. </size>
  398. </property>
  399. <property name="minimum">
  400. <number>50</number>
  401. </property>
  402. <property name="maximum">
  403. <number>1000</number>
  404. </property>
  405. <property name="singleStep">
  406. <number>50</number>
  407. </property>
  408. </widget>
  409. </item>
  410. <item>
  411. <widget class="QLabel" name="label_7">
  412. <property name="maximumSize">
  413. <size>
  414. <width>20</width>
  415. <height>20</height>
  416. </size>
  417. </property>
  418. <property name="text">
  419. <string>ms</string>
  420. </property>
  421. </widget>
  422. </item>
  423. <item>
  424. <spacer name="horizontalSpacer_41">
  425. <property name="orientation">
  426. <enum>Qt::Horizontal</enum>
  427. </property>
  428. <property name="sizeType">
  429. <enum>QSizePolicy::Maximum</enum>
  430. </property>
  431. <property name="sizeHint" stdset="0">
  432. <size>
  433. <width>10</width>
  434. <height>20</height>
  435. </size>
  436. </property>
  437. </spacer>
  438. </item>
  439. </layout>
  440. </item>
  441. </layout>
  442. </item>
  443. </layout>
  444. </item>
  445. </layout>
  446. </item>
  447. <item>
  448. <widget class="Line" name="line_4">
  449. <property name="orientation">
  450. <enum>Qt::Horizontal</enum>
  451. </property>
  452. </widget>
  453. </item>
  454. <item>
  455. <layout class="QHBoxLayout" name="horizontalLayout_11">
  456. <item>
  457. <spacer name="horizontalSpacer_9">
  458. <property name="orientation">
  459. <enum>Qt::Horizontal</enum>
  460. </property>
  461. <property name="sizeHint" stdset="0">
  462. <size>
  463. <width>40</width>
  464. <height>20</height>
  465. </size>
  466. </property>
  467. </spacer>
  468. </item>
  469. <item>
  470. <layout class="QHBoxLayout" name="horizontalLayout_5">
  471. <item>
  472. <widget class="QLabel" name="label_10">
  473. <property name="text">
  474. <string>运行环境:</string>
  475. </property>
  476. </widget>
  477. </item>
  478. <item>
  479. <widget class="QComboBox" name="cBoxEnv">
  480. <item>
  481. <property name="text">
  482. <string>CPU</string>
  483. </property>
  484. </item>
  485. <item>
  486. <property name="text">
  487. <string>GPU</string>
  488. </property>
  489. </item>
  490. </widget>
  491. </item>
  492. <item>
  493. <spacer name="horizontalSpacer_12">
  494. <property name="orientation">
  495. <enum>Qt::Horizontal</enum>
  496. </property>
  497. <property name="sizeHint" stdset="0">
  498. <size>
  499. <width>40</width>
  500. <height>20</height>
  501. </size>
  502. </property>
  503. </spacer>
  504. </item>
  505. <item>
  506. <widget class="Line" name="line_11">
  507. <property name="orientation">
  508. <enum>Qt::Vertical</enum>
  509. </property>
  510. </widget>
  511. </item>
  512. <item>
  513. <widget class="QLabel" name="label_9">
  514. <property name="text">
  515. <string>模型类型:</string>
  516. </property>
  517. </widget>
  518. </item>
  519. <item>
  520. <widget class="QComboBox" name="cBoxKind">
  521. <item>
  522. <property name="text">
  523. <string>det</string>
  524. </property>
  525. </item>
  526. <item>
  527. <property name="text">
  528. <string>seg</string>
  529. </property>
  530. </item>
  531. <item>
  532. <property name="text">
  533. <string>clas</string>
  534. </property>
  535. </item>
  536. <item>
  537. <property name="text">
  538. <string>mask</string>
  539. </property>
  540. </item>
  541. <item>
  542. <property name="text">
  543. <string>paddlex</string>
  544. </property>
  545. </item>
  546. </widget>
  547. </item>
  548. <item>
  549. <widget class="Line" name="line_12">
  550. <property name="orientation">
  551. <enum>Qt::Vertical</enum>
  552. </property>
  553. </widget>
  554. </item>
  555. <item>
  556. <spacer name="horizontalSpacer_8">
  557. <property name="orientation">
  558. <enum>Qt::Horizontal</enum>
  559. </property>
  560. <property name="sizeHint" stdset="0">
  561. <size>
  562. <width>40</width>
  563. <height>20</height>
  564. </size>
  565. </property>
  566. </spacer>
  567. </item>
  568. <item>
  569. <widget class="QLabel" name="label_8">
  570. <property name="maximumSize">
  571. <size>
  572. <width>55</width>
  573. <height>55</height>
  574. </size>
  575. </property>
  576. <property name="text">
  577. <string>检测阈值:</string>
  578. </property>
  579. </widget>
  580. </item>
  581. <item>
  582. <widget class="QDoubleSpinBox" name="sBoxThreshold">
  583. <property name="maximumSize">
  584. <size>
  585. <width>50</width>
  586. <height>40</height>
  587. </size>
  588. </property>
  589. <property name="decimals">
  590. <number>1</number>
  591. </property>
  592. <property name="maximum">
  593. <double>0.900000000000000</double>
  594. </property>
  595. <property name="singleStep">
  596. <double>0.100000000000000</double>
  597. </property>
  598. <property name="value">
  599. <double>0.500000000000000</double>
  600. </property>
  601. </widget>
  602. </item>
  603. <item>
  604. <spacer name="horizontalSpacer_7">
  605. <property name="orientation">
  606. <enum>Qt::Horizontal</enum>
  607. </property>
  608. <property name="sizeHint" stdset="0">
  609. <size>
  610. <width>40</width>
  611. <height>20</height>
  612. </size>
  613. </property>
  614. </spacer>
  615. </item>
  616. </layout>
  617. </item>
  618. <item>
  619. <spacer name="horizontalSpacer_10">
  620. <property name="orientation">
  621. <enum>Qt::Horizontal</enum>
  622. </property>
  623. <property name="sizeHint" stdset="0">
  624. <size>
  625. <width>40</width>
  626. <height>20</height>
  627. </size>
  628. </property>
  629. </spacer>
  630. </item>
  631. </layout>
  632. </item>
  633. </layout>
  634. </item>
  635. <item>
  636. <widget class="Line" name="line_3">
  637. <property name="orientation">
  638. <enum>Qt::Horizontal</enum>
  639. </property>
  640. </widget>
  641. </item>
  642. <item>
  643. <layout class="QHBoxLayout" name="horizontalLayout">
  644. <item>
  645. <spacer name="horizontalSpacer_14">
  646. <property name="orientation">
  647. <enum>Qt::Horizontal</enum>
  648. </property>
  649. <property name="sizeHint" stdset="0">
  650. <size>
  651. <width>40</width>
  652. <height>20</height>
  653. </size>
  654. </property>
  655. </spacer>
  656. </item>
  657. <item>
  658. <widget class="QLabel" name="label">
  659. <property name="text">
  660. <string>GPU_id</string>
  661. </property>
  662. </widget>
  663. </item>
  664. <item>
  665. <widget class="QLineEdit" name="lEditGpuId">
  666. <property name="maximumSize">
  667. <size>
  668. <width>30</width>
  669. <height>16777215</height>
  670. </size>
  671. </property>
  672. <property name="text">
  673. <string>0</string>
  674. </property>
  675. <property name="maxLength">
  676. <number>30</number>
  677. </property>
  678. </widget>
  679. </item>
  680. <item>
  681. <spacer name="horizontalSpacer_15">
  682. <property name="orientation">
  683. <enum>Qt::Horizontal</enum>
  684. </property>
  685. <property name="sizeHint" stdset="0">
  686. <size>
  687. <width>40</width>
  688. <height>20</height>
  689. </size>
  690. </property>
  691. </spacer>
  692. </item>
  693. </layout>
  694. </item>
  695. <item>
  696. <widget class="Line" name="line">
  697. <property name="orientation">
  698. <enum>Qt::Horizontal</enum>
  699. </property>
  700. </widget>
  701. </item>
  702. <item>
  703. <spacer name="verticalSpacer">
  704. <property name="orientation">
  705. <enum>Qt::Vertical</enum>
  706. </property>
  707. <property name="sizeHint" stdset="0">
  708. <size>
  709. <width>20</width>
  710. <height>40</height>
  711. </size>
  712. </property>
  713. </spacer>
  714. </item>
  715. <item>
  716. <spacer name="horizontalSpacer_11">
  717. <property name="orientation">
  718. <enum>Qt::Horizontal</enum>
  719. </property>
  720. <property name="sizeHint" stdset="0">
  721. <size>
  722. <width>40</width>
  723. <height>20</height>
  724. </size>
  725. </property>
  726. </spacer>
  727. </item>
  728. <item>
  729. <layout class="QHBoxLayout" name="horizontalLayout_2">
  730. <item>
  731. <widget class="QLabel" name="labelImage1">
  732. <property name="minimumSize">
  733. <size>
  734. <width>380</width>
  735. <height>380</height>
  736. </size>
  737. </property>
  738. <property name="maximumSize">
  739. <size>
  740. <width>380</width>
  741. <height>380</height>
  742. </size>
  743. </property>
  744. <property name="autoFillBackground">
  745. <bool>true</bool>
  746. </property>
  747. <property name="text">
  748. <string>ImageLabel</string>
  749. </property>
  750. <property name="alignment">
  751. <set>Qt::AlignCenter</set>
  752. </property>
  753. </widget>
  754. </item>
  755. <item>
  756. <spacer name="horizontalSpacer">
  757. <property name="orientation">
  758. <enum>Qt::Horizontal</enum>
  759. </property>
  760. <property name="sizeHint" stdset="0">
  761. <size>
  762. <width>40</width>
  763. <height>20</height>
  764. </size>
  765. </property>
  766. </spacer>
  767. </item>
  768. <item>
  769. <widget class="QLabel" name="labelImage2">
  770. <property name="minimumSize">
  771. <size>
  772. <width>380</width>
  773. <height>380</height>
  774. </size>
  775. </property>
  776. <property name="maximumSize">
  777. <size>
  778. <width>380</width>
  779. <height>380</height>
  780. </size>
  781. </property>
  782. <property name="autoFillBackground">
  783. <bool>true</bool>
  784. </property>
  785. <property name="text">
  786. <string>ImageLabel</string>
  787. </property>
  788. <property name="alignment">
  789. <set>Qt::AlignCenter</set>
  790. </property>
  791. </widget>
  792. </item>
  793. </layout>
  794. </item>
  795. <item>
  796. <spacer name="horizontalSpacer_13">
  797. <property name="orientation">
  798. <enum>Qt::Horizontal</enum>
  799. </property>
  800. <property name="sizeHint" stdset="0">
  801. <size>
  802. <width>40</width>
  803. <height>20</height>
  804. </size>
  805. </property>
  806. </spacer>
  807. </item>
  808. <item>
  809. <spacer name="verticalSpacer_2">
  810. <property name="orientation">
  811. <enum>Qt::Vertical</enum>
  812. </property>
  813. <property name="sizeHint" stdset="0">
  814. <size>
  815. <width>20</width>
  816. <height>40</height>
  817. </size>
  818. </property>
  819. </spacer>
  820. </item>
  821. </layout>
  822. </widget>
  823. </widget>
  824. <widget class="QStatusBar" name="statusBar"/>
  825. </widget>
  826. <layoutdefault spacing="6" margin="11"/>
  827. <resources/>
  828. <connections/>
  829. </ui>