InCTRL icon indicating copy to clipboard operation
InCTRL copied to clipboard

how to test one img?

Open czy5638222 opened this issue 1 year ago • 2 comments

How should I write the code to input an image and return the anomaly score? Please help me

czy5638222 avatar Jun 28 '24 03:06 czy5638222

@Diana1026 Thank you for sharing this Github, it's very interesting. I have exactly the same question above, I hope someone can help. The idea is to test the pretrained model on one image and see either the mask of image if there is an anomaly or "no anomaly detected" ... Best regards!

baraa-m avatar Jul 04 '24 22:07 baraa-m

Hi, I did not write any script for testing one single image, so maybe you can modify the code by yourself. Besides, our paper did not involve the anomaly segmentation task as we did not use the mask ground truth during training. However, I believe you can obtain a simple anomaly similarity map based on interpolating the holistic map.

Diana1026 avatar Jul 05 '24 15:07 Diana1026