PeterouZh/CIPS-3D

Output images with gradient during inference

lelechen63 opened this issue · 1 comments

Hi there,

I try to output the image with the gradient. However, I found that if I use your default testing code, it will call whole_grad_forward (

), and will remove the gradient. If I comment out the torch.no_grad(), it would be out of memory. Is there a way to output the image with gradient? Thanks

Solved.