Page 1 of 1

CL_MEM_OBJECT_ALLOCATION_FAILURE

Posted: Mon Sep 30, 2019 5:34 am
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.


Re: CL_MEM_OBJECT_ALLOCATION_FAILURE

Posted: Mon Sep 30, 2019 6:04 am
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.


Re: CL_MEM_OBJECT_ALLOCATION_FAILURE

Posted: Mon Sep 30, 2019 10:17 am
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"


Extract problem - windows7 i5 amd 6800 hd

Posted: Sun Feb 02, 2020 6:12 pm
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


Re: Extract problem - windows7 i5 amd 6800 hd

Posted: Sun Feb 02, 2020 6:41 pm
by torzdf

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


Re: Extract problem - windows7 i5 amd 6800 hd

Posted: Sun Feb 02, 2020 7:00 pm
by Nejdettertemiz

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


Re: Extract problem - windows7 i5 amd 6800 hd

Posted: Sun Feb 02, 2020 7:24 pm
by torzdf

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


Re: Extract problem - windows7 i5 amd 6800 hd

Posted: Sun Feb 02, 2020 7:27 pm
by Nejdettertemiz

Hmm I get it. Thank you for your time


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

Posted: Sat Mar 28, 2020 7:03 pm
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


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

Posted: Sun Mar 29, 2020 10:07 am
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