Closed itskreisler closed 1 year ago
No a echo release, pero si usas el git mas recien, esto ya esta arreglado
On Sun, May 28, 2023 at 4:43 PM Kreisler @.***> wrote:
Input cmd:
python -m backgroundremover.cmd.cli -i input.jpeg -a -ae 15 -o output_.jpeg
Error:
Traceback (most recent call last): File "D:\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\Python\Python310\lib\site-packages\backgroundremover\cmd\cli.py", line 253, in
main() File "D:\Python\Python310\lib\site-packages\backgroundremover\cmd\cli.py", line 239, in main remove( File "D:\Python\Python310\lib\site-packages\backgroundremover\bg.py", line 188, in remove cutout = alpha_matting_cutout( File "D:\Python\Python310\lib\site-packages\backgroundremover\bg.py", line 131, in alpha_matting_cutout structure = np.ones((erode_structure_size, erode_structure_size), dtype=np.int) File "D:\Python\Python310\lib\site-packages\numpy__init.py", line 305, in getattr raise AttributeError(former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. np.int
was a deprecated alias for the builtinint
. To avoid this error in existing code, useint
by itself. Doing this will not modify any behavior and is safe. When replacingnp.int
, you may wish to use e.g.np.int64
ornp.int32
to specify the precision. If you wish to review your current use, check the release note link for additional information. 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. Did you mean: 'inf'?— Reply to this email directly, view it on GitHub https://github.com/nadermx/backgroundremover/issues/80, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYACXDT6IMKULM4KIZAFC3XIPIJTANCNFSM6AAAAAAYSDTIRQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Input cmd:
Error: