MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / show_input_images

Function show_input_images

eval_utils.py:6–13  ·  view source on GitHub ↗
(scene_images, target_images)

Source from the content-addressed store, hash-verified

4import os
5
6def show_input_images(scene_images, target_images):
7 plt.figure(figsize=(15,15))
8 num = len(scene_images)
9 plt.subplot(221), plt.imshow(scene_images[0]), plt.axis('off')
10 plt.subplot(222), plt.imshow(target_images[0]), plt.axis('off')
11 plt.subplot(223), plt.imshow(scene_images[num-1]), plt.axis('off')
12 plt.subplot(224), plt.imshow(target_images[num-1]), plt.axis('off')
13 plt.show()
14
15def resize_viewpoint(img):
16 if img.shape[0] > img.shape[1]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected