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

Problem while converting tfrecord to lmdb data AttributeError: 'bytes' object has no attribute 'cpu' #49

Open
nitec427 opened this issue Nov 17, 2023 · 5 comments

Comments

@nitec427
Copy link

nitec427 commented Nov 17, 2023

Hey, I am trying to train your https://github.com/NVlabs/denoising-diffusion-gan Denoising Diffusion GAN model and my image size is 256. However, the problem is that repository recommends this repository to download and extract celeb as a lmdb file. However, when I try to run the script as it is described, I am getting the following error.
Screenshot 2023-11-17 at 17 16 12

Can you fix the problem. I can see that tfrecords repository has been archived but may be the problem is different. Thanks a lot.

@LinWeiJeff
Copy link

Hey, I am trying to train your https://github.com/NVlabs/denoising-diffusion-gan Denoising Diffusion GAN model and my image size is 256. However, the problem is that repository recommends this repository to download and extract celeb as a lmdb file. However, when I try to run the script as it is described, I am getting the following error. Screenshot 2023-11-17 at 17 16 12

Can you fix the problem. I can see that tfrecords repository has been archived but may be the problem is different. Thanks a lot.

@nitec427 hello, I'm encountering the same problem, too. Did you solve this problem?

@nitec427
Copy link
Author

@LinWeiJeff Hi, Unfortunately, I couldn't solve my problem back then and continued with another dataset

@sumorday
Copy link

Same issue here

@sumorday
Copy link

im = data['data'][0]
it works

@whitbrunn
Copy link

im = data['data'][0] it works

It's true. Work for me too.

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

4 participants