From b155330bab75034516ebc13e93297d00e8ab9ccb Mon Sep 17 00:00:00 2001 From: cgsdfc Date: Sun, 4 Sep 2022 14:04:14 +0800 Subject: [PATCH] fix tmp dir --- Application.py | 3 ++- OutlierDetect.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Application.py b/Application.py index 8516dec..0abaea2 100644 --- a/Application.py +++ b/Application.py @@ -4,7 +4,7 @@ from UserInterface import * from PyQt5.QtWidgets import * -from PyQt5.QtCore import QThread, pyqtSignal, pyqtSlot +from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import ( QMessageBox, QFileDialog, @@ -35,6 +35,7 @@ def __init__(self): self.ui.leNumTest.setValidator(QIntValidator(0, 500, self)) self.ui.leOutlierRate.setValidator(QDoubleValidator(0.1, 0.5, 2, self)) self.ui.lbProgress.setText('就绪') + self.ui.lbImage.setScaledContents(True) self.ui.leNumTrain.setText('200') self.ui.leNumTrain.editingFinished.emit() diff --git a/OutlierDetect.py b/OutlierDetect.py index b30dca8..0524b45 100644 --- a/OutlierDetect.py +++ b/OutlierDetect.py @@ -30,7 +30,7 @@ PROJ_DIR = P(__file__).parent TMP_DIR = PROJ_DIR.joinpath("tmp") -KEY_MODEL_NAME = "model_name" +TMP_DIR.mkdir(parents=True, exist_ok=True) @dataclass