“更新”

This commit is contained in:
p02945817 2022-06-13 22:22:32 +08:00
parent 02b9d629d7
commit 2f38f935ac
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="f51902ab-b95b-4237-ad16-046cdff5b8fb" name="Changes" comment="" />
<list default="true" id="f51902ab-b95b-4237-ad16-046cdff5b8fb" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />

View File

@ -38,18 +38,16 @@ class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.stopEvent = threading.Event()
self.stopEvent.clear()
def exit(self):
self.close()
def press_shibie(self):
try:
if self.model_name == 'PPYOLO-BOT':
self.model_path = './inference_model/ppyolov2_r50vd_dcn_voc'
elif self.model_name == 'RCNN':
self.model_path = '.\\inference_model\\faster_rcnn'
#elif self.model_name == 'YOLOV3':
#self.model_path = '.\\inference_model\\yolov3'
except:
self.model_path = './inference_model/ppyolov2_r50vd_dcn_voc'