Skip to content
Snippets Groups Projects
Commit 259df647 authored by Manon Blanco's avatar Manon Blanco
Browse files

Add early return

parent 6d9a1591
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !311. Comments created here will be created in the context of that merge request.
......@@ -125,6 +125,9 @@ class DAN:
image = read_image(path)
preprocessed_image = self.preprocessing_transforms(image)
if self.mean is None and self.std is None:
return preprocessed_image, preprocessed_image
size = preprocessed_image.shape
normalized_image = torch.zeros(size)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment