Installation is getting aborted

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
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Installation is getting aborted

Post by billubakra »

Hi,

We are trying to install Faceswap in a laptop with the below mentioned specs
Ryzen 5600H
GTX 1650 4gb
24gb RAM
500+500gb ssd
Windows 11 Home version is in c drive in nvme ssd, we tried to install Faceswap in d drive in sata ssd. Both drives are more than 50% empty.

Anyways the installer got stuck here

After about 20 minutes it reached this page

We had no option but to click ok, clicked ok and it showed this

Clicked cancel and when the installer closed, opened up the destination folder. It was just 5.62mb full

Now few questions-

a. Why did the installation window froze and later asked us to abort it? Our internet connection has good bandwidth.

b. It surely downloaded atleast one gb of data if not more, before the installation window was frozen. Where did all of it go? Should we just normally delete the downloaded files in the destination folder? Miniconda3 Python 3.9.12 is showing as installed in the app section. Should we uninstall it too?

c. How should we reinstall it now? Is there a torrent file for the same? How much is the total size of the files that are needed to be downloaded?

d. Yes the gpu in this machine, and maybe even the cpu, is not at all powerful. But we want to use Faceswap only to create images. Even normal quality images would do too. Are the specs allright for our need?

Thanks

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: Installation is getting aborted

Post by torzdf »

billubakra wrote: Sun Oct 30, 2022 5:15 pm

a. Why did the installation window froze and later asked us to abort it? Our internet connection has good bandwidth.

You'd need to provide the faceswap_setup.log file from your faceswap folder for me to be able to diagnose install issues.

b. It surely downloaded atleast one gb of data if not more, before the installation window was frozen. Where did all of it go? Should we just normally delete the downloaded files in the destination folder? Miniconda3 Python 3.9.12 is showing as installed in the app section. Should we uninstall it too?

Faceswap itself is relatively small. The larger files are miniconda and the supporting libraries. These will exist in your specified Miniconda folder. See here for full uninstall information:
app.php/faqpage#f1r2

c. How should we reinstall it now? Is there a torrent file for the same? How much is the total size of the files that are needed to be downloaded?

No we don't have a torrent. That would break several EULA;s.

d. Yes the gpu in this machine, and maybe even the cpu, is not at all powerful. But we want to use Faceswap only to create images. Even normal quality images would do too. Are the specs allright for our need?

Specs should be fine.

My word is final

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

Hi,
Thanks for replying. Have dm'ed you the log file needed. Kindly reply soon.
Thanks

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

A quick question about this
Faceswap itself is relatively small. The larger files are miniconda and the supporting libraries. These will exist in your specified Miniconda folder. See here for full uninstall information:

Is it possible to install Faceswap, Miniconda. Python etc. separately so that the installation goes through smoothly? What is the total size of Faceswap btw?

Have sent you the log file in the dm as asked. Kindly look into that.

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

@torzdf
Another quick question sorry, miniconda by default was installed in c drive. We were trying to install Faceswap in d drive, which is a different ssd. Could this have caused the installation to be aborted?

About the cpu and gpu drivers, we are not using the latest one's. Using the one's which are a few months old, from amd and nvidia's websites respectively because windows 11 update always mess them up. Could this have caused the installation to be aborted?

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

@torzdf
Sir did u look into this?

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: Installation is getting aborted

Post by torzdf »

billubakra wrote: Mon Oct 31, 2022 5:04 pm

Is it possible to install Faceswap, Miniconda. Python etc. separately so that the installation goes through smoothly? What is the total size of Faceswap btw?

Python is handled by Conda, so technically only Miniconda + Faceswap are installed. Everything else (libs, python, git etc) are handled within the Conda environment by Conda. There are manual install steps here:
https://github.com/deepfakes/faceswap/b ... al-install

Another quick question sorry, miniconda by default was installed in c drive. We were trying to install Faceswap in d drive, which is a different ssd. Could this have caused the installation to be aborted?

You can install Conda whereever you like. You may just need to point the Faceswap installer at your install location when prompted. Location of Conda should not make a difference. However, Conda has a problem with locations with spaces in their path. This is insane, but unfortunately entirely out of my control. But it is something to be aware of.

About the cpu and gpu drivers, we are not using the latest one's. Using the one's which are a few months old, from amd and nvidia's websites respectively because windows 11 update always mess them up. Could this have caused the installation to be aborted?

Drivers will not cause an issue for the installer, no.

Sir did u look into this?

