[Guide] Setting up Faceswap-gce-os on Gcloud.

Want to use Faceswap in The Cloud? This is not directly supported by the Devs, but you may find community support here


Forum rules

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

NB: The Devs do not directly support using Cloud based services, but you can find community support here.

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

User avatar
pfakanator
Posts: 30
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 3 times
Been thanked: 12 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by pfakanator »

Excellent! I'm glad you found the solution.

Tags:

User avatar
FuorissimoX
Posts: 56
Joined: Mon Sep 21, 2020 6:49 am
Location: Italy
Has thanked: 10 times
Been thanked: 2 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by FuorissimoX »

I cant say that is user friendly, google cluoud site...

Thank you so much for your support

User avatar
pfakanator
Posts: 30
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 3 times
Been thanked: 12 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by pfakanator »

Happy to help.

User avatar
FuorissimoX
Posts: 56
Joined: Mon Sep 21, 2020 6:49 am
Location: Italy
Has thanked: 10 times
Been thanked: 2 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by FuorissimoX »

I complete procedure and my FS is running on google VM.

Now are about 1h i try to upload my file. Cut & past don't work. So i try to upload as bucket but i can't see inside my VM.
Its a rar that contain my FS job.

How how i can do it?


--
im logged on cloud account, using VM browser > storage > bucket > download

I lost 2 hour :|

User avatar
pfakanator
Posts: 30
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 3 times
Been thanked: 12 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by pfakanator »

I would recommend using a cloud storage provider like gdrive or Dropbox then download your job via the browser inside the VM.

User avatar
FuorissimoX
Posts: 56
Joined: Mon Sep 21, 2020 6:49 am
Location: Italy
Has thanked: 10 times
Been thanked: 2 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by FuorissimoX »

And so on, the opposite?
Google Drive made the same?

Thank you :mrgreen:

User avatar
FuorissimoX
Posts: 56
Joined: Mon Sep 21, 2020 6:49 am
Location: Italy
Has thanked: 10 times
Been thanked: 2 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by FuorissimoX »

Some way for do the same (with gui) on other service like Vast?

Cloud Google have only Tesla Gpu. I think Is better use 4 X RTX 2080 TI

User avatar
pfakanator
Posts: 30
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 3 times
Been thanked: 12 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by pfakanator »

It is possible, but the task is not trivial and outside of the scope of this guide.

User avatar
reaper69
Posts: 6
Joined: Sun Nov 01, 2020 8:32 am

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by reaper69 »

Hey, I got everything set up, it was running well, but I checked in today and I was getting this in the terminal. How do I fix this?

Setting Faceswap backend to NVIDIA
There was an error reading from the Nvidia Machine Learning Library. Either you do not have an Nvidia GPU (in which case this warning can be ignored) or the most likely cause is incorrectly installed drivers. If this is the case, Please remove and reinstall your Nvidia drivers before reporting.Original Error: Driver Not Loaded
No GPU detected. Switching to CPU mode
11/01/2020 08:38:58 INFO Log level set to: INFO


User avatar
pfakanator
Posts: 30
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 3 times
Been thanked: 12 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by pfakanator »

It sounds like you don’t have a gpu attached to your VM. Double check your virtual machine configuration.


User avatar
reaper69
Posts: 6
Joined: Sun Nov 01, 2020 8:32 am

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by reaper69 »

On the GCloud VM details, it shows that I have a P100 attached. This is the second time it has happened and it's stumping me. Usually this occurs after I leave a job running on Fswap overnight, and the issue persists after a restart of the VM. Have you run into this issue before?


User avatar
pfakanator
Posts: 30
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 3 times
Been thanked: 12 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by pfakanator »

That's a new one for me. I have no idea why that would be happening.


User avatar
reaper69
Posts: 6
Joined: Sun Nov 01, 2020 8:32 am

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by reaper69 »

The OS is based off Ubuntu right?


User avatar
torzdf
Posts: 1422
Joined: Fri Jul 12, 2019 12:53 am
Answers: 125
Has thanked: 47 times
Been thanked: 275 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by torzdf »

Yes

My word is final


User avatar
reaper69
Posts: 6
Joined: Sun Nov 01, 2020 8:32 am

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by reaper69 »

So Ive been deleting the VM instance, keeping the disk, create a new VM instance with the old disk and it works again. But I'm trying to figure out why the P100 is dropping out randomly in the first place


User avatar
Joe100
Posts: 5
Joined: Fri Nov 13, 2020 11:30 am
Has thanked: 8 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by Joe100 »

Great guide, thank you! I learned a lot about Linux, VMs and gcp.
I have a similar problem with GPU: I attached a Tesla T4 to my VM but on launch of faceswap, I always get that same GPU error and it switches to CPU mode. Is this custom image just for another model of GPU like P100?
I’ve tried installing new Nvidia GPU drivers as per GCP website (they advise installing via Cuda and it installs 450) but I suspect that this is not working either because it installs cuda 11 and this version of cuda is not supported in faceswap?
I tried another generic Google VM image and eventually got nvidia drivers installed and working for the T4. Strange!

Last edited by Joe100 on Fri Nov 13, 2020 11:39 am, edited 1 time in total.

User avatar
Replicon
Posts: 29
Joined: Mon Mar 22, 2021 4:24 pm
Been thanked: 1 time

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by Replicon »

2 Questions, if I may:

It looks like this guide wants us to install faceswap on the instance that's started using the image... At first when reading through, I had assumed the point of the image is that it's already set up.

What does the image actually give us, that a fresh vanilla linux GCE instance with a GPU attached doesn't? Is it just to ensure people starting up are using the latest version of faceswap?

Ultimately, I plan to create an image with faceswap installed, and my wrapper scripts and directories configured and everything, to make automation easier...

... does the faceswap install differ if you change GPUs? (assuming I stick to NVIDIA). Like, if I were to bring up an instance with a K80, install faceswap, create an image, and then create a NEW instance, from that image, with a P100 instead of a K80, will that cause problems? (only asking because that might also be why the image doesn't just come with faceswap already installed and configured).


User avatar
pfakanator
Posts: 30
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 3 times
Been thanked: 12 times

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by pfakanator »

The image is just a pre-configured VM for faceswap with a desktop launcher that pulls the latest installer and runs it. It's stripped down Ubuntu w/ the Nvidia drivers already installed. If you wish to upgrade to the latest Nvidia drivers you'll need to install a compiler and kernel headers. The purpose of the image is to be turnkey. Building one yourself isn't particularly difficult.

Once Nvidia drivers are setup on your VM you can pop back and forth from whatever GPU you want.


User avatar
Replicon
Posts: 29
Joined: Mon Mar 22, 2021 4:24 pm
Been thanked: 1 time

Re: [Guide] Setting up Faceswap-gce-os on Gcloud.

Post by Replicon »

Ah the driver setup, that makes sense, I guess they aren't included on the more basic images. Thanks!


Post Reply