Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sariyanidi opened this issue Feb 20, 2020 · 11 comments

Comments

@sariyanidi
Copy link

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
Copy link

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
Copy link

WinnieLaugh commented Apr 6, 2020

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
Copy link

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
Copy link

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
Copy link

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
Copy link

WinnieLaugh commented Jun 24, 2020

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
Copy link

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
Copy link

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
Copy link

qaz8788817 commented Dec 29, 2023

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
Copy link

huyanfei-cqupt commented Dec 29, 2023 via email

@sariyanidi
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants