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

How to detect the speed of the model? #360

Open
liguilan1227 opened this issue Oct 18, 2020 · 6 comments
Open

How to detect the speed of the model? #360

liguilan1227 opened this issue Oct 18, 2020 · 6 comments
Labels

Comments

@liguilan1227
Copy link

I tried this code and got a high accuracy by evaluation.Meanwhile, How could I detect the speed of the model, I mean the object about FPS eval. Could you help me please?

@hiren-2911
Copy link

Hey! is the model working for you?

@hiren-2911
Copy link

Can you please help me i am getting some errors which i have mentioned in the issues

@liguilan1227
Copy link
Author

Can you please help me i am getting some errors which i have mentioned in the issues
I would like to help you but I didnot meet this error as you discribe...

@hiren-2911
Copy link

Did you train the model on your own custom data or are you just using pre-trained ?
if yes, can you please share you code with me?
It would be of great help.
I am using the latest version of this model that is the ssd-keras-0.9.0.

@vk1996
Copy link

vk1996 commented Nov 19, 2020

I tried this code and got a high accuracy by evaluation.Meanwhile, How could I detect the speed of the model, I mean the object about FPS eval. Could you help me please?

Try this

start_time=time.time()
def calc_fps():
    elapsed_time=time.time()-start_time
    return frame_counter//elapsed_time
frame_counter=0
while True:
         model.predict(input_array)
         frame_counter+=1
         print(calc_fps())

@stale
Copy link

stale bot commented Dec 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants