From f467b2c1273ab3b558513965f3c42c146f1cdfa5 Mon Sep 17 00:00:00 2001 From: Kasisnu <5044120+kasisnu@users.noreply.github.com> Date: Thu, 4 Jul 2024 18:20:25 +0530 Subject: [PATCH] facefusion:(sigh) make frame processors run independently --- workflows/comfy/facefusion-runner.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/workflows/comfy/facefusion-runner.sh b/workflows/comfy/facefusion-runner.sh index b1b7a64..0d98681 100755 --- a/workflows/comfy/facefusion-runner.sh +++ b/workflows/comfy/facefusion-runner.sh @@ -49,5 +49,11 @@ deactivate || true cd /facefusion # Set up the environment source venv/bin/activate -# venv/bin/python3 -m pip install -r requirements.txt -venv/bin/python3 run.py -s $input_audio -t $input_video --frame-processors lip_syncer --frame-processors face_enhancer --execution-provider cuda -o $output --headless \ No newline at end of file + +TEMPDIR=$(mktemp -d) + + +venv/bin/python3 run.py -s $input_audio -t $input_video --frame-processors lip_syncer --execution-provider cuda -o $TEMPDIR/1.mp4 --headless +venv/bin/python3 run.py -s $input_audio -t $TEMPDIR/1.mp4 --frame-processors face_enhancer --execution-provider cuda -o $output --headless + +# rm -rf $TEMPDIR \ No newline at end of file