mli0603 / stereo-transformer

Revisiting Stereo Depth Estimation From a Sequence-to-Sequence Perspective with Transformers. (ICCV 2021 Oral)
Apache License 2.0
664 stars 106 forks source link

ZeroDivisionError: float division by zero #90

Open 18370271993 opened 1 year ago

18370271993 commented 1 year ago

您好,训练结束后,运行验证程序 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,请问怎么解决,万分感谢!!!