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

BUG: NDArray filted_array = ori_array[max_prob > conf_threshold]; #519

Open
1Zengy opened this issue Nov 11, 2024 · 0 comments
Open

BUG: NDArray filted_array = ori_array[max_prob > conf_threshold]; #519

1Zengy opened this issue Nov 11, 2024 · 0 comments

Comments

@1Zengy
Copy link

1Zengy commented Nov 11, 2024

In the C# code, NDArray filted_array = ori_array[max_prob > conf_threshold];
Here, ori_array is an NDArray with a shape of [1, 8400, 5], where 5 represents the five probabilities of 5 classes. max_prob is an NDArray with a shape of [1, 8400], indicating the maximum probability among the 5 classes. conf_threshold is a float value which represents the threshold of probability.

I would like to delete the objects in the 8400 dimension where the maximum probability is lower than the conf_threshold. However, even though I have ensured that ori_array and max_prob have the same values, the code will randomly return either an exact value with a shape of [n, 5] or a null value with a shape of [0, 5]. Here is my data saved using "np.save()".
ori_array.json
max_prob.json

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