I get a 403 Forbidden error when trying to access your log file.

My word is final

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

Hi
Thanks for replying. I do not know how to quote replies here so copy pasting, sorry

Python is handled by Conda, so technically only Miniconda + Faceswap are installed. Everything else (libs, python, git etc) are handled within the Conda environment by Conda. There are manual install steps here:
https://github.com/deepfakes/faceswap/b ... al-install

Till Set up a virtual environment it is all clear but after that everything goes above our head. Complete noobs here. Have you made a YouTube video/tutorial as in how to set it up manually? Your screenshot and point wise guide is great but it is just that we will mix up something mentioned in that guide so asking if there is a video tutorial? Please fix this abort message error, will be better off the direct way only

You can install Conda whereever you like. You may just need to point the Faceswap installer at your install location when prompted. Location of Conda should not make a difference. However, Conda has a problem with locations with spaces in their path. This is insane, but unfortunately entirely out of my control. But it is something to be aware of.

What is the meaning of the bold line? We did not change anything just changed the installation drive of Faceswap to d drive, miniconda was auto installed somewhere in c drive. We uninstalled it later.

Have resent you the log files. This time uploaded on some other file hosting website. How can we directly send you the same?

Roughly how much is the size of conda/python and Faceswap after installation?

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: Installation is getting aborted

Post by torzdf »

The problem is your internet connection. It is dropping out sometimes.

It timed out twice. Once installing OpenCV from pypy (3.5MB into a 35.6MB file)
Once installing cuDNN from Conda (120MB into a 610MB file)

Just try running the installer again, or find somewhere with a more stable internet connection.

I do not have a video, no.

My word is final

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

torzdf wrote: Tue Nov 01, 2022 5:49 pm

The problem is your internet connection. It is dropping out sometimes.

It timed out twice. Once installing OpenCV from pypy (3.5MB into a 35.6MB file)
Once installing cuDNN from Conda (120MB into a 610MB file)

Just try running the installer again, or find somewhere with a more stable internet connection.

I do not have a video, no.

Ah that sucks. We are regularly downloading 5-10 gb files but never faced any issue. The installer froze last time, that was due to the internet connection only? Please help us out with two things, first kindly give us a rough idea of the total file/data that the installation setup will download? Just an idea will do too. Will try to download on some other connection, it has limited data so asking about the total size that needs to be downloaded.

Second once it is installed, hopefully and touch wood this time, where should we start? Any guide/tutorial about it?

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: Installation is getting aborted

Post by torzdf »

first kindly give us a rough idea of the total file/data that the installation setup will download? Just an idea will do too. Will try to download on some other connection, it has limited data so asking about the total size that needs to be downloaded.

Honestly not sure. Probably in the ballback of 3 to 10GB. More will need to be downloaded once faceswap is running (specifically any model weights that are used for extract).

Second once it is installed, hopefully and touch wood this time, where should we start? Any guide/tutorial about it?

app.php/tag/Guide

My word is final

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

torzdf wrote: Sun Nov 06, 2022 12:25 pm

first kindly give us a rough idea of the total file/data that the installation setup will download? Just an idea will do too. Will try to download on some other connection, it has limited data so asking about the total size that needs to be downloaded.

Honestly not sure. Probably in the ballback of 3 to 10GB. More will need to be downloaded once faceswap is running (specifically any model weights that are used for extract).

Second once it is installed, hopefully and touch wood this time, where should we start? Any guide/tutorial about it?

app.php/tag/Guide

Hi

FaceSwap is installed finally, thanks for your help. Two questions-

  • You said that more files will be downloaded once it is running, so does it need to be connected to the internet all the time? Does it send any private info/details?

  • Almost all the guides that we have found here are for training the faces/models to make videos. Our requirement is only to deepfake/kinda swap images. Is there any tutorial or guide for that? And has any member/fan made a video tutorial about this?

Thanks

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: Installation is getting aborted

Post by torzdf »

billubakra wrote: Sun Nov 06, 2022 4:21 pm
  • You said that more files will be downloaded once it is running, so does it need to be connected to the internet all the time? Does it send any private info/details?

It doesn't send any information. It just downloads the models it requires. We don't keep them in the repo because some of them are quite large, so they are downloaded (1 time) when needed.

billubakra wrote: Sun Nov 06, 2022 4:21 pm

- Almost all the guides that we have found here are for training the faces/models to make videos. Our requirement is only to deepfake/kinda swap images. Is there any tutorial or guide for that? And has any member/fan made a video tutorial about this?

