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

In DCGAN got error #2

Open
sadra-sharifzade opened this issue Aug 16, 2020 · 0 comments
Open

In DCGAN got error #2

sadra-sharifzade opened this issue Aug 16, 2020 · 0 comments

Comments

@sadra-sharifzade
Copy link

sadra-sharifzade commented Aug 16, 2020

when I run this code in the line 66 to 70 I got many errors.(note that I'm not professional at tensorflow and I want a DCGAN program to run, not to learn). first please say in the line 66 to 70 :dataset = (tf.data.Dataset.list_files('./faces/*.jpg') .map(lambda x: (tf.cast(tf.image.decode_jpeg(tf.read_file(x)), tf.float64)/127.5-1, tf.ones(1, tf.int32))) .batch(batch_size) .repeat())

I have these questions:

  1. Should I change the './faces/*.jpg' in (tf.data.Dataset.list_files('./faces/*.jpg') to my dataset address?
  2. I have '.npy' dataset (which contain a RGB values of each pixel of each picture in numpy array) what should I do?(what parts should be changed?)
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

1 participant