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

AttributeError: module 'nvidia.dali.ops' has no attribute 'nvJPEGDecoder' #5

Open
hangon666 opened this issue Dec 17, 2019 · 4 comments

Comments

@hangon666
Copy link

Traceback (most recent call last):
File "test.py", line 32, in
frontalize(saved_model, datapath, 3)
File "test.py", line 16, in frontalize
test_pipe = ImagePipeline(datapath, image_size=128, random_shuffle=False, batch_size=mtest)
File "/home/hanchao/Wu/frontalization/data.py", line 108, in init
self.decode = ops.nvJPEGDecoder(device = "mixed", output_type = types.RGB)
AttributeError: module 'nvidia.dali.ops' has no attribute 'nvJPEGDecoder'

When i try to run the code, this error ocurred, how can i fix it ?

@hangon666
Copy link
Author

My version of nvidia.dali is 0.16.0, what's the version used in this project?

@opetrova
Copy link
Contributor

@hangon666 try changing
self.decode = ops.nvJPEGDecoder(device = "mixed", output_type = types.RGB) to
self.decode = ops.ImageDecoder(device = 'mixed', output_type = types.RGB)

@hangon666
Copy link
Author

@opetrova
thanks for your reply, I have changed my nvidia.dali version to 0.15.0,
but when i try to test on pytorch==1.1.0, it seems dismatch, and when i test on pytorch==0.4.1, it reminds me that i can't load the pre-trained model
could you tell me which version of pytorch should l use?

@anshen666
Copy link

Traceback (most recent call last): File "test.py", line 32, in frontalize(saved_model, datapath, 3) File "test.py", line 16, in frontalize test_pipe = ImagePipeline(datapath, image_size=128, random_shuffle=False, batch_size=mtest) File "/home/hanchao/Wu/frontalization/data.py", line 108, in init self.decode = ops.nvJPEGDecoder(device = "mixed", output_type = types.RGB) AttributeError: module 'nvidia.dali.ops' has no attribute 'nvJPEGDecoder'

When i try to run the code, this error ocurred, how can i fix it ?

请问方便留个联系方式吗?这个项目一直没跑通,可以留个联系方式交流一下吗?

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

3 participants