Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add requirements.txt and .gitignore #49

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
24 changes: 24 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Basic .gitattributes for a python repo.

# Source files
# ============
*.pxd text diff=python eol=lf
*.py text diff=python eol=lf
*.py3 text diff=python eol=lf
*.pyw text diff=python eol=lf
*.pyx text diff=python eol=lf
*.pyz text diff=python eol=lf
*.pyi text diff=python eol=lf

# Binary files
# ============
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary

# Jupyter notebook
*.ipynb text eol=lf
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.idea/
.vscode/
.DS_Store

.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
tmp/
workspace/

*.mp4
*.wmv
*.avi
Binary file removed __pycache__/videobench_functions.cpython-37.pyc
Binary file not shown.
Binary file removed __pycache__/videobench_functions.cpython-39.pyc
Binary file not shown.
Binary file removed __pycache__/videobench_layout.cpython-37.pyc
Binary file not shown.
Binary file removed __pycache__/videobench_layout.cpython-39.pyc
Binary file not shown.
10 changes: 10 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
defusedxml==0.7.1
httpie==3.2.1
markdown-it-py==2.2.0
mdurl==0.1.2
multidict==6.0.4
Pygments==2.15.1
PySide2==5.15.2.1
requests-toolbelt==0.10.1
rich==13.3.4
shiboken2==5.15.2.1
2 changes: 1 addition & 1 deletion videobench.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from multiprocessing import Pool
from videobench_functions import *

tmp_path = "/tmp/videobench/"
tmp_path = tmp_path = os.path.join(os.getcwd(), "tmp/")
#p = Pool(1)

def manage_ref_file(ref_file, loglevel):
Expand Down
2 changes: 1 addition & 1 deletion videobench_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


container_tmp_path ="/home/shared-vmaf/"
tmp_path = "/tmp/videobench/"
tmp_path = os.path.join(os.getcwd(), "tmp/")
docker_cmd = "docker container run --rm -v {}:{} docker-videobench".format(tmp_path, container_tmp_path)

class videoFileInfos(object):
Expand Down
868 changes: 438 additions & 430 deletions videobench_layout.py

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions videobench_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def screen_infos(self):

def Init_values(self):
self.currentPath = os.path.dirname(__file__)
self.python_path = "python3"
self.videoAnalyzerPath = os.path.dirname(os.path.abspath(__file__)) + "/videobench.py"
self.list_obj=[]
self.jsonFilesNames = []
Expand Down Expand Up @@ -593,6 +592,7 @@ def run_qprocess(self):
scale_setting = self.scale_combobox.currentText()
vmaf_model_setting = self.vmaf_model_combobox.currentText()
loglevel = self.loglevel_combobox.currentText()
python_path = self.python_path_combobox.currentText()

self.progressbar_step = 1
self.progressbar.setValue(self.progressbar_step)
Expand Down Expand Up @@ -626,7 +626,7 @@ def run_qprocess(self):

self.te_operation.append("*****************************")
self.te_operation.append("STARTING VIDEO BENCH")
self.te_operation.append(self.python_path + " " + cmd)
self.te_operation.append(python_path + " " + cmd)
self.te_operation.append("*****************************")


Expand All @@ -635,7 +635,7 @@ def run_qprocess(self):
process.readyReadStandardOutput.connect(partial(self.dataReady, process))
process.finished.connect(self.update_ui)
process.setProgram(self.videoAnalyzerPath)
process.start(self.python_path, cmd_list)
process.start(python_path, cmd_list)



Expand Down