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

z_filter variable computation is giving out of index error on nuscenes dataset #9

Open
Mayakshanesht opened this issue Jul 16, 2024 · 0 comments

Comments

@Mayakshanesht
Copy link

mask = mask_x & mask_y & mask_z
indices = np.where(mask)
dts = dts[indices]
max_dist = max(abs(target_x - 100), abs(target_y - 100))
elem = int(min(np.ceil(((max_dist + 50)/100) * (len(dts) - 1)), len(dts) - 1))
z_filter = sorted(dts[:, 2])[elem]
minind = np.argmin(np.linalg.norm(dts[:, :3] - np.array([[0.0, 0.0, z_filter]]), axis=1))
arr = np.expand_dims(dts[minind], axis=1).T

In the above code snippet, the value of indices is becoming an empty list for some examples in the nuscenes dataset(scene no - 4, 419) and thus z_filter computation is giving the out-of-index error.
Please suggest a solution 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