From ccb379c36e07d4b4151e1fc0df7e90d071f7c1bd Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Wed, 27 Nov 2024 22:03:21 +0000 Subject: [PATCH 1/2] Pass all envvars to child process, helps ROCm to work --- main-src/processQueue.cjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main-src/processQueue.cjs b/main-src/processQueue.cjs index 83a5d51..8bcd1c5 100644 --- a/main-src/processQueue.cjs +++ b/main-src/processQueue.cjs @@ -61,10 +61,7 @@ const PATH_TO_FFMPEG = PATH_TO_THIRD_PARTY_APPS const DEMUCS_EXE_NAME = PATH_TO_THIRD_PARTY_APPS ? 'demucs-cxfreeze' : 'demucs' const FFMPEG_EXE_NAME = 'ffmpeg' const CHILD_PROCESS_ENV = { - CUDA_PATH: process.env.CUDA_PATH, - PATH: process.env.PATH, - TEMP: process.env.TEMP, - TMP: process.env.TMP, + ... process.env, LANG: null, // Will be set when ready to split, since we can only check system locale after `app` is ready } if (PATH_TO_THIRD_PARTY_APPS) { From 624c59ee6b1db12d4c6237657c068f1e08af9f22 Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Wed, 27 Nov 2024 22:04:55 +0000 Subject: [PATCH 2/2] Hint about ffmpeg not being detected by torchaudio on GNU/Linux --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 45a72a0..313ef01 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ npm i -D Install `ffmpeg` globally using your preferred package manager, and install `demucs` globally with `pip`. +If you get "Couldn't find appropriate backend" errors, try installing `libsox-dev` instead. + ## Run in Development Mode `npm run dev`