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

ValueError: cannot convert float NaN to integer #1

Open
GaneshAdam opened this issue Feb 29, 2024 · 1 comment
Open

ValueError: cannot convert float NaN to integer #1

GaneshAdam opened this issue Feb 29, 2024 · 1 comment

Comments

@GaneshAdam
Copy link

I face below issue while running it on sample bin data.
"/fuzzy_code/cpp_fuzzy.py", line 22, in cpp_cls
res=round(fun(x0,y0))+1
ValueError: cannot convert float NaN to integer
"

  1. Should these changes be ok (left side is default code, right side is updated code).
    image

  2. Also do you have libfuzzy.so built for windows?

@GaneshAdam
Copy link
Author

Additionally,

  1. nms iou thresholding is applied classwise after fuzzy classification in "class_agnostic_nms" function. In this case, there is possibility of same object being detected with multiple classes.
  2. if fun(x0,y0) returns nan, should we assign some garbage class value to 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

1 participant