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 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. 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): diff --git a/requirements.txt b/requirements.txt index a38b874..4eeae19 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ psutil==5.9.5 tk==0.1.0 pillow==9.5.0 torch==2.0.1 -onnxruntime-gpu==1.15.0 \ No newline at end of file +onnxruntime-gpu==1.15.0 diff --git a/run.py b/run.py index 953805e..759cee7 100644 --- a/run.py +++ b/run.py @@ -158,12 +158,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) @@ -219,6 +219,7 @@ if __name__ == "__main__": limit_resources() if args['source_img']: + args['cli_mode'] = True start() quit() window = tk.Tk()