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

having error in executing object detection module #19888

Open
gguy145 opened this issue Jun 20, 2024 · 2 comments
Open

having error in executing object detection module #19888

gguy145 opened this issue Jun 20, 2024 · 2 comments

Comments

@gguy145
Copy link

gguy145 commented Jun 20, 2024

C:\Smart-Traffic-Management-Using-Deep-Learning-master\cnn model>python trained_Model.py
Loaded model from disk
Traceback (most recent call last):
File "C:\Smart-Traffic-Management-Using-Deep-Learning-master\cnn model\trained_Model.py", line 36, in
result_x = loaded_model.predict_classes(image)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Sequential' object has no attribute 'predict_classes'. Did you mean: 'predict_step'?

@mehtamansi29
Copy link
Collaborator

Hi @gguy145-

Can you try to predict class using loaded_model.predict(image) instead of loaded_model.predict_classes(image) ?

Copy link

github-actions bot commented Jul 6, 2024

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants