Open SirDuffy opened 5 months ago
same problem if i use 1.8
me too
IF the devs are only active this would have been an easy job to fix
try use "cfloat"?
try use "cfloat"?
Can you go into more detail? Should we change the code somewhere?
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.
Here is my config :
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 ).
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.
Here is my config :
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)
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.
Here is my config :
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.
Take a look here at a solution that works 100% https://github.com/OpenTalker/SadTalker/issues/822#issuecomment-2053857698
Hi, my sad talker version does not run anymore. The error message says that the numpy version is wrong. How can i repair this?