Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pengsida committed May 22, 2019
2 parents 3392b5e + 4b4a444 commit bac3608
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ def read_data():


def visualize_mask(mask):
plt.imshow(mask[0])
plt.imshow(mask[0].cpu())
plt.show()


def visualize_vertex(vertex, vertex_weights):
vertex = vertex * vertex_weights
for i in range(9):
_, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 8))
ax1.imshow(vertex[0, 2*i])
ax2.imshow(vertex[0, 2*i+1])
ax1.imshow(vertex[0, 2*i].cpu())
ax2.imshow(vertex[0, 2*i+1].cpu())
plt.show()


Expand Down

0 comments on commit bac3608

Please sign in to comment.