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

error on training my own data set #19

Open
KarLea opened this issue Jan 20, 2018 · 1 comment
Open

error on training my own data set #19

KarLea opened this issue Jan 20, 2018 · 1 comment

Comments

@KarLea
Copy link

KarLea commented Jan 20, 2018

I am trying to train my own data set. For starting I prepared 1000 pictures and made an hdf5 file based on 64*64. After that I ran the train_dcgan.py file I had an error and I had to modify the n_vis parameter manually to 10 in train_dcgan.py to get it work. But after that I had a new error which I have paste it here:

Traceback (most recent call last):
File "train_dcgan.py", line 71, in
grid_real = utils.grid_vis((vaX_vis*255.0).astype(np.uint8), n_grid, n_grid)
File "../lib/utils.py", line 138, in grid_vis
img[j * h:j * h + h, i * w:i * w + w, :] = x
ValueError: could not broadcast input array from shape (64,64,3) into shape (0,64,3)

I would be very appreciated if you have any suggestions.

@junyanz
Copy link
Owner

junyanz commented Jan 24, 2018

Could you set n_vis as 9 or 16?

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

2 participants