From 9b20ef89c9ebe9d6c88dffa3e747270d8359ba71 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Fri, 8 May 2020 22:34:53 -0400 Subject: [PATCH] fixed Anime4KCPP execution issues --- src/video2x_gui.py | 7 +++---- src/wrappers/anime4kcpp.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/video2x_gui.py b/src/video2x_gui.py index 0a00dd8..bcda9cc 100755 --- a/src/video2x_gui.py +++ b/src/video2x_gui.py @@ -768,10 +768,9 @@ When reporting an error, please include console output.''' self.threadpool.start(worker) # start progress monitoring - if AVAILABLE_DRIVERS[self.driver_combo_box.currentText()] != 'anime4kcpp': - progress_bar_worker = ProgressMonitorWorkder(self.progress_monitor) - progress_bar_worker.signals.progress.connect(self.set_progress) - self.threadpool.start(progress_bar_worker) + progress_bar_worker = ProgressMonitorWorkder(self.progress_monitor) + progress_bar_worker.signals.progress.connect(self.set_progress) + self.threadpool.start(progress_bar_worker) self.start_button.setEnabled(False) self.stop_button.setEnabled(True) diff --git a/src/wrappers/anime4kcpp.py b/src/wrappers/anime4kcpp.py index 64f9fe2..c753444 100644 --- a/src/wrappers/anime4kcpp.py +++ b/src/wrappers/anime4kcpp.py @@ -45,7 +45,7 @@ class WrapperMain: parser.add_argument('-z', '--zoomFactor', type=float, help='zoom factor for resizing') parser.add_argument('-t', '--threads', type=int, help='Threads count for video processing') parser.add_argument('-f', '--fastMode', action='store_true', help='Faster but maybe low quality') - # parser.add_argument('-v', '--videoMode', action='store_true', help='Video process') + parser.add_argument('-v', '--videoMode', action='store_true', help='Video process') parser.add_argument('-s', '--preview', action='store_true', help='Preview image') parser.add_argument('-b', '--preprocessing', action='store_true', help='Enable pre processing') parser.add_argument('-a', '--postprocessing', action='store_true', help='Enable post processing')