Critical failure at end of Process 1 of extraction

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
123vply
Posts: 2
Joined: Tue Apr 21, 2020 1:14 pm

Critical failure at end of Process 1 of extraction

Post by 123vply »

I've tried running the extraction with both images and short clips. Running on an anaconda virtual environment, OSX with Radeon 580 eGPU and am receiving the below critical error when it would appear that the process is almost complete. Could anybody advise on what I am doing wrong?

Loading...
Setting Faceswap backend to AMD
04/21/2020 14:26:46 INFO Log level set to: INFO
04/21/2020 14:26:46 INFO Setting up for PlaidML
04/21/2020 14:26:46 INFO Setting GPU to largest available experimental device. If you want to override this selection, run plaidml-setup from the command line.
04/21/2020 14:26:46 INFO Using GPU: ['opencl_amd_radeon_pro_580_compute_engine.0']
04/21/2020 14:26:46 INFO Successfully set up for PlaidML
04/21/2020 14:26:51 INFO Output Directory: /Volumes/NewVolume/Develop/Deepfake/data_dst

04/21/2020 14:26:58 INFO Loading Detect from S3Fd plugin...
04/21/2020 14:26:58 INFO Loading Align from Fan plugin...
04/21/2020 14:26:58 INFO Loading Mask from Vgg_Clear plugin...
04/21/2020 14:26:58 INFO Loading Mask from Components plugin...
04/21/2020 14:26:58 INFO Loading Mask from Extended plugin...
04/21/2020 14:26:58 INFO Starting, this may take a while...
04/21/2020 14:26:58 INFO Initializing S3FD (Detect)...
04/21/2020 14:26:58 INFO Opening device "opencl_amd_radeon_pro_580_compute_engine.0"
04/21/2020 14:26:58 INFO Initialized S3FD (Detect) with batchsize of 4

