Page 1 of 1

Only 1 image extracted from

Posted: Sun Apr 26, 2020 6:35 pm
by Ron Burgundy

The process seems to work correctly but just for one image wherever the image input folder is. This is whether the folder has 2 images or 200. OS is Windows 7 and card is AMD Radeon HD 6700. Example output:

Code: Select all

Loading...
Setting Faceswap backend to AMD
04/26/2020 13:30:55 INFO     Log level set to: INFO
04/26/2020 13:30:55 INFO     Setting up for PlaidML
04/26/2020 13:30:55 INFO     Setting GPU to largest available experimental device. If you want to override this selection, run `plaidml-setup` from the command line.
04/26/2020 13:30:55 INFO     Using GPU: ['opencl_amd_juniper.0']
04/26/2020 13:30:55 INFO     Successfully set up for PlaidML
04/26/2020 13:30:58 INFO     Output Directory: [folder]
04/26/2020 13:30:58 INFO     Loading Detect from S3Fd plugin...
Using plaidml.keras.backend backend.
04/26/2020 13:30:58 INFO     Loading Align from Fan plugin...
04/26/2020 13:30:58 INFO     Loading Mask from Components plugin...
04/26/2020 13:30:58 INFO     Loading Mask from Extended plugin...
04/26/2020 13:30:58 INFO     Starting, this may take a while...
04/26/2020 13:30:58 INFO     Initializing S3FD (Detect)...
04/26/2020 13:30:58 INFO     Opening device "opencl_amd_juniper.0"
04/26/2020 13:31:00 INFO     Initialized S3FD (Detect) with batchsize of 4

04/26/2020 13:31:13 INFO     Initializing FAN (Align)...
04/26/2020 13:31:20 INFO     Analyzing Ops: 1200 of 3641 operations complete
04/26/2020 13:31:22 INFO     Analyzing Ops: 2848 of 3641 operations complete
04/26/2020 13:31:57 INFO     Initialized FAN (Align) with batchsize of 12

04/26/2020 13:32:02 INFO     Analyzing Ops: 3227 of 3641 operations complete

04/26/2020 13:32:15 INFO     Initializing Components (Mask)...
04/26/2020 13:32:15 INFO     Initialized Components (Mask) with batchsize of 1

04/26/2020 13:32:15 INFO     Initializing Extended (Mask)...
04/26/2020 13:32:15 INFO     Initialized Extended (Mask) with batchsize of 1

04/26/2020 13:32:15 INFO     Writing alignments to: '[folder]\alignments.fsa'
04/26/2020 13:32:15 INFO     -------------------------
04/26/2020 13:32:15 INFO     Images found:        1
04/26/2020 13:32:15 INFO     Faces detected:      1
04/26/2020 13:32:15 INFO     -------------------------
04/26/2020 13:32:15 INFO     Process Succesfully Completed. Shutting Down...
Process exited.

Settings are ones I think should work

Detector - S3FD
Aligner - Fan
Normalization - None
Min size - 20
Ref threshold - 0.4
Extract every N - 15
Size - 256

I looked for a similar topic in the search already. Ideas on this?


Re: Only 1 image extracted from

Posted: Sun Apr 26, 2020 9:49 pm
by bryanlyon

This is saying that only one image is found. If you're certain more than one image is in the folder that you're passing, please turn up logging (Debug SHOULD be sufficient) and send us the faceswap.log file from the faceswap folder immediately after you run into this issue. We can look at that for more information to debug.


Re: Only 1 image extracted from

Posted: Mon Apr 27, 2020 12:12 pm
by Ron Burgundy

Here's the log:


Re: Only 1 image extracted from

Posted: Mon Apr 27, 2020 12:55 pm
by torzdf

extract_every_n=15

You have told the process to only extract every 15 images. You only have 8 images => only 1 image is extracted.


Re: Only 1 image extracted from

Posted: Mon Apr 27, 2020 2:29 pm
by Ron Burgundy

I now understand the mentioned 12-25 range seems to be for video files. The display driver crashes anytime it finds more than 1 image. End of log file:

Code: Select all

04/27/2020 09:21:55 MainProcess     MainThread      multithreading  start                     DEBUG    Started all threads 'detect_s3fd_output': 1
04/27/2020 09:21:55 MainProcess     MainThread      pipeline        _launch_plugin            DEBUG    Launched detect plugin
04/27/2020 09:21:55 MainProcess     _load_0         extract         _load                     DEBUG    Load Images: Complete
04/27/2020 09:21:55 MainProcess     MainThread      pipeline        detected_faces            DEBUG    Running Detection. Phase: '['detect']'
04/27/2020 09:21:55 MainProcess     detect_s3fd_input_0 _base           _thread_process           DEBUG    Putting EOF

Re: Only 1 image extracted from

Posted: Mon Apr 27, 2020 10:56 pm
by torzdf

I'm going to need a full TRACE log, I'm afraid.


Re: Only 1 image extracted from

Posted: Tue Apr 28, 2020 9:56 am
by Ron Burgundy

Thanks for the replies. Trace log:


Re: Only 1 image extracted from

Posted: Tue Apr 28, 2020 10:10 am
by torzdf

Your card only has 1GB of VRAM and you are running out of memory. You can try to lower the batchsize for all detectors/aligners to 1 (Settings > Extract plugins).

Realistically, though, you aren't going to be able to run Faceswap on that card, as the minimum requirement is 2GB (and that may not be correct for AMD).