「VMAF」:修訂間差異
跳至導覽
跳至搜尋
第22行: | 第22行: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
mkdir -p ~/.pyenv/versions/3.9.7/lib/python3.9/libvmaf/build/tools; wget -O ~/.pyenv/versions/3.9.7/lib/python3.9/libvmaf/build/tools/vmaf https://github.com/Netflix/vmaf/releases/download/v2.3.0/vmaf | mkdir -p ~/.pyenv/versions/3.9.7/lib/python3.9/libvmaf/build/tools; wget -O ~/.pyenv/versions/3.9.7/lib/python3.9/libvmaf/build/tools/vmaf https://github.com/Netflix/vmaf/releases/download/v2.3.0/vmaf; chmod 755 ~/.pyenv/versions/3.9.7/lib/python3.9/libvmaf/build/tools/vmaf | ||
</syntaxhighlight> | </syntaxhighlight> | ||
於 2021年11月5日 (五) 08:46 的修訂
VMAF(英語:Video Multimethod Assessment Fusion)是Netflix所設計出來,希望能自動化評量影片檔案品質的演算法。
安裝
這邊主要是描述Ubuntu 20.04下安裝VMAF的Python套件的方式。
首先我們會先利用pyenv安裝自己的Python環境(避免使用系統的Python),這邊要注意Python 3.10.0可能會遇到一些Python module裝不起來的問題,我們這邊會使用Python 3.9.7。
接著安裝需要的相依套件:
sudo apt install -y build-essential gfortran libblas-dev liblack-dev libsvm-dev meson nasm
然後就可以把Git repository抓下來安裝了:
git clone https://github.com/Netflix/vmaf.git; cd vmaf/python; make; pip install -U -r requirements.txt; python3 setup.py install
最後需要做一些手腳,不想要自己編binary就需要放vmaf
的執行檔進對應的位置,這邊用的是pyenv:
mkdir -p ~/.pyenv/versions/3.9.7/lib/python3.9/libvmaf/build/tools; wget -O ~/.pyenv/versions/3.9.7/lib/python3.9/libvmaf/build/tools/vmaf https://github.com/Netflix/vmaf/releases/download/v2.3.0/vmaf; chmod 755 ~/.pyenv/versions/3.9.7/lib/python3.9/libvmaf/build/tools/vmaf