Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with loss function when training with 512x512 data #56

Open
playmakerbugger opened this issue Jan 10, 2022 · 2 comments
Open

Problem with loss function when training with 512x512 data #56

playmakerbugger opened this issue Jan 10, 2022 · 2 comments

Comments

@playmakerbugger
Copy link

I am training on a 512 x 512 set of data, using 4 gpus. I am having a stall during the loss process where it locks during the calculation of the loss. It gives a user warning of "was asked to gather along dimension 0, but all input tensors were scalars; will instead unsqueeze and return a vector."

Is there a way to split the loss function to work on multiple gpus with the DataParallelwithCallback? I noticed that the loss is only calculating on gpu 0.

@AliaksandrSiarohin
Copy link
Owner

I guess bs is too large.

@playmakerbugger
Copy link
Author

playmakerbugger commented Jan 10, 2022

I was using a batch size of 6. Should I lower it? Because it says it even on a batch size as low as 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants