Hi All,
I run into some errors when do unittest.
I am using OSX 10.11.6. g++ has been upgrade to 4.8.1
[ 3:42PM ] [ jack@jacksmb15retina:~/NetFlix/vmaf(master✗) ]
$ g++ --version
g++-4.8 (Homebrew GCC 4.8.5) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
All other package have been upgrade to required versions. I have attached the unittest log in below.
Thanks ~~~~~~~~
[ 3:35PM ] [ jack@jacksmb15retina:/NetFlix/vmaf(master✗) ]
$ ls
CHANGELOG.md VERSION feature resource
CONTRIBUTING.md Xcode ffmpeg2vmaf run_psnr
Dockerfile build.gradle gradle run_testing
Dockerfile.dev check-environment gradlew run_vmaf
FAQ.md de1577a0-abe9-4035-8dd8-a1c90d911105 gradlew.bat run_vmaf_in_batch
LICENSE docker-bash libsvm run_vmaf_training
Makefile example_batch_input matlab settings.gradle
NOTICE.md example_dataset.py model unittest
OSSMETADATA example_raw_dataset.py ptools workspace
README.md extratest python wrapper
[ 3:35PM ] [ jack@jacksmb15retina:/NetFlix/vmaf(master✗) ]
$ ls
CHANGELOG.md VERSION feature resource
CONTRIBUTING.md Xcode ffmpeg2vmaf run_psnr
Dockerfile build.gradle gradle run_testing
Dockerfile.dev check-environment gradlew run_vmaf
FAQ.md de1577a0-abe9-4035-8dd8-a1c90d911105 gradlew.bat run_vmaf_in_batch
LICENSE docker-bash libsvm run_vmaf_training
Makefile example_batch_input matlab settings.gradle
NOTICE.md example_dataset.py model unittest
OSSMETADATA example_raw_dataset.py ptools workspace
README.md extratest python wrapper
[ 3:35PM ] [ jack@jacksmb15retina:/NetFlix/vmaf(master✗) ]
$ cd python/src
[ 3:35PM ] [ jack@jacksmb15retina:/NetFlix/vmaf/python/src(master✗) ]
$ ls
vmaf
[ 3:35PM ] [ jack@jacksmb15retina:/NetFlix/vmaf/python/src(master✗) ]
$ pwd
/Users/jack/NetFlix/vmaf/python/src
[ 3:35PM ] [ jack@jacksmb15retina:/NetFlix/vmaf/python/src(master✗) ]
$ vim /.bash_profile
[ 3:36PM ] [ jack@jacksmb15retina:/NetFlix/vmaf/python/src(master✗) ]
$ source /.bash_profile
[ 3:36PM ] [ jack@jacksmb15retina:/NetFlix/vmaf/python/src(master✗) ]
$ cd ../..
[ 3:36PM ] [ jack@jacksmb15retina:/NetFlix/vmaf(master✗) ]
$ ls
CHANGELOG.md VERSION feature resource
CONTRIBUTING.md Xcode ffmpeg2vmaf run_psnr
Dockerfile build.gradle gradle run_testing
Dockerfile.dev check-environment gradlew run_vmaf
FAQ.md de1577a0-abe9-4035-8dd8-a1c90d911105 gradlew.bat run_vmaf_in_batch
LICENSE docker-bash libsvm run_vmaf_training
Makefile example_batch_input matlab settings.gradle
NOTICE.md example_dataset.py model unittest
OSSMETADATA example_raw_dataset.py ptools workspace
README.md extratest python wrapper
[ 3:36PM ] [ jack@jacksmb15retina:/NetFlix/vmaf(master✗) ]
$ make
for dir in ptools feature libsvm wrapper; do
cd ${dir}; /Applications/Xcode.app/Contents/Developer/usr/bin/make; cd ..;
done
g++ -pthread -Wall -Wextra -fpic -O -fno-strict-aliasing -DLINUX_ -DOC_NEW_STYLE_INCLUDES -Wno-deprecated -I./opencontainers_1_8_4/include -pthread -D_REENTRANT m2pythontools.o valpython.o midassocket.o valprotocol2.o m2ser.o m2streamdataenc.o m2convertrep.o timeconv.o -dynamiclib -install_name /Users/jack/NetFlix/vmaf/ptools/libptools.dylib -o libptools.dylib
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
make[1]: Nothing to be done for all'. make[1]: Nothing to be done for
all'.
make[1]: Nothing to be done for `all'.
cd libsvm; /Applications/Xcode.app/Contents/Developer/usr/bin/make lib; cd ..;
if [ "Darwin" = "Darwin" ]; then
SHARED_LIB_FLAG="-dynamiclib -Wl,-install_name,libsvm.so.2";
else
SHARED_LIB_FLAG="-shared -Wl,-soname,libsvm.so.2";
fi;
c++ ${SHARED_LIB_FLAG} svm.o -o libsvm.so.2
[ 3:36PM ] [ jack@jacksmb15retina:~/NetFlix/vmaf(master✗) ]
$ ./unittest
...................Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/run_testing", line 10, in
from vmaf.core.quality_runner import QualityRunner, VmafQualityRunner
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
FFTraceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/run_testing", line 10, in
from vmaf.core.quality_runner import QualityRunner, VmafQualityRunner
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
FTraceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/run_testing", line 10, in
from vmaf.core.quality_runner import QualityRunner, VmafQualityRunner
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
FTraceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/run_testing", line 10, in
from vmaf.core.quality_runner import QualityRunner, VmafQualityRunner
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
FFFTraceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/run_vmaf_training", line 10, in
from vmaf.routine import print_matplotlib_warning, train_test_vmaf_on_dataset
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/routine.py", line 10, in
from vmaf.core.quality_runner import VmafQualityRunner
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
FTraceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/run_vmaf_training", line 10, in
from vmaf.routine import print_matplotlib_warning, train_test_vmaf_on_dataset
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/routine.py", line 10, in
from vmaf.core.quality_runner import VmafQualityRunner
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
FE...........................test on feature assembler with selected atom features...
.test on feature assembler with whole feature...
....test on running Moment feature extractor...
.test on running MS-SSIM feature extractor...
.test on running PSNR feature extractor...
.test on running SSIM feature extractor...
.test on running VMAF feature extractor...
.test on running VMAF feature extractor on checkerboard...
.test on running VMAF feature extractor on flat pattern...
.test on running VMAF feature extractor with result store...
running for the first time with fresh calculation...
running for the second time with stored results...
.test on running Moment feature extractor in parallel...
.test on running MS-SSIM feature extractor in parallel...
.test on running SSIM feature extractor in parallel...
.test on running VMAF feature extractor with result store in parallel...
running for the first time with fresh calculation...
running for the second time with stored results...
.test on running VMAF feature extractor in parallel...
.test on checkerboard pattern identical...
.test on checkerboard pattern opposite...
.test on checkerboard pattern shifted by 1...
.test on flat pattern identical...
.test on flat pattern of value 10...
.test 2nd moment...
.test adm...
.test all...
.test ansnr...
.test motion...
.test ms_ssim...
.test psnr...
.test ssim...
.test vif...
.test adm on yuv422p10le...
.test all on yuv422p10le...
.test ansnr on yuv422p10le...
.test motion on yuv422p10le...
.test ms_ssim on yuv422p10le...
.test psnr on yuv422p10le...
.test ssim on yuv422p10le...
.test vif on yuv422p10le...
.Etest on running Moment noref feature extractor on Assets...
.test on running Moment noref feature extractor on NorefAssets...
.test on running Moment noref feature extractor on NorefAssets in parallel...
.test on running Moment noref feature extractor on Assets...
.test on running Moment noref feature extractor on NorefAssets...
.............Etest on running dis YUV raw video extractor...
.test on running dis YUV raw video extractor...
.test on running dis YUV raw video extractor in parallel (disabled)...
.test on running asset extractor...
........EE..../Users/jack/anaconda/lib/python2.7/site-packages/scipy/linalg/basic.py:1018: RuntimeWarning: internal gelsd driver lwork query error, required iwork dimension not returned. This is likely the result of LAPACK bug 0038, fixed in LAPACK 3.2.2 (released July 21, 2010). Falling back to 'gelss' driver.
warnings.warn(mesg, RuntimeWarning)
............=== Belief Propagation ===
Iteration 254: change 9.91555463312e-09, mean q_e 3.54828453357, mean b_s -0.00349388118573, mean sigma_s 0.603144852442
.=== Belief Propagation ===
Iteration 307: change 9.78896915482e-09, mean q_e 3.55730737817, mean b_s -0.0125167257814, mean sigma_s 0.809166336017
.=== Belief Propagation ===
Iteration 260: change 9.81422873693e-09, mean q_e 3.54366775631, mean b_s -0.00711692999394, mean sigma_s 0.596951479671
=== Belief Propagation ===
Iteration 465: change 9.95001902283e-09, mean q_e 3.55279757432, mean b_s 0.0022204564692, mean sigma_s 0.5767783932585
..=== Belief Propagation ===
Iteration 233: change 9.65017600353e-09, mean q_e 2.99728217893, mean b_s -0.0346687009615, mean sigma_s 0.490088018146
.=== Belief Propagation ===
Iteration 252: change 9.77726429001e-09, mean q_e 3.54796102141, mean b_s -0.00317036901959, mean sigma_s 0.603144852444
.=== Belief Propagation ===
Iteration 254: change 9.91555466308e-09, mean q_e 3.77661948975, mean b_s -0.00349388118573, mean sigma_s 0.603144852442
.=== Belief Propagation ===
Iteration 263: change 9.58227168354e-09, mean q_e -1.03011832538e-15, mean b_s -6.96592160669e-17, mean sigma_s 0.447249964541
.=== Belief Propagation ===
Iteration 262: change 9.91501519175e-09, mean q_e -2.52962208142e-16, mean b_s 2.012306542e-16, mean sigma_s 0.44493098698827
.=== Belief Propagation ===
Iteration 2144: change 9.96715706524e-09, mean q_e 3.65276492988, mean b_s 0.120360678571, mean mu_c 0.0, mean sigma_s 0.3909487505, mean delta_c 0.43303199468899
.=== Belief Propagation ===
Iteration 2163: change 9.9673970506e-09, mean q_e 3.54693345078, mean b_s -0.00214279851342, mean mu_c 0.0, mean sigma_s 0.390948750454, mean delta_c 0.4330319947236
.=== Belief Propagation ===
Iteration 1152: change 9.95409015337e-09, mean q_e 3.54500609959, mean b_s -0.00842433540402, mean mu_c 0.0, mean sigma_s 0.377572857903, mean delta_c 0.434491608589
=== Belief Propagation ===
Iteration 2606: change 9.95227409239e-09, mean q_e 3.54809647554, mean b_s 0.0087044170798, mean mu_c 0.0, mean sigma_s 0.473766057786, mean delta_c 0.2924269824185
.=== Belief Propagation ===
Iteration 254: change 9.91555476002e-09, mean q_e 3.54828453357, mean b_s -0.00349388118573, mean mu_c 0.0, mean sigma_s 0.60314485244, mean delta_c 0.00
.=== Belief Propagation ===
Iteration 1: change 1.2161883889e-15, mean q_e 3.54479065239, mean b_s 0.0, mean mu_c 0.0, mean sigma_s 0.0, mean delta_c 0.674424698149
........E
ERROR: cross_validation_test (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: cross_validation_test
Traceback (most recent call last):
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/jack/NetFlix/vmaf/python/test/cross_validation_test.py", line 6, in
from vmaf.core.train_test_model import SklearnRandomForestTrainTestModel, LibsvmNusvrTrainTestModel,
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
======================================================================
ERROR: local_explainer_test (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: local_explainer_test
Traceback (most recent call last):
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/jack/NetFlix/vmaf/python/test/local_explainer_test.py", line 9, in
from vmaf.core.local_explainer import LocalExplainer
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/local_explainer.py", line 5, in
import sklearn.metrics
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
======================================================================
ERROR: quality_runner_test (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: quality_runner_test
Traceback (most recent call last):
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/jack/NetFlix/vmaf/python/test/quality_runner_test.py", line 11, in
from vmaf.core.quality_runner import VmafLegacyQualityRunner, VmafQualityRunner,
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
======================================================================
ERROR: result_test (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: result_test
Traceback (most recent call last):
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/jack/NetFlix/vmaf/python/test/result_test.py", line 14, in
from vmaf.core.quality_runner import VmafLegacyQualityRunner
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
======================================================================
ERROR: routine_test (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: routine_test
Traceback (most recent call last):
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/jack/NetFlix/vmaf/python/test/routine_test.py", line 5, in
from vmaf.routine import train_test_vmaf_on_dataset, read_dataset, run_test_on_dataset, generate_dataset_from_raw
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/routine.py", line 10, in
from vmaf.core.quality_runner import VmafQualityRunner
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/quality_runner.py", line 11, in
from vmaf.core.train_test_model import TrainTestModel
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
======================================================================
ERROR: train_test_model_test (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: train_test_model_test
Traceback (most recent call last):
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Users/jack/anaconda/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/jack/NetFlix/vmaf/python/test/train_test_model_test.py", line 7, in
from vmaf.core.train_test_model import TrainTestModel,
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/core/train_test_model.py", line 5, in
from sklearn.metrics import f1_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/init.py", line 33, in
from . import cluster
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/init.py", line 23, in
from .bicluster import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/init.py", line 1, in
from .bicluster_metrics import consensus_score
File "/Users/jack/anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in
from sklearn.utils.validation import check_arrays
ImportError: cannot import name check_arrays
======================================================================
FAIL: test_run_cleaning_cache_psnr (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 102, in test_run_cleaning_cache_psnr
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_testing PSNR /Users/jack/NetFlix/vmaf/python/test/resource/example_dataset.py --parallelize --cache-result --suppress-plot
======================================================================
FAIL: test_run_psnr (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 95, in test_run_psnr
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_psnr yuv420p 576 324 /Users/jack/NetFlix/vmaf/python/test/resource/yuv/src01_hrc00_576x324.yuv /Users/jack/NetFlix/vmaf/python/test/resource/yuv/src01_hrc01_576x324.yuv >/dev/null 2>&1
======================================================================
FAIL: test_run_testing_psnr (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 45, in test_run_testing_psnr
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_testing PSNR /Users/jack/NetFlix/vmaf/python/test/resource/example_dataset.py --parallelize --suppress-plot
======================================================================
FAIL: test_run_testing_vmaf (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 31, in test_run_testing_vmaf
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_testing VMAF /Users/jack/NetFlix/vmaf/python/test/resource/example_dataset.py --parallelize --suppress-plot
======================================================================
FAIL: test_run_testing_vmaf_raw_dataset (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 38, in test_run_testing_vmaf_raw_dataset
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_testing VMAF /Users/jack/NetFlix/vmaf/python/test/resource/example_raw_dataset.py --parallelize --suppress-plot
======================================================================
FAIL: test_run_vmaf (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 87, in test_run_vmaf
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_vmaf yuv420p 576 324 /Users/jack/NetFlix/vmaf/python/test/resource/yuv/src01_hrc00_576x324.yuv /Users/jack/NetFlix/vmaf/python/test/resource/yuv/src01_hrc01_576x324.yuv >/dev/null 2>&1
======================================================================
FAIL: test_run_vmaf_in_batch (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 79, in test_run_vmaf_in_batch
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_vmaf_in_batch /Users/jack/NetFlix/vmaf/workspace/workdir/test_batch_input --parallelize >/dev/null 2>&1
======================================================================
FAIL: test_run_vmaf_training (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 55, in test_run_vmaf_training
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_vmaf_training /Users/jack/NetFlix/vmaf/python/test/resource/example_dataset.py /Users/jack/NetFlix/vmaf/python/test/resource/vmaf_v4.py /Users/jack/NetFlix/vmaf/python/test/resource/vmaf_v4.py /Users/jack/NetFlix/vmaf/workspace/workdir/tmp.pkl --parallelize --suppress-plot
======================================================================
FAIL: test_run_vmaf_training_raw_dataset (command_line_test.CommandLineTest)
Traceback (most recent call last):
File "/Users/jack/NetFlix/vmaf/python/test/command_line_test.py", line 65, in test_run_vmaf_training_raw_dataset
ret = run_process(cmd, shell=True)
File "/Users/jack/NetFlix/vmaf/python/src/vmaf/tools/misc.py", line 357, in run_process
assert ret == 0, 'Process returned {ret}, cmd: {cmd}'.format(ret=ret, cmd=cmd)
AssertionError: Process returned 1, cmd: /Users/jack/NetFlix/vmaf/run_vmaf_training /Users/jack/NetFlix/vmaf/python/test/resource/example_raw_dataset.py /Users/jack/NetFlix/vmaf/python/test/resource/vmaf_v4.py /Users/jack/NetFlix/vmaf/python/test/resource/vmaf_v4.py /Users/jack/NetFlix/vmaf/workspace/workdir/tmp.pkl --parallelize --suppress-plot
Ran 166 tests in 138.016s
FAILED (failures=9, errors=6)