Problem installing plaidml

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
kalimerox
Posts: 10
Joined: Tue Nov 12, 2019 2:55 pm
Has thanked: 2 times

Problem installing plaidml

Post by kalimerox »

looks like i have a graphics card problem with my install on manjaro.

when starting faceswap i get this:

python faceswap.py gui
Setting Faceswap backend to AMD
11/12/2019 19:45:45 INFO Log level set to: INFO
11/12/2019 19:45:46 INFO Setting up for PlaidML
11/12/2019 19:45:46 ERROR Failed to automatically detect your GPU.
11/12/2019 19:45:46 ERROR Please run plaidml-setup to set up your GPU.

running plaidml-setup I get:

Default Config Devices:
No devices.

Experimental Config Devices:
llvm_cpu.0 : CPU (LLVM)

Using experimental devices can cause poor performance, crashes, and other nastiness.

Enable experimental device support? (y,n)[n]:

so I m not sure what to do. I guess my gpu (amd rx480) is not supported, or i have installed the wrong drivers...

I would also like to install just for test reasons, if just running on cpu is possible/easier I would just do that (it s an older i7 cpu..)

User avatar
kalimerox
Posts: 10
Joined: Tue Nov 12, 2019 2:55 pm
Has thanked: 2 times

Re: [Guide]Linux Install Guide: Installer Method

Post by kalimerox »

a little update, I think this worked!

Experimental Config Devices:
llvm_cpu.0 : CPU (LLVM)

Using experimental devices can cause poor performance, crashes, and other nastiness.

Enable experimental device support? (y,n)[n]:y

Selected device:
llvm_cpu.0

Almost done. Multiplying some matrices...
Tile code:
function (B[X,Z], C[Z,Y]) -> (A) { A[x,y : X,Y] = +(B[x,z] * C[z,y]); }
Whew. That worked.

will try use it now that way and will give feedback...

edit:

trying to extract now i see there seems to be aproblem (guess this is still installation related, otherwise i open a new thread in that sub forum..)

the log says:

11/13/2019 11:27:42 INFO Loading Detect from S3Fd plugin...
11/13/2019 11:27:42 INFO Loading Align from Fan plugin...
11/13/2019 11:27:42 INFO Loading Mask from Extended plugin...
11/13/2019 11:27:42 WARNING No GPU detected. Switching to CPU mode
11/13/2019 11:27:42 INFO Starting, this may take a while...
11/13/2019 11:27:42 INFO Initializing S3FD (Detect)...
11/13/2019 11:27:42 INFO Opening device "llvm_cpu.0"
11/13/2019 11:27:43 INFO Initialized S3FD (Detect) with batchsize of 4
11/13/2019 11:27:43 INFO Initializing FAN (Align)...
11/13/2019 11:27:45 INFO Analyzing Ops: 169 of 200 operations complete
11/13/2019 11:27:50 INFO Analyzing Ops: 661 of 3641 operations complete
11/13/2019 11:27:52 INFO Analyzing Ops: 1929 of 3641 operations complete
11/13/2019 11:27:54 INFO Analyzing Ops: 3183 of 3641 operations complete
Process exited.

User avatar
kilroythethird
Posts: 20
Joined: Fri Jul 12, 2019 11:35 pm
Answers: 1
Has thanked: 2 times
Been thanked: 10 times

Re: Problem installing plaidml

Post by kilroythethird »

I moved your question into its own topic

You are missing an opencl driver.
LLVM is CPU based, you don't want that.

You need to install the OpenCl driver from amdgpupro http://support.amd.com/en-us/kb-article ... Notes.aspx
If there is a package in your repository manager for amdgpuPro-opencl that would be the preferred way.
Otherwise download the ubuntu driver and run ./amdgpu-pro-install -y --opencl=pal,legacy --headless
This will only install the opencl part and nothing else, which is what you want as the rest sucks ;)

E: Sorry i just now realized you are using manjaro.
The easiest with manjaro is to get it from the AUR.

  • Allow AUR in pamac if you don't have that already and install the "opencl-amd" package.

that amd guy

User avatar
kalimerox
Posts: 10
Joined: Tue Nov 12, 2019 2:55 pm
Has thanked: 2 times

Re: Problem installing plaidml

Post by kalimerox »

thank you for your answer! I will try that when I m back on my desktop!

User avatar
kalimerox
Posts: 10
Joined: Tue Nov 12, 2019 2:55 pm
Has thanked: 2 times

Re: Problem installing plaidml

Post by kalimerox »

just realized I asked here a similar question a while ago to the problem i run in again now, sorry for that.

I did install opencl-amd but it did not change anything, is there something else i need to do to get it running?

User avatar
kalimerox
Posts: 10
Joined: Tue Nov 12, 2019 2:55 pm
Has thanked: 2 times

Re: Problem installing plaidml

Post by kalimerox »

for the sake of completeness, here is the new crash report. thanks!

Attachments
crash_report.2020.02.03.143901338235.log
(20.97 KiB) Downloaded 241 times
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Problem installing plaidml

Post by torzdf »

[mention]kalimerox[/mention]

This is a different issue. There is a problem with your video file. See here:

viewtopic.php?f=5&t=345

My word is final

User avatar
kalimerox
Posts: 10
Joined: Tue Nov 12, 2019 2:55 pm
Has thanked: 2 times

Re: Problem installing plaidml

Post by kalimerox »

Thank you!

I checked different video files and it seems the problem i have (freezing of the computer till cold restart) persists with different video files. also with a file I extracted before on my laptop system (where i could only use cpu... )

so I m not sure exactly where to start. I m not sure if the freezing will be represented in the crash file, nevertheless I put the latest log file here.

I will keep testing with different files.

Attachments
crash_report.2020.02.03.200516682471.log
(20.97 KiB) Downloaded 232 times
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Problem installing plaidml

Post by torzdf »

Again that crash report is an issue with the video file.

I'm locking this thread, as this is off topic.

My word is final

Locked