amazon-science / patchcore-inspection

Apache License 2.0
779 stars 154 forks source link

Measuring inference time #55

Open tommiekerssies opened 1 year ago

tommiekerssies commented 1 year ago

Hi, do you have code for measuring inference time? Thank you.

YoojLee commented 1 year ago

In line 166 from patchcore.py, you will be able to get an FPS by setting 'leave' to True. If you multiply FPS by the number of samples per dataset, that's inference time.