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

train error #13

Open
ucasiggcas opened this issue Dec 8, 2019 · 0 comments
Open

train error #13

ucasiggcas opened this issue Dec 8, 2019 · 0 comments

Comments

@ucasiggcas
Copy link

when I run the mixed-stylegan got the error

Traceback (most recent call last):
  File "mixed-stylegan.py", line 764, in <module>
    model.train()
  File "mixed-stylegan.py", line 513, in train
    a = self.train_dis()
  File "mixed-stylegan.py", line 561, in train_dis
    d_loss = self.DisModel.train_on_batch(train_data, [self.ones, self.nones, self.ones])
  File "D:\python\lib\site-packages\keras\engine\training.py", line 1443, in train_on_batch
    class_weight=class_weight)
  File "D:\python\lib\site-packages\keras\engine\training.py", line 757, in _standardize_user_data
    exception_prefix='input')
  File "D:\python\lib\site-packages\keras\engine\training_utils.py", line 131, in standardize_input_data
    'with shape ' + str(data_shape))
ValueError: Error when checking input: expected input_12 to have 4 dimensions, but got array with shape (4, 1)

pls
help me !
SOS

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