mirror of
https://github.com/facefusion/facefusion-pinokio.git
synced 2026-07-08 12:07:50 +02:00
+4
-8
@@ -1,24 +1,20 @@
|
||||
function install(kernel)
|
||||
{
|
||||
const { platform, arch, gpu } = kernel;
|
||||
const { platform, gpu } = kernel;
|
||||
|
||||
if (platform === 'darwin')
|
||||
{
|
||||
if (arch === 'arm64')
|
||||
{
|
||||
return 'python install.py --onnxruntime coreml-silicon --torch default --skip-venv';
|
||||
}
|
||||
return 'python install.py --onnxruntime default --torch default --skip-venv';
|
||||
}
|
||||
if ([ 'linux', 'win32' ].includes(platform) && gpu === 'nvidia')
|
||||
{
|
||||
return 'python install.py --onnxruntime cuda --torch cuda --skip-venv';
|
||||
return 'python install.py --onnxruntime cuda-11.8 --torch cuda-11.8 --skip-venv';
|
||||
}
|
||||
if (gpu === 'amd')
|
||||
{
|
||||
if (platform === 'linux')
|
||||
{
|
||||
return 'python install.py --onnxruntime rocm --torch rocm --skip-venv';
|
||||
return 'python install.py --onnxruntime rocm-5.4.2 --torch rocm-5.4.2 --skip-venv';
|
||||
}
|
||||
if (platform === 'win32')
|
||||
{
|
||||
@@ -49,7 +45,7 @@ module.exports = async kernel =>
|
||||
method: 'shell.run',
|
||||
params:
|
||||
{
|
||||
message: 'git clone https://github.com/facefusion/facefusion --branch 2.2.1 --single-branch'
|
||||
message: 'git clone https://github.com/facefusion/facefusion --branch 2.3.0 --single-branch'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "facefusion-pinokio",
|
||||
"description": "Next generation face swapper and enhancer",
|
||||
"version": "2.2.1",
|
||||
"version": "2.3.0",
|
||||
"license": "MIT",
|
||||
"devDependencies":
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
module.exports =
|
||||
{
|
||||
version: '1',
|
||||
title: 'FaceFusion 2.2.1',
|
||||
title: 'FaceFusion 2.3.0',
|
||||
description: 'Next generation face swapper and enhancer',
|
||||
icon: 'icon.png',
|
||||
menu: require(__dirname + '/menu.js')
|
||||
|
||||
@@ -15,7 +15,7 @@ module.exports = () =>
|
||||
method: 'shell.run',
|
||||
params:
|
||||
{
|
||||
message: 'git pull origin 2.2.1',
|
||||
message: 'git pull origin 2.3.0',
|
||||
path: 'facefusion'
|
||||
}
|
||||
},
|
||||
@@ -23,7 +23,7 @@ module.exports = () =>
|
||||
method: 'shell.run',
|
||||
params:
|
||||
{
|
||||
message: 'git checkout 2.2.1',
|
||||
message: 'git checkout 2.3.0',
|
||||
path: 'facefusion'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user