Skip to content

Commit

Permalink
Use all CPU cores for VMAF
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatNerdUKnow committed Feb 15, 2023
1 parent c198c4b commit 96850a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmaf-gui/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void vmaf(string resolution, string model, bool psnr, bool ssim)
//string args = "yuv420p "+ resolution +" ./temp/source.yuv ./temp/compressed.yuv .\\model\\"+ model +" --log log.xml";
Array res = resolution.Split(' ');

string args = $"--threads 4 --reference ./temp/source.y4m --distorted ./temp/compressed.y4m -o log.xml ";
string args = $"--threads {Environment.ProcessorCount} --reference ./temp/source.y4m --distorted ./temp/compressed.y4m -o log.xml ";

args += "--model path=./model/" + model;
/*
Expand Down

0 comments on commit 96850a6

Please sign in to comment.