From e3cfe13b5ce10009cc396d5bc682c83bd210fbb5 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Wed, 6 May 2020 11:01:14 -0400 Subject: [PATCH] fixed some bugs in GUI --- src/video2x_gui.py | 4 ++-- src/video2x_gui.ui | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video2x_gui.py b/src/video2x_gui.py index 6c6dd30..d4ed39b 100755 --- a/src/video2x_gui.py +++ b/src/video2x_gui.py @@ -255,9 +255,9 @@ class Video2XMainWindow(QtWidgets.QMainWindow): self.config['waifu2x_converter_cpp']['path'] = self.waifu2x_converter_cpp_path_line_edit.text() self.config['waifu2x_converter_cpp']['png-compression'] = self.waifu2x_converter_cpp_png_compression_spin_box.value() self.config['waifu2x_converter_cpp']['processor'] = self.waifu2x_converter_cpp_processor_spin_box.value() - self.config['waifu2x_converter_cpp']['model-dir'] = str((pathlib.Path(self.config['waifu2x_converter_cpp']['path']).parent / self.waifu2x_converter_cpp_path_line_edit.currentText()).absolute()) + self.config['waifu2x_converter_cpp']['model-dir'] = str((pathlib.Path(self.config['waifu2x_converter_cpp']['path']).parent / self.waifu2x_converter_cpp_model_combo_box.currentText()).absolute()) self.config['waifu2x_converter_cpp']['mode'] = self.waifu2x_converter_cpp_mode_combo_box.currentText() - self.config['waifu2x_converter_cpp']['disable-gpu'] = self.waifu2x_converter_cpp_disable_gpu_check_box.checkState() + self.config['waifu2x_converter_cpp']['disable-gpu'] = bool(self.waifu2x_converter_cpp_disable_gpu_check_box.checkState()) self.config['waifu2x_converter_cpp']['tta'] = int(self.waifu2x_converter_cpp_tta_check_box.checkState()) def select_input_file(self): diff --git a/src/video2x_gui.ui b/src/video2x_gui.ui index f1fbe41..e9c1fa4 100644 --- a/src/video2x_gui.ui +++ b/src/video2x_gui.ui @@ -30,7 +30,7 @@ - 1 + 0