SadTalker icon indicating copy to clipboard operation
SadTalker copied to clipboard

I keep getting this error does anyone have a solution? _ raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint

Open start-life opened this issue 1 year ago • 34 comments

I keep getting this error does anyone have a solution? _

raise Exception("Failed in loading audio2pose_checkpoint")

Exception: Failed in loading audio2pose_checkpoint

start-life avatar Jun 25 '23 14:06 start-life

I'm getting this error too. Can anyone help? Traceback (most recent call last): File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 414, in run_predict output = await app.get_blocks().process_api( File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api result = await self.call_function( File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function prediction = await anyio.to_thread.run_sync( File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\AI\stable-diffusion-webui/extensions/SadTalker\src\gradio_demo.py", line 42, in test self.audio_to_coeff = Audio2Coeff(self.sadtalker_paths, self.device) File "C:\AI\stable-diffusion-webui/extensions/SadTalker\src\test_audio2coeff.py", line 50, in init raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint

Sstan2001 avatar Jun 26 '23 04:06 Sstan2001

have you downloaded the checkpoints?

vinthony avatar Jun 27 '23 07:06 vinthony

你好,我用 mac M1 第一次安装,报同样的错误: Traceback (most recent call last): File "/Users/AI/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 414, in run_predict output = await app.get_blocks().process_api( File "/Users/AI/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1323, in process_api result = await self.call_function( File "/Users/AI/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1051, in call_function prediction = await anyio.to_thread.run_sync( File "/Users/AI/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/Users/AI/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/Users/AI/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/Users/AI/stable-diffusion-webui/modules/call_queue.py", line 15, in f res = func(*args, **kwargs) File "/Users/AI/stable-diffusion-webui/extensions/SadTalker/src/gradio_demo.py", line 49, in test self.audio_to_coeff = Audio2Coeff(self.sadtalker_paths, self.device) File "/Users/AI/stable-diffusion-webui/extensions/SadTalker/src/test_audio2coeff.py", line 50, in init raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint

sakura1217 avatar Jun 27 '23 08:06 sakura1217

我是用这个命令下载的checkpoint

cd SOMEWHERE_YOU_LIKE

bash <(wget -qO- https://raw.githubusercontent.com/Winfredy/SadTalker/main/scripts/download_models.sh)

sakura1217 avatar Jun 27 '23 08:06 sakura1217

I downloaded everything according to this guide https://github.com/OpenTalker/SadTalker/blob/main/docs/webui_extension.md I downloaded the barriers and it still doesn't work and it gives the error I also tried to download the project separately and still have the error I would appreciate it if anything will write a solution

start-life avatar Jun 27 '23 11:06 start-life

you can try to download all checkpoints from this https://raw.githubusercontent.com/Winfredy/SadTalker/main/scripts/download_models.sh, and put them to SADTALKER_CHECKPOINTS 's checkpoints directory.

igoso avatar Jun 27 '23 13:06 igoso

Many of the barriers in the file encounter a 404 error. If you could fix it or put an up-to-date file, I would appreciate it.

start-life avatar Jun 28 '23 14:06 start-life

You only need to download the files from https://github.com/OpenTalker/SadTalker/releases/tag/v0.0.2-rc. Can you show the full track of the errors, there will have a dict to show all the paths we need in console log.

vinthony avatar Jun 29 '23 05:06 vinthony

I downloaded everything and still have the error it's probably not related to this

start-life avatar Jun 29 '23 09:06 start-life

you can try to download all checkpoints from this https://raw.githubusercontent.com/Winfredy/SadTalker/main/scripts/download_models.sh, and put them to SADTALKER_CHECKPOINTS 's checkpoints directory.

Download all files. Set the file path to display as this image, and that should solve the problem. 571688039494_ pic_hd

Thank you very much!

sakura1217 avatar Jun 29 '23 12:06 sakura1217

Hi Shadow,

Thanks for responding. I have downloaded the 5 files from https://github.com/OpenTalker/SadTalker/releases/tag/v0.0.2-rc many times and followed the instructions (to unzip the files into a SadTalker directory, create a checkpoints folder and put the 2 model.pth.tar and 2 safetensors there.

One thing I did noticed was when I first ran webui.bat (from SadTalker), it downloaded a number of files. 2 of the downloads (I think it was the first one with a 2.2GB file and the third or fourth one) timed out. The rest completed ok. After this compilation, webui.at no longer works -

Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Commit hash: baf6946e06249c5af9851c60171692c44ef633e0 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113 Collecting torch==1.12.1+cu113 Using cached https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp310-cp310-win_amd64.whl (2143.8 MB) Collecting torchvision==0.13.1+cu113 Using cached https://download.pytorch.org/whl/cu113/torchvision-0.13.1%2Bcu113-cp310-cp310-win_amd64.whl (4.7 MB) Collecting torchaudio==0.12.1 Using cached https://download.pytorch.org/whl/cu113/torchaudio-0.12.1%2Bcu113-cp310-cp310-win_amd64.whl (1.2 MB) Collecting typing-extensions Using cached typing_extensions-4.7.0-py3-none-any.whl (33 kB) Collecting requests Using cached requests-2.31.0-py3-none-any.whl (62 kB) Collecting numpy Using cached numpy-1.25.0-cp310-cp310-win_amd64.whl (15.0 MB) Collecting pillow!=8.3.*,>=5.3.0 Using cached Pillow-9.5.0-cp310-cp310-win_amd64.whl (2.5 MB) Collecting certifi>=2017.4.17 Using cached certifi-2023.5.7-py3-none-any.whl (156 kB) Collecting charset-normalizer<4,>=2 Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB) Collecting idna<4,>=2.5 Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB) Collecting urllib3<3,>=1.21.1 Using cached urllib3-2.0.3-py3-none-any.whl (123 kB) Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision, torchaudio Successfully installed certifi-2023.5.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.25.0 pillow-9.5.0 requests-2.31.0 torch-1.12.1+cu113 torchaudio-0.12.1+cu113 torchvision-0.13.1+cu113 typing-extensions-4.7.0 urllib3-2.0.3

[notice] A new release of pip available: 22.3.1 -> 23.1.2 [notice] To update, run: python.exe -m pip install --upgrade pip Installing requirements for SadTalker WebUI (may take longer time in first time) Launching SadTalker Web UI RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe Traceback (most recent call last): File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\Launcher.py", line 199, in start() File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\Launcher.py", line 192, in start from app import sadtalker_demo File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\app.py", line 3, in from src.gradio_demo import SadTalker File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\gradio_demo.py", line 3, in from src.utils.preprocess import CropAndExtract File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\utils\preprocess.py", line 9, in from src.face3d.util.preprocess import align_img File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\face3d\util\preprocess.py", line 5, in from scipy.io import loadmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io_init_.py", line 98, in from .matlab import loadmat, savemat, whosmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_init_.py", line 45, in from ._mio import loadmat, savemat, whosmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_mio.py", line 9, in from .mio4 import MatFile4Reader, MatFile4Writer File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_mio4.py", line 8, in import scipy.sparse File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\sparse_init.py", line 267, in from ._csr import * File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\sparse_csr.py", line 10, in from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks, ImportError: numpy.core.multiarray failed to import

Launch unsuccessful. Exiting.

I unzipped into another SadTalker folder, redownloaded the 4 files into the checkpoints folder and ran webui.bat again. But somehow can't get around this error. Please assist.

Thanks, Stacie


From: Shadow Cun @.> Sent: Thursday, June 29, 2023 5:36 AM To: OpenTalker/SadTalker @.> Cc: Sstan2001 @.>; Comment @.> Subject: Re: [OpenTalker/SadTalker] I keep getting this error does anyone have a solution? _ raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint (Issue #441)

You only need to download the files from https://github.com/OpenTalker/SadTalker/releases/tag/v0.0.2-rc. Can you show the full track of the errors, there will have a dict to show all the paths we need in console log.

— Reply to this email directly, view it on GitHubhttps://github.com/OpenTalker/SadTalker/issues/441#issuecomment-1612457936, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZVSDUZSEDMPY3HH47PWG33XNUH5DANCNFSM6AAAAAAZTFT5V4. You are receiving this because you commented.Message ID: @.***>

Sstan2001 avatar Jun 30 '23 01:06 Sstan2001

Hi Shadow,

I reinstalled SadTalker using the Main (not dev) branch, re-downgraded gradio from

from 3.32.0 to 3.31.0 and it now works if I run webui.bat from the command prompt within Python 3.10.9 and go into SadTalker using the local URL. I managed to generate a video as per normal.

I tried to do the same thing, running SadTalker from Automatic 1111 and using the SadTalker extension tab. When I click on Generate, I get the same error message: Exception: Failed in loading audio2pose_checkpoint

It looks like this error could be related to the Python/Gradio version.

Rgds, Stacie

From: Stacie Tan @.> Sent: Friday, June 30, 2023 1:24 AM To: OpenTalker/SadTalker @.>; OpenTalker/SadTalker @.> Cc: Comment @.> Subject: Re: [OpenTalker/SadTalker] I keep getting this error does anyone have a solution? _ raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint (Issue #441)

Hi Shadow,

Thanks for responding. I have downloaded the 5 files from https://github.com/OpenTalker/SadTalker/releases/tag/v0.0.2-rc many times and followed the instructions (to unzip the files into a SadTalker directory, create a checkpoints folder and put the 2 model.pth.tar and 2 safetensors there.

One thing I did noticed was when I first ran webui.bat (from SadTalker), it downloaded a number of files. 2 of the downloads (I think it was the first one with a 2.2GB file and the third or fourth one) timed out. The rest completed ok. After this compilation, webui.at no longer works -

Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Commit hash: baf6946e06249c5af9851c60171692c44ef633e0 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113 Collecting torch==1.12.1+cu113 Using cached https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp310-cp310-win_amd64.whl (2143.8 MB) Collecting torchvision==0.13.1+cu113 Using cached https://download.pytorch.org/whl/cu113/torchvision-0.13.1%2Bcu113-cp310-cp310-win_amd64.whl (4.7 MB) Collecting torchaudio==0.12.1 Using cached https://download.pytorch.org/whl/cu113/torchaudio-0.12.1%2Bcu113-cp310-cp310-win_amd64.whl (1.2 MB) Collecting typing-extensions Using cached typing_extensions-4.7.0-py3-none-any.whl (33 kB) Collecting requests Using cached requests-2.31.0-py3-none-any.whl (62 kB) Collecting numpy Using cached numpy-1.25.0-cp310-cp310-win_amd64.whl (15.0 MB) Collecting pillow!=8.3.*,>=5.3.0 Using cached Pillow-9.5.0-cp310-cp310-win_amd64.whl (2.5 MB) Collecting certifi>=2017.4.17 Using cached certifi-2023.5.7-py3-none-any.whl (156 kB) Collecting charset-normalizer<4,>=2 Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB) Collecting idna<4,>=2.5 Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB) Collecting urllib3<3,>=1.21.1 Using cached urllib3-2.0.3-py3-none-any.whl (123 kB) Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision, torchaudio Successfully installed certifi-2023.5.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.25.0 pillow-9.5.0 requests-2.31.0 torch-1.12.1+cu113 torchaudio-0.12.1+cu113 torchvision-0.13.1+cu113 typing-extensions-4.7.0 urllib3-2.0.3

[notice] A new release of pip available: 22.3.1 -> 23.1.2 [notice] To update, run: python.exe -m pip install --upgrade pip Installing requirements for SadTalker WebUI (may take longer time in first time) Launching SadTalker Web UI RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe Traceback (most recent call last): File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\Launcher.py", line 199, in start() File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\Launcher.py", line 192, in start from app import sadtalker_demo File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\app.py", line 3, in from src.gradio_demo import SadTalker File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\gradio_demo.py", line 3, in from src.utils.preprocess import CropAndExtract File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\utils\preprocess.py", line 9, in from src.face3d.util.preprocess import align_img File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\face3d\util\preprocess.py", line 5, in from scipy.io import loadmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io_init_.py", line 98, in from .matlab import loadmat, savemat, whosmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_init_.py", line 45, in from ._mio import loadmat, savemat, whosmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_mio.py", line 9, in from .mio4 import MatFile4Reader, MatFile4Writer File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_mio4.py", line 8, in import scipy.sparse File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\sparse_init.py", line 267, in from ._csr import * File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\sparse_csr.py", line 10, in from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks, ImportError: numpy.core.multiarray failed to import

Launch unsuccessful. Exiting.

I unzipped into another SadTalker folder, redownloaded the 4 files into the checkpoints folder and ran webui.bat again. But somehow can't get around this error. Please assist.

Thanks, Stacie


From: Shadow Cun @.> Sent: Thursday, June 29, 2023 5:36 AM To: OpenTalker/SadTalker @.> Cc: Sstan2001 @.>; Comment @.> Subject: Re: [OpenTalker/SadTalker] I keep getting this error does anyone have a solution? _ raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint (Issue #441)

You only need to download the files from https://github.com/OpenTalker/SadTalker/releases/tag/v0.0.2-rc. Can you show the full track of the errors, there will have a dict to show all the paths we need in console log.

— Reply to this email directly, view it on GitHubhttps://github.com/OpenTalker/SadTalker/issues/441#issuecomment-1612457936, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZVSDUZSEDMPY3HH47PWG33XNUH5DANCNFSM6AAAAAAZTFT5V4. You are receiving this because you commented.Message ID: @.***>

Sstan2001 avatar Jun 30 '23 07:06 Sstan2001

BTW, I tried again, with a standalone version of the dev SadTalker. Same error when running webui.bat:- File "C:\AI\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\sparse_csr.py", line 10, in from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks, ImportError: numpy.core.multiarray failed to import

Launch unsuccessful. Exiting. Press any key to continue . . .

Rgds, Stacie


From: Stacie Tan @.> Sent: Friday, June 30, 2023 7:50 AM To: OpenTalker/SadTalker @.>; OpenTalker/SadTalker @.> Cc: Comment @.> Subject: Re: [OpenTalker/SadTalker] I keep getting this error does anyone have a solution? _ raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint (Issue #441)

Hi Shadow,

I reinstalled SadTalker using the Main (not dev) branch, re-downgraded gradio from

from 3.32.0 to 3.31.0 and it now works if I run webui.bat from the command prompt within Python 3.10.9 and go into SadTalker using the local URL. I managed to generate a video as per normal.

I tried to do the same thing, running SadTalker from Automatic 1111 and using the SadTalker extension tab. When I click on Generate, I get the same error message: Exception: Failed in loading audio2pose_checkpoint

It looks like this error could be related to the Python/Gradio version.

Rgds, Stacie

From: Stacie Tan @.> Sent: Friday, June 30, 2023 1:24 AM To: OpenTalker/SadTalker @.>; OpenTalker/SadTalker @.> Cc: Comment @.> Subject: Re: [OpenTalker/SadTalker] I keep getting this error does anyone have a solution? _ raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint (Issue #441)

Hi Shadow,

Thanks for responding. I have downloaded the 5 files from https://github.com/OpenTalker/SadTalker/releases/tag/v0.0.2-rc many times and followed the instructions (to unzip the files into a SadTalker directory, create a checkpoints folder and put the 2 model.pth.tar and 2 safetensors there.

One thing I did noticed was when I first ran webui.bat (from SadTalker), it downloaded a number of files. 2 of the downloads (I think it was the first one with a 2.2GB file and the third or fourth one) timed out. The rest completed ok. After this compilation, webui.at no longer works -

Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Commit hash: baf6946e06249c5af9851c60171692c44ef633e0 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113 Collecting torch==1.12.1+cu113 Using cached https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp310-cp310-win_amd64.whl (2143.8 MB) Collecting torchvision==0.13.1+cu113 Using cached https://download.pytorch.org/whl/cu113/torchvision-0.13.1%2Bcu113-cp310-cp310-win_amd64.whl (4.7 MB) Collecting torchaudio==0.12.1 Using cached https://download.pytorch.org/whl/cu113/torchaudio-0.12.1%2Bcu113-cp310-cp310-win_amd64.whl (1.2 MB) Collecting typing-extensions Using cached typing_extensions-4.7.0-py3-none-any.whl (33 kB) Collecting requests Using cached requests-2.31.0-py3-none-any.whl (62 kB) Collecting numpy Using cached numpy-1.25.0-cp310-cp310-win_amd64.whl (15.0 MB) Collecting pillow!=8.3.*,>=5.3.0 Using cached Pillow-9.5.0-cp310-cp310-win_amd64.whl (2.5 MB) Collecting certifi>=2017.4.17 Using cached certifi-2023.5.7-py3-none-any.whl (156 kB) Collecting charset-normalizer<4,>=2 Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB) Collecting idna<4,>=2.5 Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB) Collecting urllib3<3,>=1.21.1 Using cached urllib3-2.0.3-py3-none-any.whl (123 kB) Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision, torchaudio Successfully installed certifi-2023.5.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.25.0 pillow-9.5.0 requests-2.31.0 torch-1.12.1+cu113 torchaudio-0.12.1+cu113 torchvision-0.13.1+cu113 typing-extensions-4.7.0 urllib3-2.0.3

[notice] A new release of pip available: 22.3.1 -> 23.1.2 [notice] To update, run: python.exe -m pip install --upgrade pip Installing requirements for SadTalker WebUI (may take longer time in first time) Launching SadTalker Web UI RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe Traceback (most recent call last): File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\Launcher.py", line 199, in start() File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\Launcher.py", line 192, in start from app import sadtalker_demo File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\app.py", line 3, in from src.gradio_demo import SadTalker File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\gradio_demo.py", line 3, in from src.utils.preprocess import CropAndExtract File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\utils\preprocess.py", line 9, in from src.face3d.util.preprocess import align_img File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\src\face3d\util\preprocess.py", line 5, in from scipy.io import loadmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io_init_.py", line 98, in from .matlab import loadmat, savemat, whosmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_init_.py", line 45, in from ._mio import loadmat, savemat, whosmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_mio.py", line 9, in from .mio4 import MatFile4Reader, MatFile4Writer File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\io\matlab_mio4.py", line 8, in import scipy.sparse File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\sparse_init.py", line 267, in from ._csr import * File "C:\AI\stable-diffusion-webui\extensions\SadTalker-0.0.2-rc\venv\lib\site-packages\scipy\sparse_csr.py", line 10, in from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks, ImportError: numpy.core.multiarray failed to import

Launch unsuccessful. Exiting.

I unzipped into another SadTalker folder, redownloaded the 4 files into the checkpoints folder and ran webui.bat again. But somehow can't get around this error. Please assist.

Thanks, Stacie


From: Shadow Cun @.> Sent: Thursday, June 29, 2023 5:36 AM To: OpenTalker/SadTalker @.> Cc: Sstan2001 @.>; Comment @.> Subject: Re: [OpenTalker/SadTalker] I keep getting this error does anyone have a solution? _ raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint (Issue #441)

You only need to download the files from https://github.com/OpenTalker/SadTalker/releases/tag/v0.0.2-rc. Can you show the full track of the errors, there will have a dict to show all the paths we need in console log.

— Reply to this email directly, view it on GitHubhttps://github.com/OpenTalker/SadTalker/issues/441#issuecomment-1612457936, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZVSDUZSEDMPY3HH47PWG33XNUH5DANCNFSM6AAAAAAZTFT5V4. You are receiving this because you commented.Message ID: @.***>

Sstan2001 avatar Jul 01 '23 01:07 Sstan2001

These issues are caused by the version of numpy, just change the scipy version in

https://github.com/OpenTalker/SadTalker//requirements.txt#L9C1-L9C14

by scipy==1.10.1 to scipy.

vinthony avatar Jul 03 '23 12:07 vinthony

Hi all! Can you please tell me how to defeat the error:

"FileNotFoundError: [Errno 2] No such file or directory: '5d2e7e36-9724-4e3b-a565-15469dcb4460.mp4'"

image

BlazhennovD avatar Jul 04 '23 15:07 BlazhennovD

Hi Shadow,

My scipy version is already at 1.10.1 [cid:d946e30f-8376-47cc-8748-e79bdfcfd8d8]

I tried running SadTalker (dev version) standalone again and have the same error:-

venv "venv\Scripts\Python.exe" Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Commit hash: baf6946e06249c5af9851c60171692c44ef633e0 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113 Collecting torch==1.12.1+cu113 Using cached https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp310-cp310-win_amd64.whl (2143.8 MB) Collecting torchvision==0.13.1+cu113 Using cached https://download.pytorch.org/whl/cu113/torchvision-0.13.1%2Bcu113-cp310-cp310-win_amd64.whl (4.7 MB) Collecting torchaudio==0.12.1 Using cached https://download.pytorch.org/whl/cu113/torchaudio-0.12.1%2Bcu113-cp310-cp310-win_amd64.whl (1.2 MB) Collecting typing-extensions Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB) Collecting numpy Using cached numpy-1.25.0-cp310-cp310-win_amd64.whl (15.0 MB) Collecting requests Using cached requests-2.31.0-py3-none-any.whl (62 kB) Collecting pillow!=8.3.*,>=5.3.0 Downloading Pillow-10.0.0-cp310-cp310-win_amd64.whl (2.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 1.4 MB/s eta 0:00:00 Collecting certifi>=2017.4.17 Using cached certifi-2023.5.7-py3-none-any.whl (156 kB) Collecting charset-normalizer<4,>=2 Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB) Collecting urllib3<3,>=1.21.1 Using cached urllib3-2.0.3-py3-none-any.whl (123 kB) Collecting idna<4,>=2.5 Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB) Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision, torchaudio Successfully installed certifi-2023.5.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.25.0 pillow-10.0.0 requests-2.31.0 torch-1.12.1+cu113 torchaudio-0.12.1+cu113 torchvision-0.13.1+cu113 typing-extensions-4.7.1 urllib3-2.0.3

[notice] A new release of pip available: 22.3.1 -> 23.1.2 [notice] To update, run: python.exe -m pip install --upgrade pip Installing requirements for SadTalker WebUI (may take longer time in first time) Launching SadTalker Web UI RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe Traceback (most recent call last): File "C:\AI\stable-diffusion-webui\extensions\SadTalker\Launcher.py", line 199, in start() File "C:\AI\stable-diffusion-webui\extensions\SadTalker\Launcher.py", line 192, in start from app import sadtalker_demo File "C:\AI\stable-diffusion-webui\extensions\SadTalker\app.py", line 3, in from src.gradio_demo import SadTalker File "C:\AI\stable-diffusion-webui\extensions\SadTalker\src\gradio_demo.py", line 3, in from src.utils.preprocess import CropAndExtract File "C:\AI\stable-diffusion-webui\extensions\SadTalker\src\utils\preprocess.py", line 9, in from src.face3d.util.preprocess import align_img File "C:\AI\stable-diffusion-webui\extensions\SadTalker\src\face3d\util\preprocess.py", line 5, in from scipy.io import loadmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker\venv\lib\site-packages\scipy\io_init_.py", line 98, in from .matlab import loadmat, savemat, whosmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker\venv\lib\site-packages\scipy\io\matlab_init_.py", line 45, in from ._mio import loadmat, savemat, whosmat File "C:\AI\stable-diffusion-webui\extensions\SadTalker\venv\lib\site-packages\scipy\io\matlab_mio.py", line 9, in from .mio4 import MatFile4Reader, MatFile4Writer File "C:\AI\stable-diffusion-webui\extensions\SadTalker\venv\lib\site-packages\scipy\io\matlab_mio4.py", line 8, in import scipy.sparse File "C:\AI\stable-diffusion-webui\extensions\SadTalker\venv\lib\site-packages\scipy\sparse_init.py", line 267, in from ._csr import * File "C:\AI\stable-diffusion-webui\extensions\SadTalker\venv\lib\site-packages\scipy\sparse_csr.py", line 10, in from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks, ImportError: numpy.core.multiarray failed to import

Launch unsuccessful. Exiting. Press any key to continue . . .

Can you help resolve? Thanks. Stacie


From: Shadow Cun @.> Sent: Monday, July 3, 2023 12:05 PM To: OpenTalker/SadTalker @.> Cc: Sstan2001 @.>; Comment @.> Subject: Re: [OpenTalker/SadTalker] I keep getting this error does anyone have a solution? _ raise Exception("Failed in loading audio2pose_checkpoint") Exception: Failed in loading audio2pose_checkpoint (Issue #441)

These issues are caused by the version of numpy, just change the scipy version in

https://github.com/OpenTalker/SadTalker//requirements.txt#L9C1-L9C14

by scipy==1.10.1 to scipy.

― Reply to this email directly, view it on GitHubhttps://github.com/OpenTalker/SadTalker/issues/441#issuecomment-1618107884, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZVSDU2ZG5EZ345KKFMD253XOKYPXANCNFSM6AAAAAAZTFT5V4. You are receiving this because you commented.Message ID: @.***>

Sstan2001 avatar Jul 06 '23 14:07 Sstan2001

您可以尝试从此https://raw.githubusercontent.com/Winfredy/SadTalker/main/scripts/download_models.sh下载所有检查点,并将它们放入SADTALKER_CHECKPOINTScheckpoints目录中。

下载所有文件。将文件路径设置为显示为该图像,这应该可以解决问题。 571688039494_pic_hd

非常感谢!

你好,其他的文件如何寻找, image

HaSaKiYasuooo avatar Jul 11 '23 07:07 HaSaKiYasuooo

Some of the model links give a 404 error

start-life avatar Jul 11 '23 11:07 start-life

you can try to download all checkpoints from this https://raw.githubusercontent.com/Winfredy/SadTalker/main/scripts/download_models.sh, and put them to SADTALKER_CHECKPOINTS 's checkpoints directory.

Download all files. Set the file path to display as this image, and that should solve the problem. 571688039494_ pic_hd

Thank you very much!

Sorry, it cann`t solve my problem image image

LianShuaiLong avatar Jul 21 '23 09:07 LianShuaiLong

I ran to the same issue on windows. All model that I downloaded in `./checkpoints/' have some weird character at the end which is invisible in file explorer.

Click rename the file and delete that character if there is a space at the end. This solve my issue

hyqshr avatar Aug 09 '23 20:08 hyqshr

I keep getting this error does anyone have a solution? _

raise Exception("Failed in loading audio2pose_checkpoint")

Exception: Failed in loading audio2pose_checkpoint pip uninstall scipy-1.10.1 pip install scipy-1.11.2

bikurifacebook avatar Aug 28 '23 06:08 bikurifacebook

You need to download the check points from the bash file: https://raw.githubusercontent.com/Winfredy/SadTalker/main/scripts/download_models.sh If this doesn't work you can try to modify the bash file as follow :

mkdir ./checkpoints  

# lagency download link
curl -L -o ./checkpoints/auido2exp_00300-model.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/auido2exp_00300-model.pth
curl -L -o ./checkpoints/auido2pose_00140-model.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/auido2pose_00140-model.pth
curl -L -o ./checkpoints/epoch_20.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/epoch_20.pth
curl -L -o ./checkpoints/facevid2vid_00189-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/facevid2vid_00189-model.pth.tar
curl -L -o ./checkpoints/shape_predictor_68_face_landmarks.dat https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/shape_predictor_68_face_landmarks.dat
curl -L -o ./checkpoints/wav2lip.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/wav2lip.pth
curl -L -o ./checkpoints/mapping_00229-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/mapping_00229-model.pth.tar
curl -L -o ./checkpoints/mapping_00109-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/mapping_00109-model.pth.tar
curl -L -o ./checkpoints/hub.zip https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/hub.zip
unzip -n ./checkpoints/hub.zip -d ./checkpoints/

#### download the new links.
curl -L -o ./checkpoints/mapping_00109-model.pth.tar https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/mapping_00109-model.pth.tar
curl -L -o ./checkpoints/mapping_00229-model.pth.tar https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/mapping_00229-model.pth.tar
curl -L -o ./checkpoints/SadTalker_V0.0.2_256.safetensors https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_256.safetensors
curl -L -o ./checkpoints/SadTalker_V0.0.2_512.safetensors https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_512.safetensors

curl -L -o ./checkpoints/BFM_Fitting.zip https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/BFM_Fitting.zip
unzip -n ./checkpoints/BFM_Fitting.zip -d ./checkpoints/

### enhancer 
mkdir -p ./gfpgan/weights
curl -L -o ./gfpgan/weights/alignment_WFLW_4HG.pth https://github.com/xinntao/facexlib/releases/download/v0.1.0/alignment_WFLW_4HG.pth
curl -L -o ./gfpgan/weights/detection_Resnet50_Final.pth https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth
curl -L -o ./gfpgan/weights/GFPGANv1.4.pth https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth
curl -L -o ./gfpgan/weights/parsing_parsenet.pth https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth

Then, if the directories 'checkpoints' and 'gfpgan' are not directly in the folder SadTalker, copy and paste them inside the 'SadTalker' Folder.

HellKaiser45 avatar Aug 28 '23 12:08 HellKaiser45

You need to download the check points from the bash file: https://raw.githubusercontent.com/Winfredy/SadTalker/main/scripts/download_models.sh If this doesn't work you can try to modify the bash file as follow :

mkdir ./checkpoints  

# lagency download link
curl -L -o ./checkpoints/auido2exp_00300-model.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/auido2exp_00300-model.pth
curl -L -o ./checkpoints/auido2pose_00140-model.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/auido2pose_00140-model.pth
curl -L -o ./checkpoints/epoch_20.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/epoch_20.pth
curl -L -o ./checkpoints/facevid2vid_00189-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/facevid2vid_00189-model.pth.tar
curl -L -o ./checkpoints/shape_predictor_68_face_landmarks.dat https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/shape_predictor_68_face_landmarks.dat
curl -L -o ./checkpoints/wav2lip.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/wav2lip.pth
curl -L -o ./checkpoints/mapping_00229-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/mapping_00229-model.pth.tar
curl -L -o ./checkpoints/mapping_00109-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/mapping_00109-model.pth.tar
curl -L -o ./checkpoints/hub.zip https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/hub.zip
unzip -n ./checkpoints/hub.zip -d ./checkpoints/

#### download the new links.
curl -L -o ./checkpoints/mapping_00109-model.pth.tar https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/mapping_00109-model.pth.tar
curl -L -o ./checkpoints/mapping_00229-model.pth.tar https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/mapping_00229-model.pth.tar
curl -L -o ./checkpoints/SadTalker_V0.0.2_256.safetensors https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_256.safetensors
curl -L -o ./checkpoints/SadTalker_V0.0.2_512.safetensors https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_512.safetensors

curl -L -o ./checkpoints/BFM_Fitting.zip https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/BFM_Fitting.zip
unzip -n ./checkpoints/BFM_Fitting.zip -d ./checkpoints/

### enhancer 
mkdir -p ./gfpgan/weights
curl -L -o ./gfpgan/weights/alignment_WFLW_4HG.pth https://github.com/xinntao/facexlib/releases/download/v0.1.0/alignment_WFLW_4HG.pth
curl -L -o ./gfpgan/weights/detection_Resnet50_Final.pth https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth
curl -L -o ./gfpgan/weights/GFPGANv1.4.pth https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth
curl -L -o ./gfpgan/weights/parsing_parsenet.pth https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth

Then, if the directories 'checkpoints' and 'gfpgan' are not directly in the folder SadTalker, copy and paste them inside the 'SadTalker' Folder.

Thanks!

KriszKecskes avatar Sep 03 '23 21:09 KriszKecskes

In the more recent version of https://github.com/OpenTalker/SadTalker/blob/cd4c0465ae0b54a6f85af57f5c65fec9fe23e7f8/scripts/download_models.sh#L5C75-L5C84 the "lagency download link" wget commands are commented out. But the Stable Diffusion extension still needs them apparently?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Source\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Source\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "C:\Source\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\Source\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\Source\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "C:\Source\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "C:\Source\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "C:\Source\stable-diffusion-webui\modules\call_queue.py", line 13, in f
    res = func(*args, **kwargs)
  File "C:\Source\stable-diffusion-webui/extensions/SadTalker\src\gradio_demo.py", line 49, in test
    self.audio_to_coeff = Audio2Coeff(self.sadtalker_paths, self.device)
  File "C:\Source\stable-diffusion-webui/extensions/SadTalker\src\test_audio2coeff.py", line 50, in __init__
    raise Exception("Failed in loading audio2pose_checkpoint")
Exception: Failed in loading audio2pose_checkpoint

Anyhow I've managed to fix the error in Windows 11 as follows:

  • commenting in all the "lagency download link" commands here i.e. removing the # symbol before the commands, e.g. # wget -nc -> wget -nc
  • choco install wget (in an elevated prompt i.e. with administrator privileges)
  • cd "C:\Source\stable-diffusion-webui\extensions\SadTalker" (be aware of the "" surrounding the path!) replace C:\Source\stable-diffusion-webui\ with the path wherever you've installed SD!
  • ./download_models.sh
  • within my main UI webui-user.bat (for me "C:\Source\stable-diffusion-webui\webui-user.bat") I've added the following line above call webui.bat: set SADTALKER_CHECKPOINTS=C:\\Source\\stable-diffusion-webui\\extensions\\SadTalker\\scripts\\checkpoints (be aware of the double \\ or it will not recognize your path!)
  • Then restart webui-user.bat as usual, and I was able to use the extension without further problems

cyril23 avatar Nov 08 '23 09:11 cyril23

I had the same problem. It was just that I created the folder with the name "checkpoint" instead of "checkpoints"

rucarpe avatar Nov 29 '23 14:11 rucarpe

For some reason my .sh file won't open, it gives an invalid read error. I didn't bother to figure out how to fix it and just made a bat file that does the same thing.

The contents of my bat file that downloads the models:

@echo off

mkdir .\checkpoints

curl -L -o .\checkpoints\auido2exp_00300-model.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/auido2exp_00300-model.pth
curl -L -o .\checkpoints\auido2pose_00140-model.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/auido2pose_00140-model.pth
curl -L -o .\checkpoints\epoch_20.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/epoch_20.pth
curl -L -o .\checkpoints\facevid2vid_00189-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/facevid2vid_00189-model.pth.tar
curl -L -o .\checkpoints\shape_predictor_68_face_landmarks.dat https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/shape_predictor_68_face_landmarks.dat
curl -L -o .\checkpoints\wav2lip.pth https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/wav2lip.pth
curl -L -o .\checkpoints\mapping_00229-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/mapping_00229-model.pth.tar
curl -L -o .\checkpoints\mapping_00109-model.pth.tar https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/mapping_00109-model.pth.tar
curl -L -o .\checkpoints\hub.zip https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/hub.zip
curl -L -o .\checkpoints\BFM_Fitting.zip https://github.com/Winfredy/SadTalker/releases/download/v0.0.2/BFM_Fitting.zip

unzip -n .\checkpoints\hub.zip -d .\checkpoints\

curl -L -o .\checkpoints\mapping_00109-model.pth.tar https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/mapping_00109-model.pth.tar
curl -L -o .\checkpoints\mapping_00229-model.pth.tar https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/mapping_00229-model.pth.tar
curl -L -o .\checkpoints\SadTalker_V0.0.2_256.safetensors https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_256.safetensors
curl -L -o .\checkpoints\SadTalker_V0.0.2_512.safetensors https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_512.safetensors

unzip -n .\checkpoints\BFM_Fitting.zip -d .\checkpoints\

mkdir .\gfpgan\weights

curl -L -o .\gfpgan\weights\alignment_WFLW_4HG.pth https://github.com/xinntao/facexlib/releases/download/v0.1.0/alignment_WFLW_4HG.pth
curl -L -o .\gfpgan\weights\detection_Resnet50_Final.pth https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth
curl -L -o .\gfpgan\weights\GFPGANv1.4.pth https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth
curl -L -o .\gfpgan\weights\parsing_parsenet.pth https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth

Jeefrect avatar Jan 19 '24 07:01 Jeefrect

你们仔细检查一下看看 是不是这个 文件夹的名字打错了,我之前少打了一个S ,研究了一晚上,犯了一个超级低级的错误!

daxige9527 avatar Jan 23 '24 15:01 daxige9527

I managed to fix the issue by removing "*" symbol which was for some reason added to the end of file names of checkpoints why downloading the data via download script. Hope it may help someone

Maikyno avatar Feb 27 '24 11:02 Maikyno

Good afternoon everyone! I have the same problem" raise exception ("Failed to load audio2pose_checkpoint") Exception: Failed to load audio2pose_checkpoint." This is caused by ""FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints\auido2pose_00140-model.pth'"". I'm guessing it's related to this: https://github.com/OpenTalker/SadTalker?tab=readme-ov-file#old-version. This part describes that this model was used in the old version. But I don't see any explanation on how to use the new model.

Full6bClass avatar Mar 06 '24 07:03 Full6bClass

The following helped me. Downloaded the v0.0.2 rc release from the link - https://github.com/OpenTalker/SadTalker/releases

replace in req.txt (I did it differently, after installing everything, I disabled the update altogether in the launcher lines from 184 to 187) numba==0.59 scipy==1.12 numpy==1.23.4 gradio==3.31.0

replace this: from torchvision.transforms.functional_tensor import rgb_to_grayscale on this: from torchvision.transforms.functional import rgb_to_grayscale

I’m also too poor for a GPU and use a CPU, so I had to change line 868 in the “serialization.py” file (previously there were 671, look for a search if that) map_location: MAP_LOCATION = None to map_location: MAP_LOCATION = 'cpu'. I apologize that there is a lot that doesn’t relate to this topic, but I hope this will help many at a time.

Full6bClass avatar Mar 06 '24 10:03 Full6bClass