Skip to content
Snippets Groups Projects
Commit 1badb814 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 4d8b9248
No related branches found
No related tags found
No related merge requests found
......@@ -196,9 +196,9 @@ class OpdNpyDataset:
hr_image = np.stack([refl, opd], axis=3)
hr_image = tf.image.crop_to_bounding_box(hr_image, 0, 0, self.hr_size, self.hr_size)
# low_resolution = tf.image.resize(hr_image, [self.lr_size, self.lr_size], method='bicubic')
low_resolution = tf.image.resize(hr_image, [self.lr_size, self.lr_size], method='bicubic')
# low_resolution = tf.image.resize(hr_image, [self.lr_size, self.lr_size], method='nearest')
low_resolution = hr_image[:, ::4, ::4, :]
# low_resolution = hr_image[:, ::4, ::4, :]
low_resolution = low_resolution.copy()
low_resolution = tf.math.multiply(low_resolution, 255.0)
low_resolution = tf.clip_by_value(low_resolution, 0, 255.0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment