xaviviro / refacer

Refacer: One-Click Deepfake Multi-Face Swap Tool
MIT License
530 stars 130 forks source link

FileNotFoundError when start #25

Closed denchebur closed 1 year ago

denchebur commented 1 year ago

installed with tutorial, but when run app.py it seems like this: Traceback (most recent call last): File "D:\work\a\verify\refacer\app.py", line 17, in refacer = Refacer(force_cpu=args.force_cpu,colab_performance=args.colab_performance) File "D:\work\a\verify\refacer\refacer.py", line 32, in init self.__check_encoders() File "D:\work\a\verify\refacer\refacer.py", line 230, in check_encoders commandout = subprocess.run(command, check=True, capture_output=True).stdout File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

rmhckrkz commented 1 year ago

installed with tutorial, but when run app.py it seems like this: Traceback (most recent call last): File "D:\work\a\verify\refacer\app.py", line 17, in refacer = Refacer(force_cpu=args.force_cpu,colab_performance=args.colab_performance) File "D:\work\a\verify\refacer\refacer.py", line 32, in init self.__check_encoders() File "D:\work\a\verify\refacer\refacer.py", line 230, in __check_encoders commandout = subprocess.run(command, check=True, capture_output=True).stdout File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run with Popen(*popenargs, kwargs) as process: File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in init** self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

Follow this link: https://www.hostinger.com/tutorials/how-to-install-ffmpeg

xaviviro commented 1 year ago

Could you please paste the result of running ffmpeg in the same terminal where you've executed Refacer?

xaviviro commented 1 year ago

duplicated: #12