nadermx / backgroundremover

Background Remover lets you Remove Background from images and video using AI with a simple command line interface that is free and open source.
https://www.backgroundremoverai.com
MIT License
6.45k stars 535 forks source link

Mac/M1 build using conda throws runtime error #19

Closed rcoenen closed 1 year ago

rcoenen commented 2 years ago

Conda / Python 3.97

backgroundremover -i test.mp4 -o test-01.png OMP: Info #271: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.

rcoenen commented 2 years ago

related to this issue I suppose https://github.com/numba/numba/issues/5520

nadermx commented 1 year ago

Try newest release https://github.com/nadermx/backgroundremover/releases/tag/v0.2.1

fabswt commented 11 months ago

I still have the issue:

OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
output.mov
Traceback (most recent call last):
  File "/opt/homebrew/bin/backgroundremover", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.9/site-packages/backgroundremover/cmd/cli.py", line 239, in main
    remove(
  File "/opt/homebrew/lib/python3.9/site-packages/backgroundremover/bg.py", line 184, in remove
    img = Image.open(io.BytesIO(data)).convert("RGB")
  File "/opt/homebrew/lib/python3.9/site-packages/PIL/Image.py", line 3147, in open
    raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x17ff38f90>

This is on Python 3.11.4 (macOS Venturra 13.4) with the latest release (0.2.4).

A simple empty call will fail as well:

backgroundremover
OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
Traceback (most recent call last):
  File "/opt/homebrew/bin/backgroundremover", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.9/site-packages/backgroundremover/cmd/cli.py", line 187, in main
    if args.input.name.rsplit('.', 1)[1] in ['mp4', 'mov', 'webm', 'ogg', 'gif']:
IndexError: list index out of range
nadermx commented 11 months ago

Can you upload the video you are trying to remove? I do 't have a validation for no input

El mié, 9 de ago de 2023 10:49, fabswt @.***> escribió:

I still have the issue:

OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead. output.mov Traceback (most recent call last): File "/opt/homebrew/bin/backgroundremover", line 8, in sys.exit(main()) File "/opt/homebrew/lib/python3.9/site-packages/backgroundremover/cmd/cli.py", line 239, in main remove( File "/opt/homebrew/lib/python3.9/site-packages/backgroundremover/bg.py", line 184, in remove img = Image.open(io.BytesIO(data)).convert("RGB") File "/opt/homebrew/lib/python3.9/site-packages/PIL/Image.py", line 3147, in open raise UnidentifiedImageError( PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x17ff38f90>

This is on Python 3.11.4 (macOS Venturra 13.4) with the latest release (0.2.4).

A simple empty call will fail as well:

backgroundremover OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead. Traceback (most recent call last): File "/opt/homebrew/bin/backgroundremover", line 8, in sys.exit(main()) File "/opt/homebrew/lib/python3.9/site-packages/backgroundremover/cmd/cli.py", line 187, in main if args.input.name.rsplit('.', 1)[1] in ['mp4', 'mov', 'webm', 'ogg', 'gif']: IndexError: list index out of range

— Reply to this email directly, view it on GitHub https://github.com/nadermx/backgroundremover/issues/19#issuecomment-1671790770, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYACXGGTQWZSQSNEC6PVV3XUO5THANCNFSM5HP22WAQ . You are receiving this because you modified the open/close state.Message ID: @.***>