You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your excellent and user-friendly project.
I’m reporting an error that occurred in my environment.
While it works fine with images, an error occurs when trying to make the video GreenBack.
The path to FFmpeg is set correctly.
Windows 10 Home 22H2 19045.4412
NVIDIA-SMI 531.61 Driver Version: 531.61 CUDA Version: 12.1
Python 3.10.11
K:\>transparent-background --source K:\a.mkv --type green
Settings -> Mode=base, Device=cuda:0, Torchscript=disabled
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\lawra\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\lawra\AppData\Local\Programs\Python\Python310\Scripts\transparent-background.exe\__main__.py", line 7, in <module>
File "C:\Users\lawra\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background\Remover.py", line 264, in console
loader = eval(_format + "Loader")(args.source)
File "<string>", line 1, in <module>
NameError: name 'Loader' is not defined
K:>transparent-background --source K:\a.mkv
Settings -> Mode=base, Device=cuda:0, Torchscript=disabled
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\user0\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\user0\AppData\Local\Programs\Python\Python310\Scripts\transparent-background.exe_main.py", line 7, in
File "C:\Users\user0\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background\Remover.py", line 264, in console
loader = eval(_format + "Loader")(args.source)
File "", line 1, in
NameError: name 'Loader' is not defined
Hi @doskebaby, the error happens because of the mkv extension which is currently not supported. I think it may work by just renaming the file such as a.mp4 since opencv would accept mkv files, but not sure about it.
Please refer to the source code down below for supported video formats
Thank you for your excellent and user-friendly project.
I’m reporting an error that occurred in my environment.
While it works fine with images, an error occurs when trying to make the video GreenBack.
The path to FFmpeg is set correctly.
Windows 10 Home 22H2 19045.4412
NVIDIA-SMI 531.61 Driver Version: 531.61 CUDA Version: 12.1
Python 3.10.11
The text was updated successfully, but these errors were encountered: