本文整理汇总了Python中vmaf.config.VmafConfig.root_path方法的典型用法代码示例。如果您正苦于以下问题:Python VmafConfig.root_path方法的具体用法?Python VmafConfig.root_path怎么用?Python VmafConfig.root_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vmaf.config.VmafConfig
的用法示例。
在下文中一共展示了VmafConfig.root_path方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_run_psnr
# 需要导入模块: from vmaf.config import VmafConfig [as 别名]
# 或者: from vmaf.config.VmafConfig import root_path [as 别名]
def test_run_psnr(self):
exe = VmafConfig.root_path('run_psnr')
line = 'yuv420p 576 324 {root}/python/test/resource/yuv/src01_hrc00_576x324.yuv ' \
'{root}/python/test/resource/yuv/src01_hrc01_576x324.yuv'.format(root=VmafConfig.root_path())
cmd = "{exe} {line} >/dev/null 2>&1".format(line=line, exe=exe)
ret = run_process(cmd, shell=True)
self.assertEquals(ret, 0)
示例2: test_run_cleaning_cache_psnr
# 需要导入模块: from vmaf.config import VmafConfig [as 别名]
# 或者: from vmaf.config.VmafConfig import root_path [as 别名]
def test_run_cleaning_cache_psnr(self):
exe = VmafConfig.root_path('run_testing')
cmd = "{exe} PSNR {dataset} --parallelize --cache-result --suppress-plot".format(
exe=exe, dataset=self.dataset_filename)
ret = run_process(cmd, shell=True)
self.assertEquals(ret, 0)
exe = VmafConfig.root_path('python', 'script', 'run_cleaning_cache.py')
cmd = "{exe} PSNR {dataset}".format(
exe=exe, dataset=self.dataset_filename)
ret = run_process(cmd, shell=True)
self.assertEquals(ret, 0)
示例3: test_run_vmaf_in_batch
# 需要导入模块: from vmaf.config import VmafConfig [as 别名]
# 或者: from vmaf.config.VmafConfig import root_path [as 别名]
def test_run_vmaf_in_batch(self):
line = 'yuv420p 576 324 {root}/python/test/resource/yuv/src01_hrc00_576x324.yuv ' \
'{root}/python/test/resource/yuv/src01_hrc01_576x324.yuv'.format(root=VmafConfig.root_path())
cmd = 'echo "{line}" > {batch_filename}'.format(
line=line, batch_filename=self.batch_filename)
ret = run_process(cmd, shell=True)
self.assertEquals(ret, 0)
exe = VmafConfig.root_path('run_vmaf_in_batch')
cmd = "{exe} {input} --parallelize >/dev/null 2>&1".format(
exe=exe, input=self.batch_filename)
ret = run_process(cmd, shell=True)
self.assertEquals(ret, 0)
示例4: test_run_vmaf_training_raw_dataset
# 需要导入模块: from vmaf.config import VmafConfig [as 别名]
# 或者: from vmaf.config.VmafConfig import root_path [as 别名]
def test_run_vmaf_training_raw_dataset(self):
exe = VmafConfig.root_path('run_vmaf_training')
cmd = "{exe} {dataset} {param} {param} {output} --parallelize --suppress-plot".format(
exe=exe,
dataset=self.raw_dataset_filename,
param=self.param_filename,
output=self.out_model_filepath)
ret = run_process(cmd, shell=True)
self.assertEquals(ret, 0)
示例5: test_run_testing_psnr
# 需要导入模块: from vmaf.config import VmafConfig [as 别名]
# 或者: from vmaf.config.VmafConfig import root_path [as 别名]
def test_run_testing_psnr(self):
exe = VmafConfig.root_path('run_testing')
cmd = "{exe} PSNR {dataset} --parallelize --suppress-plot".format(
exe=exe, dataset=self.dataset_filename)
ret = run_process(cmd, shell=True)
self.assertEquals(ret, 0)