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

Can you please solve this error? #5

Open
SethuBargavi opened this issue Feb 4, 2018 · 1 comment
Open

Can you please solve this error? #5

SethuBargavi opened this issue Feb 4, 2018 · 1 comment

Comments

@SethuBargavi
Copy link

Traceback (most recent call last):
File "C:/Users/admin/Desktop/Python Projects/myFirstPython/train.py", line 196, in
train(path = args.path, batch_size = args.batch_size, EPOCHS = args.epochs)
File "C:/Users/admin/Desktop/Python Projects/myFirstPython/train.py", line 111, in train
d_loss = discriminator.train_on_batch(Xd, yd)
File "C:\Users\admin\AppData\Roaming\Python\Python35\site-packages\keras\models.py", line 1069, in train_on_batch
class_weight=class_weight)
File "C:\Users\admin\AppData\Roaming\Python\Python35\site-packages\keras\engine\training.py", line 1843, in train_on_batch
check_batch_axis=True)
File "C:\Users\admin\AppData\Roaming\Python\Python35\site-packages\keras\engine\training.py", line 1430, in _standardize_user_data
exception_prefix='target')
File "C:\Users\admin\AppData\Roaming\Python\Python35\site-packages\keras\engine\training.py", line 70, in _standardize_input_data
data = [np.expand_dims(x, 1) if x is not None and x.ndim == 1 else x for x in data]
File "C:\Users\admin\AppData\Roaming\Python\Python35\site-packages\keras\engine\training.py", line 70, in
data = [np.expand_dims(x, 1) if x is not None and x.ndim == 1 else x for x in data]
AttributeError: 'int' object has no attribute 'ndim'

@innarid
Copy link

innarid commented Feb 5, 2018

I've got the same

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