Page 1 of 1

[Error] cannot connect to X server (Running Faceswap in headless mode)

Posted: Wed Feb 19, 2020 9:19 am
by Theodor
Have problem with start train on linux server
Work on ssh
cannot connect to X server

Re: [Error] cannot connect to X server

Posted: Wed Feb 19, 2020 9:59 am
by torzdf
This is kind of outside of the scope of faceswap.

You need to make sure you have SSH set up for X Forwarding.

I would recommend either using a VNC server though, so disconnects don't stop training.

Re: [Error] cannot connect to X server

Posted: Wed Feb 19, 2020 10:25 am
by Theodor
torzdf wrote:
Wed Feb 19, 2020 9:59 am
This is kind of outside of the scope of faceswap.

You need to make sure you have SSH set up for X Forwarding.

I would recommend either using a VNC server though, so disconnects don't stop training.
I think it's about turning on working without display mode

Re: [Error] cannot connect to X server

Posted: Wed Feb 19, 2020 10:30 am
by torzdf
You can use Faceswap purely headless, just don't launch the GUI

Code: Select all

python faceswap.py train -h

Re: [Error] cannot connect to X server

Posted: Wed Feb 19, 2020 10:51 am
by Theodor
torzdf wrote:
Wed Feb 19, 2020 10:30 am
You can use Faceswap purely headless, just don't launch the GUI

Code: Select all

python faceswap.py train -h
It's helped. Thanks so much.