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

name 'detection_' is not defined #30

Open
rutuja1409 opened this issue Jun 24, 2020 · 8 comments
Open

name 'detection_' is not defined #30

rutuja1409 opened this issue Jun 24, 2020 · 8 comments

Comments

@rutuja1409
Copy link

At the end of VehicleMonitor.py file , line 417.

with detection_.as_default():
NameError: name 'detection_' is not defined

Please help me solve this error. I have solved all the previous error and stuck at the end. GUI is opening but nothing is happening only I am able to see the title .
Thank you.

@sujaykadam
Copy link
Contributor

its not "detection_" it is actually "detection_graph"
so replace "with detection_.as_default():" with "with detection_graph.as_default():"

this should solve it

@rutuja1409
Copy link
Author

@sujaykadam Thank you. It worked and now I'm able to see GUI with an image.
Can you help me one more time? How can I run a video in this model as it is displaying only one image right now?
Please reply. Thank you.
WhatsApp Image 2020-06-24 at 8 40 16 PM

@sujaykadam
Copy link
Contributor

have you forked this repo? if not just fork it and push your version to your branch. I'll take a look.

@rutuja1409
Copy link
Author

@sujaykadam I forked the repo and updated my version. Can you please have a look and let me know..

@rutuja1409 rutuja1409 reopened this Jun 24, 2020
@rutuja1409
Copy link
Author

have you forked this repo? if not just fork it and push your version to your branch. I'll take a look.
@sujaykadam I forked the repo and updated my version. Can you please have a look and let me know.

@rutuja1409
Copy link
Author

@sujaykadam Thank you. It worked and now I'm able to see GUI with an image.
Can you help me one more time? How can I run a video in this model as it is displaying only one image right now?
Please reply. Thank you.
WhatsApp Image 2020-06-24 at 8 40 16 PM

Can anyone please help me solve this ? How can I run video in this model ?

@sujaykadam
Copy link
Contributor

works fine on both my machines on windows and linux, may be a hardware issue, do you have a gpu?

@rutuja1409
Copy link
Author

works fine on both my machines on windows and linux, may be a hardware issue, do you have a gpu?

It is working only on the videos in this repo.. If i am giving an input of another video from youtube or any other source. Then it is not working properly, the stop line is drawn anywhere at that time. Are you facing this problem ? Please guide. Thank you.

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