mikael-alafriz-deel / lucid-sonic-dreams

MIT License
771 stars 157 forks source link

Setting up TensorFlow plugin "fused_bias_act.cu": Compiling... Failed! #22

Open greatblueheron opened 3 years ago

greatblueheron commented 3 years ago

I get this with some of the downloaded weights but not all of them (eg lsun cats is fine, obama gives me the above error). I am using anaconda, with nvcc installed via conda install cudatoolkit-dev. Anyone else seeing this and found a workaround?

greatblueheron commented 3 years ago

OK, so I did the following to make this work:

  1. I swapped to stylegan2 from stylegan2-ada
  2. I installed g++ and gcc version 7 and promoted them to be the ones cuda looks for
  3. I changed line 127 in custom_ops.py to

compile_opts += ' --compiler-options \'-fPIC -D_GLIBCXX_USE_CXX11_ABI=1\''

I suspect that the underlying issue with the original error was the gcc/g++ compiler version (tensorflow 1.15 can't stomach 8 or up), although I only got that explicit error message with the stylegan2 repo.