Skip to content

Commit

Permalink
In mvtec.py, assigning transform_std and transform_mean to solve Issue
Browse files Browse the repository at this point in the history
…amazon-science#80 in patchcore-inspection.
  • Loading branch information
rovodanica committed Jan 24, 2024
1 parent ec1960c commit 1264a1f
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 0 deletions.
Binary file added .tmp.driveupload/17471
Binary file not shown.
Binary file added .tmp.driveupload/17475
Binary file not shown.
Binary file added .tmp.driveupload/17479
Binary file not shown.
Binary file added .tmp.driveupload/17483
Binary file not shown.
Binary file added .tmp.driveupload/17487
Binary file not shown.
Binary file added .tmp.driveupload/17491
Binary file not shown.
Binary file added .tmp.driveupload/17495
Binary file not shown.
Binary file added .tmp.driveupload/17499
Binary file not shown.
Binary file added .tmp.driveupload/17503
Binary file not shown.
Binary file added .tmp.driveupload/17507
Binary file not shown.
Binary file added .tmp.driveupload/17511
Binary file not shown.
Binary file added .tmp.driveupload/17515
Binary file not shown.
Binary file added .tmp.driveupload/17536
Binary file not shown.
Binary file added .tmp.driveupload/17538
Binary file not shown.
Binary file added .tmp.driveupload/17542
Binary file not shown.
3 changes: 3 additions & 0 deletions src/patchcore/datasets/mvtec.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def __init__(

self.imagesize = (3, imagesize, imagesize)

self.transform_std = IMAGENET_STD
self.transform_mean = IMAGENET_MEAN

def __getitem__(self, idx):
classname, anomaly, image_path, mask_path = self.data_to_iterate[idx]
image = PIL.Image.open(image_path).convert("RGB")
Expand Down

0 comments on commit 1264a1f

Please sign in to comment.