Only 1 image extracted from

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.

Locked
User avatar
Ron Burgundy
Posts: 4
Joined: Sun Apr 26, 2020 4:02 pm

Only 1 image extracted from

Post 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?

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Only 1 image extracted from

Post 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.

User avatar
Ron Burgundy
Posts: 4
Joined: Sun Apr 26, 2020 4:02 pm

Re: Only 1 image extracted from

Post by Ron Burgundy »

Here's the log:

User avatar
torzdf
Posts: 2670
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: Only 1 image extracted from

Post 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.

My word is final

User avatar
Ron Burgundy
Posts: 4
Joined: Sun Apr 26, 2020 4:02 pm

Re: Only 1 image extracted from

Post 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
User avatar
torzdf
Posts: 2670
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: Only 1 image extracted from

Post by torzdf »

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

My word is final

User avatar
Ron Burgundy
Posts: 4
Joined: Sun Apr 26, 2020 4:02 pm

Re: Only 1 image extracted from

Post by Ron Burgundy »

Thanks for the replies. Trace log:

User avatar
torzdf
Posts: 2670
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: Only 1 image extracted from

Post 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).

My word is final

Locked