Page 1 of 1

Error importing tensorflow

Posted: Wed Sep 06, 2023 2:48 pm
by Will999

Hello, I installed Faceswap on a fresh install of Ubuntu 22.04. The installation completed without any errors. I did install rocm prior to installing faceswap. My gpu is the rx6750xt.

When attempting to start faceswap I get the following error:

bob@bobby:~$ cd faceswap/
bob@bobby:~/faceswap$ conda activate faceswap
(faceswap) bob@bobby:~/faceswap$ python faceswap.py gui
Setting Faceswap backend to ROCM
09/06/2023 10:35:28 INFO Log level set to: INFO
09/06/2023 10:35:28 ERROR There was an error importing Tensorflow. This is most likely because you do not have TensorFlow installed, or you are trying to run tensorflow-gpu on a system without an Nvidia graphics card. Original import error: libhsa-runtime64.so.1: cannot open shared object file: No such file or directory

Any help would be appreciated.


Re: Error importing tensorflow

Posted: Thu Sep 07, 2023 9:12 pm
by torzdf

This looks like a ROCm specific issue. Sadly, I am unable to test the ROCm setup as I do not have a compatible GPU. If you do find the solution though, please post back to help other users.


Re: Error importing tensorflow

Posted: Mon Sep 11, 2023 8:58 pm
by Will999

I missed the part in the installation instructions about tensorflow requiring a specific version of rocm. I had installed the default version 5.6. I uninstalled rocm (apt autoremove rocm-core) and then installed version 5.3 and now it works.


Re: Error importing tensorflow

Posted: Mon Sep 11, 2023 11:27 pm
by Will999

After further tinkering it seems the rx6750xt is not supported by rocm. Sigh... guess i'll have to install windows


Re: Error importing tensorflow

Posted: Tue Sep 12, 2023 8:21 am
by torzdf

Yeah, that sucks :(

ROCm really is a bit of a pain at the moment, but I hope it improves over time. I have an old AMD GPU kicking around that I wanted to use for testing ROCm, but, similarly, I found it was not supported.

Thanks for the update.