Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZhuXing committed Sep 11, 2020
1 parent 6f289dc commit 6693eae
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions source/03_evaluation/03_04_eval_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,4 @@



# %%
# match two image
input_idx = 0
db_idx = 1
input_img = img_real[input_idx].reshape((1, 160, 160, 1)).astype(np.float32) / 255.
db_img = img_real[db_idx].reshape((1, 160, 160, 1)).astype(np.float32) / 255.
pred_right = model.predict([input_img, db_img])

# show result
plt.figure(figsize=(8, 4))
plt.subplot(1, 2, 1)
plt.title('Input: %s' %input_idx)
plt.imshow(input_img.squeeze(), cmap='gray')
plt.subplot(1, 2, 2)
if (pred_right > 0.9):
plt.title('O: %.02f, %s' % (pred_right, db_idx))
else:
plt.title('X: %.02f, %s' % (pred_right, db_idx))
plt.imshow(db_img.squeeze(), cmap='gray')



# %%

0 comments on commit 6693eae

Please sign in to comment.