SimSwap
SimSwap copied to clipboard
AttributeError: module 'numpy' has no attribute 'float'
I am running SimSwap in Colab. I am getting an AttrbuteError, but I have no clue how to fix it.
The failure is on the last line
"video_swap(opt.video_path, latend_id, model, app, opt.output_path, temp_results_dir=opt.temp_path, use_mask=opt.use_mask)"
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, use np.float64
here.
The aliases was 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
Gemini Suggested Changes: To fix the error, replace all instances of np.float with float in the code. however I cannot find places in the code to make the change.