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

snapshot...

parent db11eafa
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,8 @@ def get_image(in_file):
# s_x = slice(2622, 3134)
# s_y = slice(2622, 3134)
s_x = slice(2366, 3390)
s_y = slice(2366, 3390)
s_x = slice(2238, 3518)
s_y = slice(2238, 3518)
# s_x = slice(1854, 3902)
# s_y = slice(1854, 3902)
......@@ -78,8 +78,11 @@ def preprocess_image(hr_image):
def run(in_file):
# model = hub.load(SAVED_MODEL_PATH)
t0 = time.time()
hr_image = get_image(in_file)
hr_image = preprocess_image(hr_image)
t1 = time.time()
print('processing time: ', (t1-t0))
print('start inference: ', hr_image.shape)
t0 = time.time()
fake_image = model(hr_image)
......
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