EfficientAd is slower than other models in anomalib #2147
Unanswered
haimat
asked this question in
Feature Requests
Replies: 3 comments 2 replies
-
Hello, no news on this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello, I have a couple of suggestions. You can try 256x256 pixels size to match papers. Also, you can try to run it without ONNX, optimization might be working differently for different models. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@haimat Can you please share the source code you are using for this comparison and I can see if these results are reproducible on my end? thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I had the impression that the EfficientAd model would be among the fastest in anomalib in terms of prediction times. To verify that I have trained three models, Padim, Fastflow, and EfficientAd, all with the same training data and an image dimension of 512x512 pixels. Then I have written a small script that loads these models, warms up the GPU, and then runs prediction on 100 images. I measure only the model forward time, no image loading or any pre- or post-processing.
With the models exported to ONNX I get these results (avg. model forwards times on 100 images):
So in other words: The EfficientAd model is the slowest from these three, and Padim the fastest - I thought it would be the other way round. Am I missing something, or is this a bug in anomalib?
Beta Was this translation helpful? Give feedback.
All reactions