Comments (9)
Hi, my sad talker version does not run anymore. The error message says that the numpy version is wrong. How can i repair this?
I have the same issue, it comes from the following section of code :
def calculate_points(heatmaps): # change heatmaps to landmarks B, N, H, W = heatmaps.shape HW = H * W BN_range = np.arange(B * N) heatline = heatmaps.reshape(B, N, HW) indexes = np.argmax(heatline, axis=2) preds = np.stack((indexes % W, indexes // W), axis=2) preds = preds.astype(np.float, copy=False) <--- this line inr = indexes.ravel()in the file
src/face3d/util/my_awing_arch.py
I tried to convert it to normal python float and it went away, but now I still have this error : File "C:\Users\stable-diffusion-webui/extensions/SadTalker\src\face3d\util\preprocess.py", line 101, in align_img trans_params = np.array([w0, h0, s, t[0], t[1]]) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5,) + inhomogeneous part.
NOTE : I had a similar issue before with the librosa library, but it was with the np.comlex, it was similar to this one with np.float, so I changed it from the source code of the librosa library ( from np.complex to complex ).
I had the exact same issue and was stuck at the same error. After a little research i figured its because the array contains int and float and therefor throws that error. Explcitly specifying that it can take an object fixed it:
In file src\face3d\util\preprocessor.py
line 101 I replaced trans_params = np.array([w0, h0, s, t[0], t[1]])
with trans_params = np.array([w0, h0, s, t[0], t[1]], dtype=object)
(I also had to fix the np.complex and np.float issue before this)
from sadtalker.
Hi, my sad talker version does not run anymore. The error message says that the numpy version is wrong. How can i repair this?
I have the same issue, it comes from the following section of code :
def calculate_points(heatmaps): # change heatmaps to landmarks B, N, H, W = heatmaps.shape HW = H * W BN_range = np.arange(B * N) heatline = heatmaps.reshape(B, N, HW) indexes = np.argmax(heatline, axis=2) preds = np.stack((indexes % W, indexes // W), axis=2) preds = preds.astype(np.float, copy=False) <--- this line inr = indexes.ravel()in the file
src/face3d/util/my_awing_arch.py
I tried to convert it to normal python float and it went away, but now I still have this error : File "C:\Users\stable-diffusion-webui/extensions/SadTalker\src\face3d\util\preprocess.py", line 101, in align_img trans_params = np.array([w0, h0, s, t[0], t[1]]) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5,) + inhomogeneous part.
NOTE : I had a similar issue before with the librosa library, but it was with the np.comlex, it was similar to this one with np.float, so I changed it from the source code of the librosa library ( from np.complex to complex ).
I had the exact same issue and was stuck at the same error. After a little research i figured its because the array contains int and float and therefor throws that error. Explcitly specifying that it can take an object fixed it:
In file
src\face3d\util\preprocessor.py
line 101 I replacedtrans_params = np.array([w0, h0, s, t[0], t[1]])
withtrans_params = np.array([w0, h0, s, t[0], t[1]], dtype=object)
(I also had to fix the np.complex and np.float issue before this)
It worked perfectly, thanks G.
from sadtalker.
same problem if i use 1.8
from sadtalker.
from sadtalker.
IF the devs are only active this would have been an easy job to fix
from sadtalker.
try use "cfloat"?
from sadtalker.
try use "cfloat"?
Can you go into more detail? Should we change the code somewhere?
from sadtalker.
Hi, my sad talker version does not run anymore. The error message says that the numpy version is wrong. How can i repair this?
I have the same issue, it comes from the following section of code :
def calculate_points(heatmaps):
# change heatmaps to landmarks
B, N, H, W = heatmaps.shape
HW = H * W
BN_range = np.arange(B * N)
heatline = heatmaps.reshape(B, N, HW)
indexes = np.argmax(heatline, axis=2)
preds = np.stack((indexes % W, indexes // W), axis=2)
preds = preds.astype(np.float, copy=False) <--- this line
inr = indexes.ravel()
in the file src/face3d/util/my_awing_arch.py
I tried to convert it to normal python float and it went away, but now I still have this error :
File "C:\Users\stable-diffusion-webui/extensions/SadTalker\src\face3d\util\preprocess.py", line 101, in align_img
trans_params = np.array([w0, h0, s, t[0], t[1]])
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5,) + inhomogeneous part.
NOTE :
I had a similar issue before with the librosa library, but it was with the np.comlex, it was similar to this one with np.float, so I changed it from the source code of the librosa library ( from np.complex to complex ).
from sadtalker.
Take a look here at a solution that works 100%
#822 (comment)
from sadtalker.
Related Issues (20)
- FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints\\auido2pose_00140-model.pth' HOT 3
- dd
- ModuleNotFoundError: No module named 'gradio'
- AttributeError: 'Blocks' object has no attribute 'queue'
- 这个问题怎么解决呀,求大神指点 HOT 2
- 希望大神光顾这个问题~ HOT 28
- 救命啊~大神们
- ERROR: Cannot activate python venv, aborting...
- TypeError: 'ModelManager' object is not subscriptable
- 4090GPU image thousand writing need half hour
- gpu4090 一千文字 图像制作数字人,需要半个小时
- GPU4090 It takes half an hour to make a digital person with a thousand words image
- 我的研究进展
- Who needs high-quality lip sync - contact me! HOT 3
- what's worry??
- 这是什么错误 HOT 1
- who can help me?
- who can help me HOT 1
- Multiple GPUs
- GFPGAN as Face enhancer 点上特别满进度 然后失败 进度进行不下去了 应该怎么解决呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sadtalker.