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

fix resize use problem

parent 55668827
No related branches found
No related tags found
No related merge requests found
...@@ -242,9 +242,6 @@ class ESPCN: ...@@ -242,9 +242,6 @@ class ESPCN:
# data = np.concatenate(data_s) # data = np.concatenate(data_s)
data = np.concatenate(label_s) data = np.concatenate(label_s)
hr_shape = data.shape
data = tf.image.resize(data, (hr_shape[0], hr_shape[1], hr_shape[2] // 2, hr_shape[3] // 2))
label = np.concatenate(label_s) label = np.concatenate(label_s)
label = label[:, label_idx, :, :] label = label[:, label_idx, :, :]
...@@ -252,6 +249,7 @@ class ESPCN: ...@@ -252,6 +249,7 @@ class ESPCN:
data = data[:, data_idx, :, :] data = data[:, data_idx, :, :]
data = np.expand_dims(data, axis=3) data = np.expand_dims(data, axis=3)
data = tf.image.resize(data, (32, 32)).numpy()
data = data.astype(np.float32) data = data.astype(np.float32)
label = label.astype(np.float32) label = label.astype(np.float32)
......
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