From 42eaab90aced59fb4e6d72d9987ef13b95d7240d Mon Sep 17 00:00:00 2001 From: xavi Date: Tue, 30 May 2023 11:55:31 +0200 Subject: [PATCH 1/5] ffmpeg params for good audio sync --- core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.py b/core/utils.py index 228d83b..2d12fa6 100644 --- a/core/utils.py +++ b/core/utils.py @@ -36,7 +36,7 @@ def set_fps(input_path, output_path, fps): def create_video(video_name, fps, output_dir): output_dir = path(output_dir) - os.system(f'ffmpeg -framerate {fps} -i "{output_dir}{sep}%04d.png" -c:v libx264 -pix_fmt yuv420p -y "{output_dir}{sep}output.mp4"') + os.system(f'ffmpeg -framerate {fps} -i "{output_dir}{sep}%04d.png" -c:v libx264 -crf 32 -pix_fmt yuv420p -y "{output_dir}{sep}output.mp4"') def extract_frames(input_path, output_dir): From bfa7ad8f65ae6cf1b40ad78b0b805c6870e1a323 Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Tue, 30 May 2023 18:06:29 +0530 Subject: [PATCH 2/5] add bug report template --- .github/ISSUE_TEMPLATE/bug_report.md | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..2addecc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,39 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Details** +What OS are you using? +- [ ] Linux +- [ ] Linux in WSL +- [ ] Windows +- [ ] Mac + +Are you try to use a GPU? +- [ ] No. I am not using the `---gpu` flag +- [ ] NVIDIA +- [ ] AMD +- [ ] Intel +- [ ] Mac + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Sanity Check** +- [ ] I have the latest code from the github repository +- [ ] I have followed the installation guide From d3c86fb34bdcc9d536981c0e0c9ef8208b58a87a Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Tue, 30 May 2023 18:12:38 +0530 Subject: [PATCH 3/5] Update issue templates --- .github/ISSUE_TEMPLATE/suggestion.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/suggestion.md diff --git a/.github/ISSUE_TEMPLATE/suggestion.md b/.github/ISSUE_TEMPLATE/suggestion.md new file mode 100644 index 0000000..180c384 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/suggestion.md @@ -0,0 +1,11 @@ +--- +name: Suggestion +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Describe your suggestion** +A clear and concise description of what you want to happen. From d1030654cedfac9ded868ab6aee6f590c24ead2f Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Tue, 30 May 2023 18:39:17 +0530 Subject: [PATCH 4/5] add onnxruntime-gpu --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 14bb741..4c40f8b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ psutil==5.9.5 tk==0.1.0 pillow==9.0.1 torch==2.0.1 +onnxruntime-gpu==1.15.0 From 03ac74edac3e0f98263d98d073a14bc714ecca06 Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Tue, 30 May 2023 18:53:31 +0530 Subject: [PATCH 5/5] fix status bar --- run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index adde8d9..8ff8fc5 100644 --- a/run.py +++ b/run.py @@ -127,12 +127,12 @@ def save_file(): def status(string): - if args['source_img']: + if 'cli_mode' in args: print("Status: " + string) else: status_label["text"] = "Status: " + string window.update() - + def start(): print("DON'T WORRY. IT'S NOT STUCK/CRASHED.\n" * 5) @@ -184,6 +184,7 @@ def start(): if __name__ == "__main__": global status_label, window if args['source_img']: + args['cli_mode'] = True start() quit() window = tk.Tk()