pierluigiferrari / ssd_keras

A Keras port of Single Shot MultiBox Detector
Apache License 2.0
1.86k stars 934 forks source link

How to detect the speed of the model? #360

Open liguilan1227 opened 3 years ago

liguilan1227 commented 3 years ago

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 commented 3 years ago

Hey! is the model working for you?

hiren-2911 commented 3 years ago

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

liguilan1227 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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[bot] commented 3 years ago

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.