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

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.
User avatar
pfakanator
Posts: 25
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 1 time
Been thanked: 11 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: 52
Joined: Mon Sep 21, 2020 6:49 am
Location: Italy
Has thanked: 10 times
Been thanked: 1 time

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: 25
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 1 time
Been thanked: 11 times

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

Post by pfakanator »

Happy to help.

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

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: 25
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 1 time
Been thanked: 11 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: 52
Joined: Mon Sep 21, 2020 6:49 am
Location: Italy
Has thanked: 10 times
Been thanked: 1 time

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: 52
Joined: Mon Sep 21, 2020 6:49 am
Location: Italy
Has thanked: 10 times
Been thanked: 1 time

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: 25
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 1 time
Been thanked: 11 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: 25
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 1 time
Been thanked: 11 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: 25
Joined: Thu Jul 18, 2019 5:02 pm
Answers: 1
Has thanked: 1 time
Been thanked: 11 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: 996
Joined: Fri Jul 12, 2019 12:53 am
Answers: 127
Has thanked: 28 times
Been thanked: 191 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.

Post Reply