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

Division by zero #16

Open
atharvadeore999 opened this issue Jul 30, 2024 · 2 comments
Open

Division by zero #16

atharvadeore999 opened this issue Jul 30, 2024 · 2 comments

Comments

@atharvadeore999
Copy link

I get an error about division by zero from the below line mean_recall = sum(rel['hit'] / rel['total'] from rel_metrices.py.Upon further investigation I found that the relation_dict['relations'] is empty which is taken from relation.pickle.So can you please help me by telling how to solve the error.Your help will be highly appreciated.

@Jingkang50
Copy link
Collaborator

Are you running on your own dataset, or PVSG dataset?
If on your own dataset, please check #15.
If you are running PVSG dataset, the relation.pickle should come from sh scripts/utils/prepare_rel_set.sh

@atharvadeore999
Copy link
Author

I am running on PVSG dataset.I am running prepare_rel_set.sh .But still it doesnot workout

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

2 participants