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

ZeroDivisionError: float division by zero #90

Open
18370271993 opened this issue Oct 27, 2023 · 0 comments
Open

ZeroDivisionError: float division by zero #90

18370271993 opened this issue Oct 27, 2023 · 0 comments

Comments

@18370271993
Copy link

您好,训练结束后,运行验证程序
eval_stats = evaluate(model, criterion, data_loader_val, device, epoch, summary_writer, False)
出现错误:
File "C:\stereo-transformer-main\utilities\eval.py", line 62, in evaluate
eval_stats['epe'] = eval_stats['epe'] / valid_samples
ZeroDivisionError: float division by zero

发现测试集每张图片的losses都是none,请问怎么解决,万分感谢!!!

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