vid2avatar icon indicating copy to clipboard operation
vid2avatar copied to clipboard

Code not working for multi-gpu setting

Open Jerry-Master opened this issue 2 years ago • 1 comments

Sorry for the inconvenience, but this would be an awesome way to speed up training. I changed the line 22 of file code/train.py to be gpus=-1 which is the value for pytorch lightning to use all available gpus. But when doing so the following error appears:

RuntimeError: Cowardly refusing to serialize non-leaf tensor which requires_grad, since autograd does not support crossing process boundaries. If you just want to transfer the data, call detach() on the tensor before serializing (e.g., putting it on the queue).

The traceback points to the trainer.fit() line but it does not give any additional information pointing to any other file of your repository. If you could fix it and try on a multi-gpu setting this could make the project more usable. Thanks in advance.

Jerry-Master avatar Jul 07 '23 14:07 Jerry-Master

We will be working on this but no guarantee for the release date.

MoyGcc avatar Jul 18 '23 14:07 MoyGcc