google / visqol

Perceptual Quality Estimator for speech and audio
Apache License 2.0
683 stars 124 forks source link

Compile succeeds in Windows but fails to run #55

Closed TheThing closed 3 years ago

TheThing commented 3 years ago

So I managed to compile Visqol in windows using the following:

PS D:\Encode\Tools\Visqol> .\bazel-3.5.0-windows-x86_64.exe --output_user_root D:\Encode\Tools\Visqol\binary build :visqol -c opt

This worked out fine. If I try to run it I get a model error:

PS D:\Encode\Tools\test> D:\Encode\Tools\Visqol\bazel-bin\visqol.exe --reference_file "cloud_age_source.wav" --degraded_file "cloud_age_opus_256.wav" --verbose
[commandline_parser.cc : 193] RAW: File not found: D:\Encode\Tools\test/model/libsvm_nu_svr_model.txt
[main.cc : 28] RAW: INVALID_ARGUMENT: Failed to load the default SVR model D:\Encode\Tools\test/model/libsvm_nu_svr_model.txt. Specify the correct path using '--similarity_to_quality_model <path/to/libsvm_nu_svr_model.txt>'?

If I point it to the model folder like so:

PS D:\Encode\Tools\test> D:\Encode\Tools\Visqol\bazel-bin\visqol.exe --similarity_to_quality_model "D:\Encode\Tools\Visqol\model/libsvm_nu_svr_model.txt" --reference_file "cloud_age_source.wav" --degraded_file "cloud_age_opus_256.wav" --verbose

It doesn't throw an error but it does absolute nothing. No output, no error, nothing. It seems to be running but frozen or just doing nothing.

TheThing commented 3 years ago

Never mind it just took forever lol

mchinen commented 3 years ago

Glad you figured it out. May I ask how long is the file? 5-10 seconds is preferred and should not take that long on a typical system.

TheThing commented 3 years ago

12 minutes for an audio file that's 6 minutes long.

PS D:\Encode\Tools\test> Measure-Command { D:\Encode\Tools\Visqol\bazel-bin\visqol.exe --similarity_to_quality_model "D:\Encode\Tools\Visqol\model/libsvm_nu_svr_model.txt" --reference_file "cloud_age_source.wav" --degraded_file "cloud_age_opus_256.wav" | Out-Default }
ViSQOL conformance version: 310
Audio mode
MOS-LQO:                4.73143

Days              : 0
Hours             : 0
Minutes           : 11
Seconds           : 59
Milliseconds      : 484
Ticks             : 7194842790
TotalDays         : 0,00832736434027778
TotalHours        : 0,199856744166667
TotalMinutes      : 11,99140465
TotalSeconds      : 719,484279
TotalMilliseconds : 719484,279