You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when i run the original code, it always occurs the ZeroDivisionError, it also happens after i change the dataset. The reason is that the TP and FP are both 0 at the same time, so the precision is very low. It seems like the network is not converging. What should i do? Traceback (most recent call last): File "train.py", line 263, in <module> main() File "train.py", line 93, in main is_best = run_epochs("val", conf, val_loader, model, None, logger, epoch, device, lr_scheduler) File "train.py", line 233, in run_epochs result.evaluate(pred, batch_data, loss.item(), batch_index) File "/home/linux/catkin_ws/LineTR-train/evaluations/metric.py", line 40, in evaluate precision, recall, f1_score = self.eval_pr.get_precision_recall(score_pred, score_gt) File "/home/linux/catkin_ws/LineTR-train/evaluations/evaluate_pr.py", line 31, in get_precision_recall precision = np.average(np.nan_to_num(TP / (TP+FP)))*100. ZeroDivisionError: division by zero
The text was updated successfully, but these errors were encountered:
Hello, when i run the original code, it always occurs the ZeroDivisionError, it also happens after i change the dataset. The reason is that the TP and FP are both 0 at the same time, so the precision is very low. It seems like the network is not converging. What should i do?
Traceback (most recent call last): File "train.py", line 263, in <module> main() File "train.py", line 93, in main is_best = run_epochs("val", conf, val_loader, model, None, logger, epoch, device, lr_scheduler) File "train.py", line 233, in run_epochs result.evaluate(pred, batch_data, loss.item(), batch_index) File "/home/linux/catkin_ws/LineTR-train/evaluations/metric.py", line 40, in evaluate precision, recall, f1_score = self.eval_pr.get_precision_recall(score_pred, score_gt) File "/home/linux/catkin_ws/LineTR-train/evaluations/evaluate_pr.py", line 31, in get_precision_recall precision = np.average(np.nan_to_num(TP / (TP+FP)))*100. ZeroDivisionError: division by zero
The text was updated successfully, but these errors were encountered: