tranluan / Nonlinear_Face_3DMM

Source code for "Nonlinear 3D Face Morphable Model"
http://cvlab.cse.msu.edu/project-nonlinear-3dmm.html
Apache License 2.0
673 stars 123 forks source link

InvalidArgumentError: No OpKernel was registered to support Op 'ZbufferTriV2Sz224' #36

Open sariyanidi opened 4 years ago

sariyanidi commented 4 years ago

I can't run rendering_example.py successfully, I get the following error:

tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'ZbufferTriV2Sz224' used by node ZbufferTriV2Sz224 (defined at :82) with these attrs: [] Registered devices: [CPU, XLA_CPU, XLA_GPU] Registered kernels: device='GPU'

I see that others came across the same issue, but a clear solution does not exist.

My system configuration is:

Is there a system configuration that is suggested to run this code?

Thanks

anhaichuan commented 4 years ago

I think this code can only run in such an environment: ubuntu 16.04 tensorflow-gpu 1.3.0 cuda 8.0,cudnn 6.0 python3.5

WinnieLaugh commented 4 years ago

Hi,

I don't know why, but the following lines works for me, at least while running "rendering_Example.py":

`conda create -n nonlinear-3dmm python=3.6.8

conda activate nonlinear-3dmm

pip install tensorflow==1.13.1

pip install tensorflow-gpu==1.13.1`

I have tried the above lines on both of my machines, both are ubuntu 18.04 with 2080Ti, Cuda 10.0, and it seems that they work well till now.

zhuang12 commented 4 years ago

I think this code can only run in such an environment: ubuntu 16.04 tensorflow-gpu 1.3.0 cuda 8.0,cudnn 6.0 python3.5

Are you sure this code can run in python3.5 without any modifications? If you run it successfully,would you like send me your code ? I will use it in your environment, thanks.

huyanfei-cqupt commented 4 years ago

I think this code can only run in such an environment: ubuntu 16.04 tensorflow-gpu 1.3.0 cuda 8.0,cudnn 6.0 python3.5

Are you sure this code can run in python3.5 without any modifications? If you run it successfully,would you like send me your code ? I will use it in your environment, thanks. I don't know what 'self.gfc_dim' means,Can you explain it to me? thanks.

huyanfei-cqupt commented 4 years ago

Hi,

I don't know why, but the following lines works for me, at least while running "rendering_Example.py":

`conda create -n nonlinear-3dmm python=3.6.8

conda activate nonlinear-3dmm

pip install tensorflow==1.13.1

pip install tensorflow-gpu==1.13.1`

I have tried the above lines on both of my machines, both are ubuntu 18.04 with 2080Ti, Cuda 10.0, and it seems that they work well till now.

hi, can you tell me that how to run this source code?

Hi,

I don't know why, but the following lines works for me, at least while running "rendering_Example.py":

`conda create -n nonlinear-3dmm python=3.6.8

conda activate nonlinear-3dmm

pip install tensorflow==1.13.1

pip install tensorflow-gpu==1.13.1`

I have tried the above lines on both of my machines, both are ubuntu 18.04 with 2080Ti, Cuda 10.0, and it seems that they work well till now.

Hi,

I don't know why, but the following lines works for me, at least while running "rendering_Example.py":

`conda create -n nonlinear-3dmm python=3.6.8

conda activate nonlinear-3dmm

pip install tensorflow==1.13.1

pip install tensorflow-gpu==1.13.1`

I have tried the above lines on both of my machines, both are ubuntu 18.04 with 2080Ti, Cuda 10.0, and it seems that they work well till now.

hi, can you tell me that how to run this source code? I try to use the follow command to run the 'main_non_linear_3DMM.py ' ,But i failed. the error as follow: "NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory" the command as follow ""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224 \ --gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3 \ --is_using_landmark True --shape_loss l2 --tex_loss l1 \ --is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True \ --is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True --gpu 0,"" Have you encountered this error? Thank you very much for your answer

WinnieLaugh commented 4 years ago

Sorry for the reply. No, I haven't encountered this error. It seems like a tensorflow installation problem. Have you checked your tensorflow installation? Maybe you could use conda and try the commands as listed.

