various issues on Colab #461

Open
opened 2024-03-28 10:58:16 +01:00 by elisa5626 · 2 comments
elisa5626 commented 2024-03-28 10:58:16 +01:00 (Migrated from github.com)

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

Hi I have these messages: AttributeError Traceback (most recent call last) [<ipython-input-14-034855564a94>](https://localhost:8080/#) 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](https://localhost:8080/#) 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 2024-06-03 21:22:19 +02:00 (Migrated from github.com)

I am having the same problem:

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

I am having the same problem: AttributeError: module 'numpy' has no attribute 'float'
AngelLagr commented 2025-09-08 21:47:56 +02:00 (Migrated from github.com)

You can modify np.float into np.float64. It should fix it, it basicaly depends on your numpy version

You can modify np.float into np.float64. It should fix it, it basicaly depends on your numpy version
Sign in to join this conversation.