lizhe00 / AvatarCap

Code of [ECCV 2022] "AvatarCap: Animatable Avatar Conditioned Monocular Human Volumetric Capture"
http://www.liuyebin.com/avatarcap/avatarcap.html
179 stars 22 forks source link

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation #27

Closed miseon119 closed 1 year ago

miseon119 commented 1 year ago

Hi, I re-run your code in windows 11, I got this error..

image

if I add

torch.autograd.set_detect_anomaly(True) in your main.py before I train. I got this .

image

How should I fix this problem.

my environment is:

miseon119 commented 1 year ago

I think it is a torch version problem. I used pytorch 1.12. My colleague changed code like this, it works:

image
lizhe00 commented 1 year ago

Maybe such a modification cannot work, since no gradient is propagated from the total loss.

miseon119 commented 1 year ago

You are right. It's not work.