Hi, I don't know why, but the following lines works for me, at least while running "rendering_Example.py": conda create -n nonlinear-3dmm python=3.6.8 conda activate nonlinear-3dmm pip install tensorflow==1.13.1 pip install tensorflow-gpu==1.13.1 I have tried the above lines on both of my machines, both are ubuntu 18.04 with 2080Ti, Cuda 10.0, and it seems that they work well till now.

hi, can you tell me that how to run this source code?

Hi, I don't know why, but the following lines works for me, at least while running "rendering_Example.py": conda create -n nonlinear-3dmm python=3.6.8 conda activate nonlinear-3dmm pip install tensorflow==1.13.1 pip install tensorflow-gpu==1.13.1 I have tried the above lines on both of my machines, both are ubuntu 18.04 with 2080Ti, Cuda 10.0, and it seems that they work well till now.

Hi, I don't know why, but the following lines works for me, at least while running "rendering_Example.py": conda create -n nonlinear-3dmm python=3.6.8 conda activate nonlinear-3dmm pip install tensorflow==1.13.1 pip install tensorflow-gpu==1.13.1 I have tried the above lines on both of my machines, both are ubuntu 18.04 with 2080Ti, Cuda 10.0, and it seems that they work well till now.

hi, can you tell me that how to run this source code? I try to use the follow command to run the 'main_non_linear_3DMM.py ' ,But i failed. the error as follow: "NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory" the command as follow ""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224 --gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3 --is_using_landmark True --shape_loss l2 --tex_loss l1 --is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True --is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True --gpu 0,"" Have you encountered this error? Thank you very much for your answer

huyanfei-cqupt commented 4 years ago

I can't run rendering_example.py successfully, I get the following error:

tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'ZbufferTriV2Sz224' used by node ZbufferTriV2Sz224 (defined at :82) with these attrs: [] Registered devices: [CPU, XLA_CPU, XLA_GPU] Registered kernels: device='GPU'

I see that others came across the same issue, but a clear solution does not exist.

My system configuration is:

* Ubuntu 18.04

* tensorflow 1.13.1 (tried it because I saw it  worked for @knma in [#12 (comment)](https://github.com/tranluan/Nonlinear_Face_3DMM/issues/12#issuecomment-489644290)_  BUT I also tried tensorflow 1.8 and 1.14 and none of them worked)

* Cuda 10.0

* Python 2.7

Is there a system configuration that is suggested to run this code?

Thanks

Hi, Did you solve this problem? I meet a same problem with you

Wangpeidi commented 1 year ago

I can't run rendering_example.py successfully, I get the following error:

tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'ZbufferTriV2Sz224' used by node ZbufferTriV2Sz224 (defined at :82) with these attrs: [] Registered devices: [CPU, XLA_CPU, XLA_GPU] Registered kernels: device='GPU'

I see that others came across the same issue, but a clear solution does not exist. My system configuration is:

* Ubuntu 18.04

* tensorflow 1.13.1 (tried it because I saw it  worked for @knma in [#12 (comment)](https://github.com/tranluan/Nonlinear_Face_3DMM/issues/12#issuecomment-489644290)_  BUT I also tried tensorflow 1.8 and 1.14 and none of them worked)

* Cuda 10.0

* Python 2.7

Is there a system configuration that is suggested to run this code? Thanks

Hi, Did you solve this problem? I meet a same problem with you

hello, Did you solve this problem now?

qaz8788817 commented 8 months ago

Hi, I have the same problem. Did you solve this problem now?

image

This is my system configuration:

Ubuntu 18.04 Python 3.6.8 tensorflow 1.8.0 Cuda 11.7

And I've tried all the configurations above, still doesn't work.

huyanfei-cqupt commented 8 months ago

您的来信来信已收到,谢谢。

sariyanidi commented 7 months ago

Hi, I have the same problem. Did you solve this problem now?

image

This is my system configuration:

Ubuntu 18.04 Python 3.6.8 tensorflow 1.8.0 Cuda 11.7

And I've tried all the configurations above, still doesn't work.

No I haven't tried any further to solve the problem