It is exactly the same process. Videos are just a series of images.

My word is final

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

torzdf wrote: Sun Nov 06, 2022 6:04 pm
billubakra wrote: Sun Nov 06, 2022 4:21 pm
  • You said that more files will be downloaded once it is running, so does it need to be connected to the internet all the time? Does it send any private info/details?

It doesn't send any information. It just downloads the models it requires. We don't keep them in the repo because some of them are quite large, so they are downloaded (1 time) when needed.

billubakra wrote: Sun Nov 06, 2022 4:21 pm

- Almost all the guides that we have found here are for training the faces/models to make videos. Our requirement is only to deepfake/kinda swap images. Is there any tutorial or guide for that? And has any member/fan made a video tutorial about this?

It is exactly the same process. Videos are just a series of images.

Video extraction and training's eta is 5 days+ on our machine. How many minimum images are required for image to image faceswap?

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

torzdf wrote: Sun Nov 06, 2022 6:04 pm
billubakra wrote: Sun Nov 06, 2022 4:21 pm
  • You said that more files will be downloaded once it is running, so does it need to be connected to the internet all the time? Does it send any private info/details?

It doesn't send any information. It just downloads the models it requires. We don't keep them in the repo because some of them are quite large, so they are downloaded (1 time) when needed.

billubakra wrote: Sun Nov 06, 2022 4:21 pm

- Almost all the guides that we have found here are for training the faces/models to make videos. Our requirement is only to deepfake/kinda swap images. Is there any tutorial or guide for that? And has any member/fan made a video tutorial about this?

It is exactly the same process. Videos are just a series of images.

A couple of quick questions-

  • What does this mean?
    https://postimg.cc/WhjggS8j
    https://ibb.co/Kmz5jDp
    Surprisingly the gpu usage is 0% while training, what are we doing wrong?

  • We are not selecting any masker as we are just testing as in how this software actually works. Would you recommend a masker as per the specs of our system posted in the above replies?

  • After the training is started, does it auto stop or do we have to stop it manually after seeing the results?

  • Where exactly is the face_alignments.fsa file to be used? Till training the latest version that we are using hasn't asked for it.

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

billubakra wrote: Tue Nov 08, 2022 12:26 pm
torzdf wrote: Sun Nov 06, 2022 6:04 pm
billubakra wrote: Sun Nov 06, 2022 4:21 pm
  • You said that more files will be downloaded once it is running, so does it need to be connected to the internet all the time? Does it send any private info/details?

It doesn't send any information. It just downloads the models it requires. We don't keep them in the repo because some of them are quite large, so they are downloaded (1 time) when needed.

billubakra wrote: Sun Nov 06, 2022 4:21 pm

- Almost all the guides that we have found here are for training the faces/models to make videos. Our requirement is only to deepfake/kinda swap images. Is there any tutorial or guide for that? And has any member/fan made a video tutorial about this?

It is exactly the same process. Videos are just a series of images.

A couple of quick questions-

  • What does this mean?
    https://postimg.cc/WhjggS8j
    https://ibb.co/Kmz5jDp
    Surprisingly the gpu usage is 0% while training, what are we doing wrong?

  • We are not selecting any masker as we are just testing as in how this software actually works. Would you recommend a masker as per the specs of our system posted in the above replies?

  • After the training is started, does it auto stop or do we have to stop it manually after seeing the results?

  • Where exactly is the face_alignments.fsa file to be used? Till training the latest version that we are using hasn't asked for it.

@torzdf
@torzdf 45k+ iterations later, the result in the first try is horrible to say the least. It never used the gpu for training as mentioned in the above mentioned replies. Please suggest optimum settings/masker settings and how to make FaceSwap use the gpu for training?

In the above training, Face A was from a 2 minute video whereas Face B were still images.

A question, say Model A are different persons with different photos clicked in different environments, the face will have different lightening conditions. Total 500+ photos as FaceSwap needs minimum 500 photos. And Model B is a single person but his photos are also clicked in different environments, the face lightening would differ. Now is this possible, after ample training, to swap Model B's face on the faces of different models in Face A directory?

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

GPU not getting used for training and other issues

Post by billubakra »

Hi,

Here are the specs of our system

Ryzen 5600H
GTX 1650 4gb
24gb RAM
500+500gb ssd
Windows 11 Home version

