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 about training #3

Open
atomishcv opened this issue Jun 14, 2022 · 0 comments
Open

problem about training #3

atomishcv opened this issue Jun 14, 2022 · 0 comments

Comments

@atomishcv
Copy link

when i train the code ,the program feedback such information:
0%| | 0/1250 [00:05<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\aust\Desktop\Coarse_LoFTR_TRT-main\train\trainer.py", line 154, in train_loop
self.scaler.scale(loss).backward()
File "C:\Users\aust\anaconda3\lib\site-packages\torch_tensor.py", line 255, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
File "C:\Users\aust\anaconda3\lib\site-packages\torch\autograd_init_.py", line 147, in backward
Variable._execution_engine.run_backward(
RuntimeError: Function 'KlDivBackward' returned nan values in its 0th output.
python-BaseException

it looks like the loss function has problem?

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

1 participant