Skip to content

Commit

Permalink
Merge pull request #30 from facefusion/fix/apple-intel
Browse files Browse the repository at this point in the history
Fix Apple Intel
  • Loading branch information
henryruhs authored Oct 1, 2024
2 parents 4db16f0 + 627d480 commit 7aa7e60
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,19 @@ function install(kernel)
{
const { platform, gpu } = kernel;

if (gpu === 'amd')
if (platform === 'linux' && gpu === 'amd')
{
if (platform === 'linux')
{
return 'python install.py --onnxruntime rocm';
}
if (platform === 'win32')
{
return 'python install.py --onnxruntime directml';
}
return 'python install.py --onnxruntime rocm';
}
if (gpu === 'intel')
if (platform === 'win32' && gpu === 'amd')
{
return 'python install.py --onnxruntime directml';
}
if ((platform === 'linux' || platform === 'win32') && gpu === 'intel')
{
return 'python install.py --onnxruntime openvino';
}
if (gpu === 'nvidia')
if ((platform === 'linux' || platform === 'win32') && gpu === 'nvidia')
{
return 'python install.py --onnxruntime cuda';
}
Expand All @@ -40,7 +37,7 @@ module.exports = async kernel =>
}
},
{
when: '{{ gpu === "intel" }}',
when: '{{ (platform === "linux" || platform === "win32") && gpu === "intel" }}',
method: 'shell.run',
params:
{
Expand All @@ -52,7 +49,7 @@ module.exports = async kernel =>
}
},
{
when: '{{ gpu === "nvidia" }}',
when: '{{ (platform === "linux" || platform === "win32") && gpu === "nvidia" }}',
method: 'shell.run',
params:
{
Expand Down

0 comments on commit 7aa7e60

Please sign in to comment.