MCPcopy Create free account
hub / github.com/pytorch/tutorials / show_landmarks

Function show_landmarks

beginner_source/data_loading_tutorial.py:83–87  ·  view source on GitHub ↗

Show image with landmarks

(image, landmarks)

Source from the content-addressed store, hash-verified

81#
82
83def show_landmarks(image, landmarks):
84 """Show image with landmarks"""
85 plt.imshow(image)
86 plt.scatter(landmarks[:, 0], landmarks[:, 1], s=10, marker='.', c='r')
87 plt.pause(0.001) # pause a bit so that plots are updated
88
89plt.figure()
90show_landmarks(io.imread(os.path.join('data/faces/', img_name)),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected