Closed henryruhs closed 1 year ago
Thanks for the message!
Just by glancing your predictor.py
module, one guess is you are using keras
but not keras_core
. Maybe you could give a try as well.
Other than that, I cannot reproduce the error.
If the above does not help, could you provide a minimal example that can reproduce it?
EDIT:
Ah, no, your keras
import is only for the Model
typing. Then it should not be related. In that case, please provide an example. Thanks a lot!
I can just copy / paste your example to reproduce the issue: https://github.com/bhky/opennsfw2#lower-level-with-keras-core
Just a side note: move the install bash scripting to .github/workflow
... I got pretty much confused finding this in tests. General speaking, if you need a wrapper to run your testing suite - something is off. A pytest
with pytest-env
should do it in any case...
Ummm, there is no issue when I run it on both CPU or GPU.
Judging from your error messages, it looks like something related to this, i.e., is it something related to your CUDA setup?
That does actual fix it: os.environ['XLA_FLAGS'] = '--xla_gpu_cuda_data_dir=/usr/local/cuda-11'
Good to hear! So it's the CUDA setup of the local environment.
And regarding your issue with the test setup, in fact you can just use unittest
to run my test file, it's quite standalone there.
Our low level implementation is causing an error once we update to the 0.11.0 release.
Code
Source: https://github.com/facefusion/facefusion/blob/master/facefusion/predictor.py
Error