FactorVAE icon indicating copy to clipboard operation
FactorVAE copied to clipboard

Dependency configuration and RuntimeError

Open jpgard opened this issue 4 years ago • 3 comments

I don't think the README lists all of the required dependencies; in particular, torchvision seems to be a required import to run the training scripts. However, torchvision is only compatible with torch 1.5 or higher, but the README lists torch 0.4 as the required version, so I doubt these are compatible.

Can you provide some more information on the exact dependency configuration required to run the scripts, perhaps in the form of a requirements.txt?

Perhaps related to this, when I attempt to reproduce the celeba results, I get the following error:

sh scripts/run_celeba.sh $RUN_NAME
...
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [20, 256, 1, 1]] is at version 3; expected version 2 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).

Is anyone else experiencing this issue?

jpgard avatar May 19 '20 18:05 jpgard

I receive the same runtime error.

AReinke avatar Aug 17 '20 07:08 AReinke

I'm still receiving this error. Hope someone could help to fix it.

noahcao avatar Jun 20 '21 07:06 noahcao

Me too!!!

swainsubrat avatar Apr 01 '22 08:04 swainsubrat