MediaBrain-SJTU / RegAD

[ECCV2022 Oral] Registration based Few-Shot Anomaly Detection
MIT License
277 stars 40 forks source link

Why not normalize the input image #47

Open ArlixLin opened 1 year ago

ArlixLin commented 1 year ago

Thank you for your selfless sharing! I see the code below: ` self.transform_x = transforms.Compose([ transforms.Resize([size_tp, size_tp], Image.ANTIALIAS), transforms.CenterCrop([resize, resize]), transforms.ToTensor(),

transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])

    ])

So why don't runtransforms.Normalize`