Page 1 of 1

GUI Doesn't Launch

Posted: Sat May 22, 2021 9:17 pm
by Hollywood

Hi, I have been trying to install faceswap on a different drive and it had been working good previously. I uninstalled it on the other drive and installed it on the new one. However when I click the gui launcher file the command line opens and then immediately closes and the gui never comes up. I followed all the steps in the FAQ for the gui not launching but it didn't help. I have tried installing for Nvidia GPU and CPU and both had the same issue I would send a log file but I don't know where I would get one. Let me know if you need more information or have a possible fix.


Re: GUI Doesn't Launch

Posted: Sun May 23, 2021 11:21 am
by torzdf

Go to the faceswap folder, and look for a file called (something like) gui_win_launcher.bat.

Open the file in notepad and copy the contents.

Open up a command prompt and paste the contents of the file and press enter. You should now be able to see the issue without the window closing.


Re: GUI Doesn't Launch

Posted: Mon May 24, 2021 1:51 am
by Hollywood

Unfourtantly that doesn't work. It sends out this message and doesn't launch. From my limited understanding it sounds like something wrong with MiniConda but I could be wrong.

"C:\Users\(removed)\Miniconda3\scripts\activate.bat" && conda activate "faceswap" && python "F:\faceswap/faceswap.py" gui
Setting Faceswap backend to CPU
Traceback (most recent call last):
File "F:\faceswap/faceswap.py", line 6, in <module>
from lib.cli import args as cli_args
File "F:\faceswap\lib\cli\args.py", line 22, in <module>
GPUS = GPUStats().cli_devices
File "F:\faceswap\lib\gpu_stats.py", line 76, in init
self.
initialize(log)
File "F:\faceswap\lib\gpu_stats.py", line 204, in initialize
self.
get_handles()
File "F:\faceswap\lib\gpu_stats.py", line 255, in get_handles
self.
handles = [pynvml.nvmlDeviceGetHandleByIndex(i)
File "F:\faceswap\lib\gpu_stats.py", line 255, in <listcomp>
self._handles = [pynvml.nvmlDeviceGetHandleByIndex(i)
File "C:\Users\(removed)\MiniConda3\envs\faceswap\lib\site-packages\pynvml.py", line 814, in nvmlDeviceGetHandleByIndex
_nvmlCheckReturn(ret)
File "C:\Users\(removed)\MiniConda3\envs\faceswap\lib\site-packages\pynvml.py", line 310, in _nvmlCheckReturn
raise NVMLError(ret)
pynvml.NVMLError_NotSupported: Not Supported


Re: GUI Doesn't Launch

Posted: Mon May 24, 2021 10:44 am
by torzdf

No, that's exactly what we wanted. It tells us why the GUI isn't launching.

What GPU do you have? You GPU is either unsupported or you have a driver/hardware issue.


Re: GUI Doesn't Launch

Posted: Wed May 26, 2021 9:49 pm
by Hollywood

Yeah I have an RTX 3000 series which is why I was setting it to work with the CPU. Can I not use faceswap with the CPU if I have a 3000 series GPU?


Re: GUI Doesn't Launch

Posted: Wed May 26, 2021 10:08 pm
by torzdf

You can. This pynvml.NVMLError_NotSupported: Not Supported suggests your drivers are not up to date.

Otherwise:
viewtopic.php?f=4&t=1226


Re: GUI Doesn't Launch

Posted: Wed May 26, 2021 10:29 pm
by Hollywood

Strange my drivers are up to date and I even did a clean install. Guess I'll check out the other guide.