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

Batch clone #223

Open
WesamOM opened this issue Jun 28, 2023 · 1 comment
Open

Batch clone #223

WesamOM opened this issue Jun 28, 2023 · 1 comment

Comments

@WesamOM
Copy link

WesamOM commented Jun 28, 2023

First of all thank you so much for this amazing program!
I am trying to run DALES dataset using the code from train_S3DIS.py, I was following steps from #72 but I reached an issue. while running the program, I am having trouble with function def forward(self, batch, config):
Specifically the line: x = batch.features.clone().detach()
The batch created from the code using DALES dataset creates a batch with these info:
Screenshot 2023-06-27 173419
where features is not formatted the same way in S3DIS dataset. Then I get an error that is originating from blocks.py line 361:

x = torch.cat((x, torch.zeros_like(x[:1, :])), 0)

I get this error:

x = torch.cat((x, torch.zeros_like(x[:1, :])), 0)
IndexError: too many indices for tensor of dimension 1

Now I am not sure why I am getting features to be a different tensor than when I run it on S3DIS dataset. If you can help me @HuguesTHOMAS I'd really appreciate it.

@HuguesTHOMAS
Copy link
Owner

Can you make sure your feature matrix batch.features has 2 dimension (N, D) where N is the number of points and D the dimension of the features.

In your case D should be equal to 1, but the feature dimension should still be (N,1) and not (N,)

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