Issue
this is the code I am working with:
I searched for a similiar error do i need to change the .close() ?
Can anyone help please?
Solution
You should remove the close() function call on the parameter tensor image in line –
image = tensor.cpu().close().detach().numpy()
. This should be replaced with – image = tensor.cpu().detach().numpy()
Answered By – Aditya
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0