@torzdf sir is very very helpful and helped us rectify the installation related errors. Now facing a couple of more issues-

  • What does this mean?
    https://postimg.cc/WhjggS8j
    https://ibb.co/Kmz5jDp
    Surprisingly the gpu usage is 0% while training, what are we doing wrong? Why is it relying on the cpu only?

  • We have not selected any masker as we are just testing as in how this software actually works. Would you recommend a masker as per the specs of our system? Also recommended settings for a low end system like ours?

  • After the training is started, does it auto stop or do we have to stop it manually after seeing the results?
    Found the answer from other threads, a user needs to stop it whenever he/she is satisfied with the results.

  • Where exactly is the face_alignments.fsa file used? Till training the latest version that we are using hasn't asked for it.

  • In our first try we have surpassed 80k+ iterations so far, the result is horrible to say the least. It never used the gpu for training as mentioned in the above mentioned point. Can the results improve if FaceSwap starts to use the GPU also? Ofcourse it depends upon the quality of the data fed but our query is if the gpu was involved in training then could it improve the results?

  • In our training, Face A was from a 2 minute video whereas Face B were images. The images extracted from the videos were 3500+ and for Face B we had around 400 images. Could this have caused bad results?

  • Say Model A are different persons with different photos clicked in different environments, the face will have different lightening conditions. Total 500+ photos as FaceSwap needs minimum 500 photos. say each model has 100 images. Now Model B is a single person but his photos are also clicked in different environments, the face lightening would differ. Total photos around 500 but of the same person. Now is this possible, after ample training, to swap Model B's face on the faces of different models in Face A directory? As our system is not on the higher side of the spectrum so we are eyeing for face swapping on images only rather than videos.

  • Continuing the above question, if Model B remains the same in Face 2 but we keep on changing Model/s in Face A then do we have to do the training from scratch or is there any way to save the training for Model B considering images of Model B will remain the same?

Tagging other senior members also @bryanlyon @abigflea

Thanks

Edit- Not using the latest AMD cpu and Nvidia gpu drivers as Windows 11 always mess them up. Have not installed GeForce Experience as never felt the need for it. Python is detecting the GPU although it is not getting used

https://postimg.cc/fkpMG6BG
https://ibb.co/Mf6yJyP

How to enable the gpu for training? I am pretty sure that during the extraction process the gpu was used just for a few moments though. Reinstalling everything can be a mess as we were able to get it installed after waiting for weeks. Please help. Lastly as it is only using the cpu as of now and the fans are running at full speed, can this hurt the cpu in the longer run?

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Only getting 10EG/s and GPU showing only 1% util in nvidia-smi

Post by billubakra »

torzdf wrote: Wed Sep 14, 2022 11:10 am

The speed is hard to say without knowing the model.

If that Nvidia-SMI screengrab is from when Faceswap is running, then it would suggest your GPU is not being used. Please post the output of (from GUI) help > output system info

The gpu in our system is not getting used, how to make it used for training?

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: Installation is getting aborted

Post by torzdf »

billubakra wrote: Tue Nov 08, 2022 11:13 am

Video extraction and training's eta is 5 days+ on our machine. How many minimum images are required for image to image faceswap?

Images and videos are the same process (a video is just a series of images).
See here: app.php/faqpage#f3r0
and here: app.php/faqpage#f0r6

billubakra wrote: Tue Nov 08, 2022 12:26 pm

A couple of quick questions-

Your GPU is using TensorCores as it has them, so training will be quicker. Research mixed-precision.

Surprisingly the gpu usage is 0% while training, what are we doing wrong?

app.php/faqpage#f0r3

If you are still seeing lack of GPU usage then:
app.php/rules#rule-4b

  • We are not selecting any masker as we are just testing as in how this software actually works. Would you recommend a masker as per the specs of our system posted in the above replies?

Yes. This is covered in the guides. Please read them.

  • After the training is started, does it auto stop or do we have to stop it manually after seeing the results?

Covered in the guides. Please read them.

  • Where exactly is the face_alignments.fsa file to be used? Till training the latest version that we are using hasn't asked for it.

Covered in the guides and the FAQ. Please read them.

@torzdf 45k+ iterations later, the result in the first try is horrible to say the least. It never used the gpu for training as mentioned in the above mentioned replies. Please suggest optimum settings/masker settings and how to make FaceSwap use the gpu for training?

45k iterations is very low.
First rule of faceswap: Your first swap will be terrible. Decent swaps come with experience.

In the above training, Face A was from a 2 minute video whereas Face B were still images.

Videos are better sources than images. This is covered in the guides. Please read them.