/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:253: RuntimeWarning: invalid value encountered in greater
poss = zip(np.where(ocls[:, 1, :, :] > 0.05))
/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:286: RuntimeWarning: overflow encountered in exp
priors[:, 2:] * np.exp(loc[:, 2:] * variances[1])), axis=1)
/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:288: RuntimeWarning: invalid value encountered in add
boxes[:, 2:] += boxes[:, :2]
/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:308: RuntimeWarning: invalid value encountered in greater
overlapping_boxes = (iou > threshold).nonzero()[0]
/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:315: RuntimeWarning: invalid value encountered in less_equal
non_overlapping_boxes = (iou <= threshold).nonzero()[0]
Traceback (most recent call last):
File "/Users/Vince/faceswap/lib/cli.py", line 128, in execute_script
process.process()
File "/Users/Vince/faceswap/scripts/extract.py", line 114, in process
self._run_extraction()
File "/Users/Vince/faceswap/scripts/extract.py", line 210, in run_extraction
for idx, extract_media in enumerate(status_bar):
File "/Users/Vince/opt/anaconda3/envs/faceswap/lib/python3.7/site-packages/tqdm/std.py", line 1119, in iter
for obj in iterable:
File "/Users/Vince/faceswap/plugins/extract/pipeline.py", line 228, in detected_faces
if self.
check_and_raise_error():
File "/Users/Vince/faceswap/plugins/extract/pipeline.py", line 647, in check_and_raise_error
if plugin.check_and_raise_error():
File "/Users/Vince/faceswap/plugins/extract/
base.py", line 300, in check_and_raise_error
err = thread.check_and_raise_error()
File "/Users/Vince/faceswap/lib/multithreading.py", line 84, in check_and_raise_error
raise error[1].with_traceback(error[2])
File "/Users/Vince/faceswap/lib/multithreading.py", line 37, in run
self.target(
self.args, **self.kwargs)
File "/Users/Vince/faceswap/plugins/extract/
base.py", line 433, in thread_process
for item in self.finalize(batch):
File "/Users/Vince/faceswap/plugins/extract/detect/
base.py", line 158, in finalize
for faces in batch["prediction"]]
File "/Users/Vince/faceswap/plugins/extract/detect/base.py", line 158, in <listcomp>
for faces in batch["prediction"]]
File "/Users/Vince/faceswap/plugins/extract/detect/
base.py", line 157, in <listcomp>
for face in faces]
File "/Users/Vince/faceswap/plugins/extract/detect/_base.py", line 193, in to_detected_face
return DetectedFace(x=int(round(left)),
OverflowError: cannot convert float infinity to integer
04/21/2020 14:58:54 CRITICAL An unexpected crash has occurred. Crash report written to '/Users/Vince/faceswap/crash_report.2020.04.21.145854373942.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting

Process exited.

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

Re: Critical failure at end of Process 1 of extraction

Post by torzdf »

That's a small GPU...

In the first instance go Settings > Extract Plugins and change the batchsize of all plugins to 1

My word is final

User avatar
123vply
Posts: 2
Joined: Tue Apr 21, 2020 1:14 pm

Re: Critical failure at end of Process 1 of extraction

Post by 123vply »

Thanks, unfortunately the extraction process does not even begin now without crashing. Changed the following batchsizes to 1 across the three different detectors. Using S3Fd causes an immediate crash as below now. Previously I was able to run the process and the Activity Monitor indicated averaging 95% capacity of the GPU. Currently, I can run the extraction with the Mtcnn detector, however GPU utilization is only at 15%...Makes me think that the 8GB Radeon 580 should be able to handle the S3Fd detection with a bit of tweaking. Any suggestions?

Loading...
Setting Faceswap backend to AMD
04/21/2020 22:32:32 INFO Log level set to: INFO
04/21/2020 22:32:32 INFO Setting up for PlaidML
04/21/2020 22:32:33 INFO Setting GPU to largest available experimental device. If you want to override this selection, run plaidml-setup from the command line.
04/21/2020 22:32:33 INFO Using GPU: ['opencl_amd_radeon_pro_580_compute_engine.0']
04/21/2020 22:32:33 INFO Successfully set up for PlaidML
04/21/2020 22:32:38 INFO Output Directory: /Volumes/NewVolume/Develop/data_dst

04/21/2020 22:32:39 INFO Loading Detect from S3Fd plugin...
04/21/2020 22:32:39 INFO Loading Align from Fan plugin...
04/21/2020 22:32:39 INFO Loading Mask from Vgg_Clear plugin...
04/21/2020 22:32:39 INFO Loading Mask from Components plugin...
04/21/2020 22:32:39 INFO Loading Mask from Extended plugin...
04/21/2020 22:32:39 INFO Starting, this may take a while...
04/21/2020 22:32:39 INFO Initializing S3FD (Detect)...
04/21/2020 22:32:39 INFO Opening device "opencl_amd_radeon_pro_580_compute_engine.0"
04/21/2020 22:32:40 INFO Initialized S3FD (Detect) with batchsize of 1

/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:253: RuntimeWarning: invalid value encountered in greater
poss = zip(np.where(ocls[:, 1, :, :] > 0.05))
/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:286: RuntimeWarning: overflow encountered in exp
priors[:, 2:] * np.exp(loc[:, 2:] * variances[1])), axis=1)
/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:288: RuntimeWarning: invalid value encountered in add
boxes[:, 2:] += boxes[:, :2]
/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:308: RuntimeWarning: invalid value encountered in greater
overlapping_boxes = (iou > threshold).nonzero()[0]
/Users/Vince/faceswap/plugins/extract/detect/s3fd.py:315: RuntimeWarning: invalid value encountered in less_equal
non_overlapping_boxes = (iou <= threshold).nonzero()[0]
Traceback (most recent call last):
File "/Users/Vince/faceswap/lib/cli.py", line 128, in execute_script
process.process()
File "/Users/Vince/faceswap/scripts/extract.py", line 114, in process
self._run_extraction()
File "/Users/Vince/faceswap/scripts/extract.py", line 210, in run_extraction
for idx, extract_media in enumerate(status_bar):
File "/Users/Vince/opt/anaconda3/envs/faceswap/lib/python3.7/site-packages/tqdm/std.py", line 1119, in iter
for obj in iterable:
File "/Users/Vince/faceswap/plugins/extract/pipeline.py", line 228, in detected_faces
if self.
check_and_raise_error():
File "/Users/Vince/faceswap/plugins/extract/pipeline.py", line 647, in check_and_raise_error
if plugin.check_and_raise_error():
File "/Users/Vince/faceswap/plugins/extract/
base.py", line 300, in check_and_raise_error
err = thread.check_and_raise_error()
File "/Users/Vince/faceswap/lib/multithreading.py", line 84, in check_and_raise_error
raise error[1].with_traceback(error[2])
File "/Users/Vince/faceswap/lib/multithreading.py", line 37, in run
self.target(
self.args, **self.kwargs)
File "/Users/Vince/faceswap/plugins/extract/
base.py", line 433, in thread_process
for item in self.finalize(batch):
File "/Users/Vince/faceswap/plugins/extract/detect/
base.py", line 158, in finalize
for faces in batch["prediction"]]
File "/Users/Vince/faceswap/plugins/extract/detect/base.py", line 158, in <listcomp>
for faces in batch["prediction"]]
File "/Users/Vince/faceswap/plugins/extract/detect/
base.py", line 157, in <listcomp>
for face in faces]
File "/Users/Vince/faceswap/plugins/extract/detect/_base.py", line 195, in to_detected_face
y=int(round(top)),
OverflowError: cannot convert float infinity to integer
04/21/2020 22:32:44 CRITICAL An unexpected crash has occurred. Crash report written to '/Users/Vince/faceswap/crash_report.2020.04.21.223244872167.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Process exited.

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

Re: Critical failure at end of Process 1 of extraction

Post by torzdf »

Oh, for some reason I thought it was a 2GB GPU. 8GB should be fine.

We have seen this error reported occasionally before, but have never been able to recreate it to diagnose.

If you can provide the video, I can see if I can recreate.

My word is final

Locked