☑️[SOLVED] CRITICAL Crash - Unable to allocate device-local memory: CL_MEM_OBJECT_ALLOCATION_FAILURE

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
phoenix
Posts: 2
Joined: Mon Sep 30, 2019 5:24 am
Has thanked: 2 times

CL_MEM_OBJECT_ALLOCATION_FAILURE

Post by phoenix »

I am new to faceswap, and my OS is MacOS Mojave 10.14.5.

I place 8 image each directory, after I hit the Extract buttion, it gives the message below:

09/30/2019 13:03:37 INFO Initializing S3FD Detector...
09/30/2019 13:03:37 INFO Opening device "opencl_intel_iris(tm)_plus_graphics_645.0"
09/30/2019 13:03:40 INFO Initialized S3FD Detector with batchsize of 8

unable to run OpenCL kernel kernel_c26_sdk_1: CL_MEM_OBJECT_ALLOCATION_FAILURE

09/30/2019 13:04:21 INFO Initializing FAN Aligner...
09/30/2019 13:04:30 INFO Analyzing Ops: 1888 of 3641 operations complete
09/30/2019 13:05:00 INFO Initialized FAN Aligner with batchsize of 8

and I wait for about 20 minutes, no more message come out in console. I wonder if there is something wrong or I just need to wait for more time.

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: CL_MEM_OBJECT_ALLOCATION_FAILURE

Post by bryanlyon »

Intel Graphics are not supported. You will have to use the CV2-DNN for your detector and aligner which both run on CPU instead.

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

Re: CL_MEM_OBJECT_ALLOCATION_FAILURE

Post by torzdf »

plaidML actually should work with intel Iris. Whether it works well or not, I couldn't say, and we certainly don't directly support it.

However

Code: Select all

unable to run OpenCL kernel kernel_c26_sdk_1: CL_MEM_OBJECT_ALLOCATION_FAILURE

Suggests not enough VRAM available anyway.

With that said, you have set up Faceswap wrong. I suggest you remove your Faceswap folder and re-clone and re-run setup.py making sure you select "No" to both "AMD" and "Cuda"

My word is final

User avatar
Nejdettertemiz
Posts: 3
Joined: Sun Feb 02, 2020 4:45 pm

Extract problem - windows7 i5 amd 6800 hd

Post by Nejdettertemiz »

plaidml.exceptions.Unknown: Unable to map memory: CL_MEM_OBJECT_ALLOCATION_FAILURE
02/02/2020 19:15:44 CRITICAL An unexpected crash has occurred. Crash report written to 'D:\faceswap\crash_report.2020.02.02.191543535818.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Process exited.

I can't solve this problem please help

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

Re: Extract problem - windows7 i5 amd 6800 hd

Post by torzdf »

I think that is a 1 GB GPU, so most likely, you don't have enough GPU memory to run Faceswap.

My word is final

User avatar
Nejdettertemiz
Posts: 3
Joined: Sun Feb 02, 2020 4:45 pm

Re: Extract problem - windows7 i5 amd 6800 hd

Post by Nejdettertemiz »

:( Under what conditions can I run? what is needed?

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

Re: Extract problem - windows7 i5 amd 6800 hd

Post by torzdf »

At a minimum a 2 GB GPU, but recommended is 4GB +

My word is final

User avatar
Nejdettertemiz
Posts: 3
Joined: Sun Feb 02, 2020 4:45 pm

Re: Extract problem - windows7 i5 amd 6800 hd

Post by Nejdettertemiz »

Hmm I get it. Thank you for your time

User avatar
nerdfrombrazil
Posts: 2
Joined: Sat Mar 28, 2020 3:48 pm
Has thanked: 2 times

☑️[SOLVED] CRITICAL Crash - Unable to allocate device-local memory: CL_MEM_OBJECT_ALLOCATION_FAILURE

Post by nerdfrombrazil »

Please, disregard my last post on the forum.

During the extraction process I received this error "plaidml.exceptions.Unknown: Unable to allocate device-local memory: CL_MEM_OBJECT_ALLOCATION_FAILURE"

Crashreport:

i have 8gb of ram

Last edited by nerdfrombrazil on Fri Apr 03, 2020 12:33 am, edited 1 time in total.
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: CRITICAL Crash - Unable to allocate device-local memory: CL_MEM_OBJECT_ALLOCATION_FAILURE

Post by torzdf »

You have a 2GB GPU and are out of GPU Memory.

You can try going into Settings > Extract Plugins and lowering the batch size for the various detectors/aligners to 1

My word is final

Locked