amazon-science / patchcore-inspection

Apache License 2.0
691 stars 142 forks source link

Only one class present in y_true. ROC AUC score is not defined in that case. #68

Closed MikeLilley closed 1 year ago

MikeLilley commented 1 year ago

Hello,

I am attempting to use run_patchcore.py to train on a custom dataset, and am getting the error after training and attempting t compute evaluation metrics"Only one class present in y_true when attempting to compute evaluation metrics. ROC AUC score is not defined in that case."

My dataset is structured as follows:

I am not sure what could be causing this, as this is working on an identically structured dataset modified from MVTec; any help would be appreciated.