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  小kk_p  阅读(395)  评论(0)    收藏  举报