marco-rudolph / differnet

This is the official repository to the WACV 2021 paper "Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flows" by Marco Rudolph, Bastian Wandt and Bodo Rosenhahn.
215 stars 67 forks source link

How to do the test model with an image? #6

Closed nguyenanhtuan1008 closed 3 years ago

nguyenanhtuan1008 commented 3 years ago

@marco-rudolph Thank you for your work. I would like to take the model then testing with an image, and show the score. How can I do that?

marco-rudolph commented 3 years ago

The lines from here describe the evaluation. This line allows you to compute z and this line and the following can be used to compute the anomaly score.

nguyenanhtuan1008 commented 3 years ago

Thank you! I will try it!