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

Dataset for Training #1

Open
divamgupta opened this issue Apr 16, 2016 · 5 comments
Open

Dataset for Training #1

divamgupta opened this issue Apr 16, 2016 · 5 comments

Comments

@divamgupta
Copy link

I trained the model on various datasets having more then 20k images, but even after several epochs i'm not getting the desired results.

Can I know the dataset on which this model has been trained and tested?

Thank You

@jchen7
Copy link

jchen7 commented Apr 27, 2016

Couple questions, divamgupta. Which version of keras did you try it on? Did you try changing anything to get it to work, or did you run the model as is? I am having some trouble training as well.

Thanks

@kastnerkyle
Copy link

kastnerkyle commented Jun 30, 2016

You might need to closer match DCGAN's original setup - feeding the samples and data as separate minibatches to the discriminator is important. See the line here and just before https://github.com/Newmu/dcgan_code/blob/master/faces/train_uncond_dcgan.py#L138

@MinaRe
Copy link

MinaRe commented Nov 15, 2016

Dear @jacobgil

Thanks for sharing and nice implementation,
I want to generate 5 different type gray scale images (on my dataset) the image input should be hdf5 format?

Thanks in advance!

@jacobgil
Copy link
Owner

@MinaRe The images should be in any format that can be read with opencv - i.e .jpg, .png, .pgm etc.

@jacobgil
Copy link
Owner

jacobgil commented Nov 24, 2016

@MinaRe
I'm not sure what is the question.
One way to load images would to be just use opencv, and load them into numpy arrays.
import cv2
img = cv2.imread("/home/MinaRe/img.png", 0)
img = cv2.imresize(img, (32, 32))

And then set X_train to be these images.
Since you have many images and the RAM space might be a bottleneck, you will probably want to load a next batch of images from disk in the training loop.
Hopefully that helps.

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

5 participants