Skip to content

Commit 4724841

Browse files
committed
fix(scripts): invert order of conversion to grayscale and cropping
1 parent 350435e commit 4724841

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

boiling_learning/scripts/make_boiling_processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def main(
4444

4545
return [
4646
image_dtype_converter('float32'),
47-
grayscaler(),
4847
{
4948
'GOPR2819': cropper(left=861, right=1687, top=321, bottom=1150),
5049
'GOPR2820': cropper(left=861, right=1678, top=321, bottom=1140),
@@ -180,6 +179,7 @@ def main(
180179
'GOPR2959': cropper(left=980, right=1810, top=400, bottom=1200),
181180
'GOPR2960': cropper(left=980, right=1810, top=400, bottom=1200),
182181
},
182+
grayscaler(),
183183
downscaler(downscale_factor),
184184
cropper(height=height, bottom_border=bottom_border),
185185
{'center': center_cropper, 'random': random_cropper}[crop_mode](

boiling_learning/scripts/make_condensation_processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def main(
2929
]:
3030
return [
3131
image_dtype_converter('float32'),
32-
grayscaler(),
3332
{
3433
'stainless steel:polished:test 6:00003': cropper(
3534
left=849, right=1427, top=307, bottom=900
@@ -112,6 +111,7 @@ def main(
112111
'parametric:rh 90%:test 5:00013': cropper(left=744, right=1307, top=231, bottom=802),
113112
'parametric:rh 90%:test 5:00012': cropper(left=744, right=1312, top=226, bottom=806),
114113
},
114+
grayscaler(),
115115
downscaler(downscale_factor),
116116
{'center': center_cropper, 'random': random_cropper}[crop_mode](
117117
height=height, width=width

0 commit comments

Comments
 (0)