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

Inference: ZeroDivisionError: float division by zero #7

Open
russell0 opened this issue Sep 13, 2019 · 0 comments
Open

Inference: ZeroDivisionError: float division by zero #7

russell0 opened this issue Sep 13, 2019 · 0 comments

Comments

@russell0
Copy link

Are there any fixes for this?

~/R3Net$ python infer.py load snapshot '6000' for testing rwh ./ckpt R3Net 6000.pth Traceback (most recent call last): File "infer.py", line 102, in <module> main() File "infer.py", line 93, in main [rrecord.avg for rrecord in recall_record]) File "/home/ubuntu/R3Net/misc.py", line 67, in cal_fmeasure max_fmeasure = max([(1 + beta_square) * p * r / (beta_square * p + r) for p, r in zip(precision, recall)]) ZeroDivisionError: float division by zero

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