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

S3DISDataLoader not using the Z axis when extracting a random block #254

Open
FSet89 opened this issue Mar 6, 2024 · 0 comments
Open

S3DISDataLoader not using the Z axis when extracting a random block #254

FSet89 opened this issue Mar 6, 2024 · 0 comments

Comments

@FSet89
Copy link

FSet89 commented Mar 6, 2024

Why is the Z axis not considered when extracting a random block in the data loader?

while (True):
            center = points[np.random.choice(N_points)][:3]
            block_min = center - [self.block_size / 2.0, self.block_size / 2.0, 0]
            block_max = center + [self.block_size / 2.0, self.block_size / 2.0, 0]
            point_idxs = np.where((points[:, 0] >= block_min[0]) & \
                                  (points[:, 0] <= block_max[0]) & \
                                  (points[:, 1] >= block_min[1]) & \
                                  (points[:, 1] <= block_max[1]))[0]
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