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

pool.starmap(filter_pred, [(config, pred) for pred in predictions])ZeroDivisionError: float division by zero #10

Open
chowkamlee81 opened this issue Jul 8, 2019 · 3 comments

Comments

@chowkamlee81
Copy link

Hi
I trained your PIXOR network for 40 epoch with decrease in loss curves.

How when i execute python main.py --mode=val --name=default , the below error occurs.. Kindly help please

Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.5/multiprocessing/pool.py", line 47, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/home/Tracking/PIXOR-master/srcs/postprocess.py", line 129, in filter_pred
selected_ids = non_max_suppression(corners, scores, config['nms_iou_threshold'])
File "/home/Tracking/PIXOR-master/srcs/postprocess.py", line 96, in non_max_suppression
iou = compute_iou(polygons[i], polygons[ixs[1:]])
File "/home/Tracking/PIXOR-master/srcs/postprocess.py", line 51, in compute_iou
iou = [box.intersection(b).area / box.union(b).area for b in boxes]
File "/home/Tracking/PIXOR-master/srcs/postprocess.py", line 51, in
iou = [box.intersection(b).area / box.union(b).area for b in boxes]
ZeroDivisionError: float division by zero

@HenryJunW
Copy link

Did you fix it? Got the same problem.

@AndreLYL
Copy link

@HenryJunW @chowkamlee81 did you find the reason? I also meet this problem. According to the definition of IOU, I think that the divisor cannot be 0

@caimumuxin
Copy link

I can't understand why intersection.area/union.area have this problem too.Did you fix it?

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

4 participants