GUI Doesn't Launch

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
Hollywood
Posts: 18
Joined: Thu Jun 11, 2020 2:52 pm
Has thanked: 2 times

GUI Doesn't Launch

Post 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.


User avatar
torzdf
Posts: 1503
Joined: Fri Jul 12, 2019 12:53 am
Answers: 126
Has thanked: 54 times
Been thanked: 288 times

Re: GUI Doesn't Launch

Post 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.

My word is final


User avatar
Hollywood
Posts: 18
Joined: Thu Jun 11, 2020 2:52 pm
Has thanked: 2 times

Re: GUI Doesn't Launch

Post 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


User avatar
torzdf
Posts: 1503
Joined: Fri Jul 12, 2019 12:53 am
Answers: 126
Has thanked: 54 times
Been thanked: 288 times

Re: GUI Doesn't Launch

Post 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.

My word is final


User avatar
Hollywood
Posts: 18
Joined: Thu Jun 11, 2020 2:52 pm
Has thanked: 2 times

Re: GUI Doesn't Launch

Post 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?


User avatar
torzdf
Posts: 1503
Joined: Fri Jul 12, 2019 12:53 am
Answers: 126
Has thanked: 54 times
Been thanked: 288 times

Re: GUI Doesn't Launch

Post 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

My word is final


User avatar
Hollywood
Posts: 18
Joined: Thu Jun 11, 2020 2:52 pm
Has thanked: 2 times

Re: GUI Doesn't Launch

Post by Hollywood »

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


Locked