Fix the issue where SadTalker cannot be used on Stable Diffusion webui 1.8.0
For specific details, update to 1.8.0 using SadTalker with an error message np. complex, and then upgrade librosa to 0.10 Subsequently, we encountered an issue with "AttributeError: module 'numpy' has no attribute 'float'" and updated the code to np.float32
Then we encountered the issue of "alueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimension. The detected shape was (5,)+inhomogeneous pa". In response to the error message, we added the dtype attribute of np. array, and now it is running normally
The effect of the final normal image:
this works. please approve this commit
this works. please approve this commit
It's been a while since the official update, so it's probably not possible to merge in the short term. It can only be found and used by whoever finds it