Faceswap does not detect my GPU

The Extraction process failing on you, and you aren't getting an error back with clear instructions? Tell us about it here


Forum rules

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

This forum is for reporting errors with the Extraction process. If you want to get tips, or better understand the Extract process, then you should look in the Extract Discussion forum.

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

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

Re: "NVML Shared Library Not Found" with new drivers.

Post by torzdf »

This has been patched in the latest version of the Faceswap code. It basically occurs because a library we rely on looks for Nvidia drivers where Nvidia puts them and not where Windows puts them.

If people are still hitting this issue, then do one of the following:

From the GUI:
run "Tools menu" > "Check for Updates"

or:

From the cli:

  • Enter your faceswap environment

  • Enter your faceswap folder

  • Run:

    Code: Select all

    python update_deps.py
Last edited by torzdf on Sat Jul 27, 2019 1:30 am, edited 1 time in total.
Reason: Edited for clarity

My word is final

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

Re: Is it necessary detecting GPU&driver for use?

Post by torzdf »

Locking issue as Faceswap now uses a version of nvidia-ml-py3 that checks for NVML in the system32 folder.

[mod]Update to the latest version of faceswap and try again if you encounter this error.[/mod]

Last edited by bryanlyon on Wed Jul 24, 2019 7:51 pm, edited 1 time in total.
Reason: Make the answer more useful

My word is final

User avatar
nobody@anonymous
Posts: 2
Joined: Sun Dec 08, 2019 3:29 pm
Has thanked: 1 time

Enormous diificulty extracting well lit, chroma green background face - tried all!

Post by nobody@anonymous »

I probably spent 10 hours of computing time with just about every setting I could adjust, including confidence levels.

I had no problem extracting a face from another green screen video, and now the extract is stumped.

Is there any pre-processing of a video I can try to increase face detection probability.

I've done a very well lit face.
There's a chroma green background, which creates a very nice contrast.
Then I even keyed out the green to black background and had no luck.
I could key to another background, or even the background I intend to use.
It's face straight on. I can't believe I've pulled out other faces from worse situations and this one won't pick it up.
Maybe I've got one button not selected.

I'm stumped.....

I've read the entire workflow. I've searched the forum. I've searched internet with all keywords.

Does anyone have any tricks, things they do?

Thanks!

(This is the last log - I even took confidence down to the minimum,)
Loading...
Setting Faceswap backend to CPU
12/07/2019 23:54:03 INFO Log level set to: INFO
12/07/2019 23:54:05 INFO Output Directory: D:\Video Projects\Replaced by Robots\DeepFakes\Brittny Spears\GaryFacesExtracted

12/07/2019 23:54:06 INFO Loading Detect from S3Fd plugin...
12/07/2019 23:54:06 INFO Loading Align from Fan plugin...
12/07/2019 23:54:06 INFO Loading Mask from Extended plugin...
12/07/2019 23:54:06 WARNING 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: NVML Shared Library Not Found
12/07/2019 23:54:06 WARNING No GPU detected. Switching to CPU mode
12/07/2019 23:54:06 INFO Starting, this may take a while...
12/07/2019 23:54:06 INFO Initializing S3FD (Detect)...
12/07/2019 23:54:06 WARNING From C:\Users\garye\faceswap\lib\model\session.py:112: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.\n
12/07/2019 23:54:06 WARNING From C:\Users\garye\faceswap\lib\model\session.py:116: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.\n
12/07/2019 23:54:06 WARNING From C:\Users\garye\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:517: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.\n
12/07/2019 23:54:06 WARNING From C:\Users\garye\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:245: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.\n
12/07/2019 23:54:06 WARNING From C:\Users\garye\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:174: The name tf.get_default_session is deprecated. Please use tf.compat.v1.get_default_session instead.\n
12/07/2019 23:54:06 WARNING From C:\Users\garye\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:3976: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.\n
12/07/2019 23:54:07 WARNING From C:\Users\garye\MiniConda3\envs\faceswap\lib\site-packages\keras\optimizers.py:790: The name tf.train.Optimizer is deprecated. Please use tf.compat.v1.train.Optimizer instead.\n
12/07/2019 23:54:08 INFO Initialized S3FD (Detect) with batchsize of 2
12/07/2019 23:54:08 INFO Initializing FAN (Align)...
12/07/2019 23:54:09 WARNING From C:\Users\garye\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:3980: The name tf.nn.avg_pool is deprecated. Please use tf.nn.avg_pool2d instead.\n
12/07/2019 23:54:11 WARNING From C:\Users\garye\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py:2018: The name tf.image.resize_nearest_neighbor is deprecated. Please use tf.compat.v1.image.resize_nearest_neighbor instead.\n
12/07/2019 23:54:53 INFO Initialized FAN (Align) with batchsize of 12
12/07/2019 23:54:53 INFO Initializing Extended (Mask)...
12/07/2019 23:54:53 INFO Initialized Extended (Mask) with batchsize of 1

12/08/2019 00:03:16 INFO Writing alignments to: 'D:\Video Projects\Replaced by Robots\DeepFakes\Brittny Spears\GarySourceVideo\Composite Shot 1 Zoomed In Keyed_alignments.fsa'
12/08/2019 00:03:17 INFO -------------------------
12/08/2019 00:03:17 INFO Images found: 137
12/08/2019 00:03:17 INFO Faces detected: 0
12/08/2019 00:03:17 INFO -------------------------
12/08/2019 00:03:17 INFO Process Succesfully Completed. Shutting Down...

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

Re: Enormous diificulty extracting well lit, chroma green background face - tried all!

Post by torzdf »

Do you have a sample frame/video that is causing you issues?

My word is final

User avatar
nobody@anonymous
Posts: 2
Joined: Sun Dec 08, 2019 3:29 pm
Has thanked: 1 time

Re: Enormous diificulty extracting well lit, chroma green background face - tried all!

Post by nobody@anonymous »

I sent by direct message.
Thanks

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

Re: Enormous diificulty extracting well lit, chroma green background face - tried all!

Post by torzdf »

On default settings I get 61 faces from 61 frames from the video you shared.

Your issue may be related to:

Code: Select all

WARNING No GPU detected. Switching to CPU mode

My word is final

Locked