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

Attribute error: NoneType object has no attribute items #676

Closed
Has37ting opened this issue Oct 2, 2024 · 3 comments
Closed

Attribute error: NoneType object has no attribute items #676

Has37ting opened this issue Oct 2, 2024 · 3 comments

Comments

@Has37ting
Copy link

unable to fit the CNN to training data

Fit the model

history_1 = model_1.fit(train_data,

coming up as error line in code. would appreciate any help you can give in solving this error.

Paul.

@Suv1999
Copy link

Suv1999 commented Oct 9, 2024

SAME PROBLEM BUT NOT GETTING HEPL

@wantedskorp
Copy link

wantedskorp commented Oct 27, 2024

In this line try to use validation_batch_size instead of validation_steps

model_1.fit(train_data, epochs=5, steps_per_epoch=len(train_data), validation_data=valid_data, validation_steps =len(valid_data))

@Has37ting
Copy link
Author

validation_batch_size instead of validation_steps works! thanks Ivan & wantedskorp

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

3 participants