neuralchen / SimSwap

An arbitrary face-swapping framework on images and videos with one single trained model!
Other
4.57k stars 899 forks source link

various issues on Colab #461

Open elisa5626 opened 8 months ago

elisa5626 commented 8 months ago

Hi I have these messages:

AttributeError Traceback (most recent call last) in <cell line: 22>() 39 latend_id = latend_id.to('cuda') 40 ---> 41 video_swap(opt.video_path, latend_id, model, app, opt.output_path, temp_results_dir=opt.temp_path, use_mask=opt.use_mask, no_simswaplogo=True)

2 frames /usr/local/lib/python3.10/dist-packages/numpy/init.py in getattr(attr) 317 318 if attr in former_attrs: --> 319 raise AttributeError(former_attrs[attr]) 320 321 if attr == 'testing':

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

TransAmMan commented 5 months ago

I am having the same problem:

AttributeError: module 'numpy' has no attribute 'float'