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

Training your model
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
Theodor
Posts: 3
Joined: Wed Feb 19, 2020 9:12 am

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

Post by Theodor » Wed Feb 19, 2020 9:19 am

Have problem with start train on linux server
Work on ssh
cannot connect to X server
by torzdf » 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
Go to full post

User avatar
torzdf
Posts: 559
Joined: Fri Jul 12, 2019 12:53 am
Answers: 88
Has thanked: 17 times
Been thanked: 121 times

Re: [Error] cannot connect to X server

Post by torzdf » 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.
My word is final

User avatar
Theodor
Posts: 3
Joined: Wed Feb 19, 2020 9:12 am

Re: [Error] cannot connect to X server

Post by Theodor » Wed Feb 19, 2020 10:25 am

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

User avatar
torzdf
Posts: 559
Joined: Fri Jul 12, 2019 12:53 am
Answers: 88
Has thanked: 17 times
Been thanked: 121 times

Re: [Error] cannot connect to X server

Post by torzdf » 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
My word is final

User avatar
Theodor
Posts: 3
Joined: Wed Feb 19, 2020 9:12 am

Re: [Error] cannot connect to X server

Post by Theodor » Wed Feb 19, 2020 10:51 am

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.

Locked