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

snapshot...

parent 649f4e3e
Branches
No related tags found
No related merge requests found
......@@ -65,24 +65,6 @@ def get_image_from_file(in_file):
return data
def get_image(data):
shape = data.shape
data = data.flatten()
lo = 0.0
hi = 160.0
data -= lo
data /= (hi - lo)
not_valid = np.isnan(data)
data[not_valid] = 0
data = np.reshape(data, shape)
return data
def preprocess_image(hr_image):
""" Loads image from path and preprocesses to make it model ready
Args:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment