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

ValueError: Expected both input arguments to be normalized tensors with shape [N, 3, H, W]. Got input with shape torch.Size([10, 3, 192, 192]) and torch.Size([10, 3, 192, 192]) and values in range [tensor(nan, device='cuda:3', grad_fn=<MinBackward1>) #183

Open
Mrguanglei opened this issue Jan 20, 2025 · 0 comments

Comments

@Mrguanglei
Copy link

Hello developer, I have a problem now. When I got to 1000 steps, ValueError: Expected both input arguments to be normalized tensors with shape [N, 3, H, W]. Got input with shape torch.Size([10, 3, 192, 192]) and torch.Size([10, 3, 192, 192]) and values in range [tensor(nan, device='cuda:3', grad_fn=), tensor(nan, device='cuda:3', grad_fn=)] and [tensor(-1., device='cuda:3'), tensor(1., device='cuda:3')] when all values are expected to be in the [-1, 1] range. "Error. I froze the VIT and retrained, but this error still occurred. Then I remove the logs and redo the operation. This error occurred in step 2. How to solve this problem, I fell into thinking. Hope to get your help

Image

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