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?
CodePudding user response:
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()