Page 2 of 2

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

Posted: Tue Sep 22, 2020 2:22 am
by pfakanator

Excellent! I'm glad you found the solution.


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

Posted: Tue Sep 22, 2020 2:29 am
by FuorissimoX

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

Thank you so much for your support


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

Posted: Tue Sep 22, 2020 2:32 am
by pfakanator

Happy to help.


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

Posted: Tue Sep 22, 2020 4:37 am
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 :|


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

Posted: Tue Sep 22, 2020 12:51 pm
by pfakanator

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


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

Posted: Wed Sep 23, 2020 1:27 am
by FuorissimoX

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

Thank you :mrgreen:


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

Posted: Wed Sep 23, 2020 1:51 pm
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


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

Posted: Thu Sep 24, 2020 3:54 am
by pfakanator

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


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

Posted: Sun Nov 01, 2020 8:40 am
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


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

Posted: Sun Nov 01, 2020 9:01 pm
by pfakanator

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


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

Posted: Sun Nov 01, 2020 9:53 pm
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?


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

Posted: Mon Nov 02, 2020 7:02 pm
by pfakanator

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


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

Posted: Mon Nov 02, 2020 9:03 pm
by reaper69

The OS is based off Ubuntu right?


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

Posted: Tue Nov 03, 2020 5:46 pm
by torzdf

Yes


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

Posted: Tue Nov 03, 2020 5:53 pm
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


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

Posted: Fri Nov 13, 2020 11:35 am
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!


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

Posted: Sat Mar 27, 2021 12:10 am
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).


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

Posted: Sat Mar 27, 2021 3:43 am
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.


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

Posted: Mon Mar 29, 2021 12:28 am
by Replicon

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