liznerski / fcdd

Repository for the Explainable Deep One-Class Classification paper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'fcdd'

EudicL opened this issue · comments

Hi, How to solve this problem please?

Traceback (most recent call last):
File "runners/run_mvtec.py", line 1, in
from fcdd.runners.bases import ClassesRunner
ModuleNotFoundError: No module named 'fcdd'

Hey. Did you install FCDD properly (see here), and if you used a virtual environment, did you activate it before executing the scripts?

Hey, the image of the model input is RGB or BGR. I am not clear it, thanks.

Hey. It's RGB since we use Pillow to load and process the images. However, some functionalities for displaying and storing images like the heatmaps use OpenCV instead, for which the images are temporarily transformed into BGR. You will see that in the code.

Hey. It's RGB since we use Pillow to load and process the images. However, some functionalities for displaying and storing images like the heatmaps use OpenCV instead, for which the images are temporarily transformed into BGR. You will see that in the code.

Thank you for your reply, I understand this problem. Now , I meet a new problem, If I want to get anomaly socre of the picture, I need to choose the Pixel-wise anomaly scores or sample-wise anomaly scores. The pixiels anomaly score is ||A(X)||_1 , the other is mean value of ||A(X)||_1. So , What is the difference between them?

The pixel-wise score is actually just A(X). If you got confused by this line, note that it computes the mean over the channels and since there is just one channel, it essentially does nothing. The sample-wise anomaly score is the mean over the spatial dimensions (height and width), so just one scalar per sample that determines how overall anomalous the sample is. This is what you use for detection.