torch.tensor转numpy

 

outputs.cpu().detach().numpy()[0,:,:,:].shape

import matplotlib.pyplot as pyplot 
pyplot.imshow(binary_mask)
pyplot.show()
posted @ 2022-03-15 09:21  小丑_jk  阅读(387)  评论(0编辑  收藏  举报