Open svmaskery opened 2 years ago
Oh thanks for noticing - when moving to the official repository, it seems that two dataset attributes got lost!
To address this, it should hopefully be enough to assign the attributes:
self.transform_mean = IMAGENET_MEAN
self.transform_std = IMAGENET_STD
in src/patchcore/datasets/mvtec > MVTecDataset > __init__()
.
Let me know if that worked or if other errors are thrown!
We will hopefully be able to push a fix soon :).
That did not exactly fix the issue but I got it running, no problem. The --save_segmentation_images is working fine as now but please do the necessary changes. Anyways, the mean and standard deviation is taken from the imagenet dataset, how will the results compare if a custom dataset is used. Does it make a difference?
Give a look at #80 (comment)
Hello, how should I do to get a prediction on the image, like this? ![Uploading 微信图片_20240131225259.png…]()
When I add the --save_segmentation_images tag as shown below to train the model, I get an error as shown below. The same thing happens when I try to run the evaluation too.
Error traceback:
'transform_std', 'transform_mean' and similar attributes are undefined and shows an AttributeError. Please check the code associated to the tag --save_segmentation_images.