mirror of
https://github.com/facefusion/facefusion-pinokio.git
synced 2026-07-08 12:07:50 +02:00
Fix install script
This commit is contained in:
+3
-8
@@ -10,13 +10,13 @@ function install(kernel)
|
||||
}
|
||||
return 'python install.py --onnxruntime default --torch default';
|
||||
}
|
||||
if (gpu === 'nvidia')
|
||||
if ([ 'linux', 'win32' ].includes(platform) && gpu === 'nvidia')
|
||||
{
|
||||
return 'python install.py --onnxruntime cuda --torch cuda';
|
||||
}
|
||||
if (gpu === 'amd')
|
||||
if (platform === 'linux' && gpu === 'amd')
|
||||
{
|
||||
return 'python install.py --onnxruntime default --torch cpu';
|
||||
return 'python install.py --onnxruntime directml --torch rocm';
|
||||
}
|
||||
return 'python install.py --onnxruntime default --torch cpu';
|
||||
}
|
||||
@@ -31,14 +31,9 @@ module.exports = async kernel =>
|
||||
type: 'conda',
|
||||
name:
|
||||
[
|
||||
'cmake',
|
||||
'ffmpeg'
|
||||
],
|
||||
args: '-c conda-forge'
|
||||
},
|
||||
{
|
||||
gpu: 'nvidia',
|
||||
name: 'cuda'
|
||||
}
|
||||
],
|
||||
run:
|
||||
|
||||
Reference in New Issue
Block a user