Skip to content

Commit b50e0a0

Browse files
committed
1 parent 3e31883 commit b50e0a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
# 1 배치단위 처리
5151
assert target.shape[0] == output.shape[0]
5252
for i in range(target.shape[0]):
53-
plt.imsave(os.path.join(result_dir, image_names[step]), output[i].cpu(), cmap=cmap)
54-
plt.imsave(os.path.join(groundtruth_dir, image_names[step]), target[i], cmap=cmap)
53+
plt.imsave(os.path.join(result_dir, image_names[step]), output[i].cpu(), cmap=cmap, vmin=0, vmax=cmap.N)
54+
plt.imsave(os.path.join(groundtruth_dir, image_names[step]), target[i], cmap=cmap, vmin=0, vmax=cmap.N)
5555
step += 1

0 commit comments

Comments
 (0)