A question, say Model A are different persons with different photos clicked in different environments, the face will have different lightening conditions. Total 500+ photos as FaceSwap needs minimum 500 photos. And Model B is a single person but his photos are also clicked in different environments, the face lightening would differ. Now is this possible, after ample training, to swap Model B's face on the faces of different models in Face A directory?

No you need variety. Lots of it.


Please read the FAQ and guides. They are extensive and cover off 99% of your queries. They took me a long time to write, and they are kept up to date. They are written exactly so I do not need to provide the same one to one support for identical issues all the time, as this takes a lot of my time to the detriment to developing the project.

Also, no need to tag me/other members. I review each and every post on these forums, but I also have a life/job/other commitments.

My word is final

User avatar
billubakra
Posts: 22
Joined: Sun Oct 30, 2022 5:00 pm
Has thanked: 13 times

Re: Installation is getting aborted

Post by billubakra »

torzdf wrote: Wed Nov 09, 2022 12:04 pm
billubakra wrote: Tue Nov 08, 2022 11:13 am

Video extraction and training's eta is 5 days+ on our machine. How many minimum images are required for image to image faceswap?

Images and videos are the same process (a video is just a series of images).
See here: app.php/faqpage#f3r0
and here: app.php/faqpage#f0r6

billubakra wrote: Tue Nov 08, 2022 12:26 pm

A couple of quick questions-

Your GPU is using TensorCores as it has them, so training will be quicker. Research mixed-precision.

Surprisingly the gpu usage is 0% while training, what are we doing wrong?

app.php/faqpage#f0r3

If you are still seeing lack of GPU usage then:
app.php/rules#rule-4b

  • We are not selecting any masker as we are just testing as in how this software actually works. Would you recommend a masker as per the specs of our system posted in the above replies?

Yes. This is covered in the guides. Please read them.

  • After the training is started, does it auto stop or do we have to stop it manually after seeing the results?

Covered in the guides. Please read them.

  • Where exactly is the face_alignments.fsa file to be used? Till training the latest version that we are using hasn't asked for it.

Covered in the guides and the FAQ. Please read them.

@torzdf 45k+ iterations later, the result in the first try is horrible to say the least. It never used the gpu for training as mentioned in the above mentioned replies. Please suggest optimum settings/masker settings and how to make FaceSwap use the gpu for training?

45k iterations is very low.
First rule of faceswap: Your first swap will be terrible. Decent swaps come with experience.

In the above training, Face A was from a 2 minute video whereas Face B were still images.

Videos are better sources than images. This is covered in the guides. Please read them.

A question, say Model A are different persons with different photos clicked in different environments, the face will have different lightening conditions. Total 500+ photos as FaceSwap needs minimum 500 photos. And Model B is a single person but his photos are also clicked in different environments, the face lightening would differ. Now is this possible, after ample training, to swap Model B's face on the faces of different models in Face A directory?

No you need variety. Lots of it.


Please read the FAQ and guides. They are extensive and cover off 99% of your queries. They took me a long time to write, and they are kept up to date. They are written exactly so I do not need to provide the same one to one support for identical issues all the time, as this takes a lot of my time to the detriment to developing the project.

Also, no need to tag me/other members. I review each and every post on these forums, but I also have a life/job/other commitments.

Sir I completely get that you have a life/job and other commitments but still you are kind enough to answer each query. Sorry for asking so many stupid questions, I sincerely apologize.

About this
app.php/faqpage#f0r3
Not able to find the downloader for smi https://developer.nvidia.com/nvidia-sys ... -interface
Also where exactly to change the gpu setting in task manager to cuda usage? Can't find it there too.
Ran CPUID HWMonitor and as per that the gpu seems to be working, but want to make sure via smi and that gpu setting
Edit-
Ran nvidia smi like this
On Windows, you can use the Power Shell and type nvidia-smi -l 1 to GPU summary every 1 second, or nvidia-smi -lms every millisecond. Don't forget to add the CUDA environment files to PATH, as mentioned in the above suggestions.

https://stackoverflow.com/questions/571 ... on-windows
and the result is this

Is the gpu being used? Please let me know how to change the gpu settings to cuda in task manager? It will be more convenient.

app.php/rules#rule-4b
Nothing happens when I click on output system information. Asking for future references, where is this saved?

Are these the guides and faq's that you are referring to for the masker, alignment and optimum settings or are there any other too?
app.php/faqpage
viewtopic.php?t=146

Locked