I installed vladmandic/automatic today on a new WSL 2.0 environment. Everything seems to work fine and faster than before.
I installed the SadTalker extension through a manual installation, and also added the transformers folder. But when I booted the system with ./webui.sh, SadTalker didn't appear among the extensions.
This error appeared:
AttributeError: module 'numpy' has no attribute 'complex'.
np.complex was a deprecated alias for the builtin complex. To avoid this error in existing code, use complex by
itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use
np.complex128 here.
The aliases were originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Running on local URL: http://127.0.0.1:7861
ChatGPT suggested that I add in the constrantq.py file in line 1058 dtype=np.complex128, instead of dtype=np.complex,
And indeed after that SadTalker came up.
But another problem appeared. While running a sound and picture task, another error appeared:
pred = calculate_points(heatmaps).reshape(-1, 2)
File "/home/shmuel2/vlad/venv/lib/python3.10/site-packages/facexlib/alignment/awing_arch.py", line 18, in calculate_po
ints
preds = preds.astype(np.float, copy=False)
File "/home/shmuel2/vlad/venv/lib/python3.10/site-packages/numpy/init.py", line 305, in getattr
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float' by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64`
here.
The aliases were originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
I have not found a solution here, and now I am unable to use the extension.
Version Platform Description
Version Platform Description
Device name DESKTOP-89OI1TC
Processor AMD Ryzen 7 6800H with Radeon Graphics 3.20 GHz
Installed RAM 32.0 GB (31.2 GB usable)
Device ID 57F773B6-2052-4400-9EEE-5DA99ADC9758
Product ID 00331-20350-00000-AA537
System type 64-bit operating system, x64-based processor
Edition Windows 10 Pro
Version 22H2
Installed on 27/06/2020
OS build 19045.2913
Experience Windows Feature Experience Pack 1000.19041.1000.0
GPU: NVIDIA RTX 3090
Issue Description
I installed vladmandic/automatic today on a new WSL 2.0 environment. Everything seems to work fine and faster than before. I installed the SadTalker extension through a manual installation, and also added the transformers folder. But when I booted the system with ./webui.sh, SadTalker didn't appear among the extensions. This error appeared: AttributeError: module 'numpy' has no attribute 'complex'.
np.complex
was a deprecated alias for the builtincomplex
. To avoid this error in existing code, usecomplex
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.complex128
here. The aliases were originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations Running on local URL: http://127.0.0.1:7861ChatGPT suggested that I add in the constrantq.py file in line 1058 dtype=np.complex128, instead of dtype=np.complex,
And indeed after that SadTalker came up.
But another problem appeared. While running a sound and picture task, another error appeared:
pred = calculate_points(heatmaps).reshape(-1, 2) File "/home/shmuel2/vlad/venv/lib/python3.10/site-packages/facexlib/alignment/awing_arch.py", line 18, in calculate_po ints preds = preds.astype(np.float, copy=False) File "/home/shmuel2/vlad/venv/lib/python3.10/site-packages/numpy/init.py", line 305, in getattr raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat' by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use
np.float64` here. The aliases were originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecationsI have not found a solution here, and now I am unable to use the extension.
Version Platform Description
Version Platform Description Device name DESKTOP-89OI1TC Processor AMD Ryzen 7 6800H with Radeon Graphics 3.20 GHz Installed RAM 32.0 GB (31.2 GB usable) Device ID 57F773B6-2052-4400-9EEE-5DA99ADC9758 Product ID 00331-20350-00000-AA537 System type 64-bit operating system, x64-based processor
Edition Windows 10 Pro Version 22H2 Installed on 27/06/2020 OS build 19045.2913 Experience Windows Feature Experience Pack 1000.19041.1000.0 GPU: NVIDIA RTX 3090
I use Chrome browser
URL link of the extension
https://github.com/OpenTalker/SadTalker