Spaces:
Sleeping
Sleeping
Commit
·
f0d85bd
1
Parent(s):
02aaceb
Update dataset.py
Browse files- dataset.py +1 -1
dataset.py
CHANGED
@@ -17,7 +17,7 @@ def normalize_patches(patches):
|
|
17 |
# normalize the patch by subtracting the mean and dividing by the standard deviation
|
18 |
normalized_patch = (patch - patch.mean()) / patch.std()
|
19 |
normalized_patches.append(normalized_patch)
|
20 |
-
return normalized_patches
|
21 |
|
22 |
|
23 |
def connected_components_torch(images,crop_size=15,NrPixels = 2048):
|
|
|
17 |
# normalize the patch by subtracting the mean and dividing by the standard deviation
|
18 |
normalized_patch = (patch - patch.mean()) / patch.std()
|
19 |
normalized_patches.append(normalized_patch)
|
20 |
+
return normalized_patches
|
21 |
|
22 |
|
23 |
def connected_components_torch(images,crop_size=15,NrPixels = 2048):
|