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

Basic question related to python #97

Open
mshmoon opened this issue Oct 10, 2024 · 5 comments
Open

Basic question related to python #97

mshmoon opened this issue Oct 10, 2024 · 5 comments

Comments

@mshmoon
Copy link

mshmoon commented Oct 10, 2024

For example ,when feat_keys=("coord") , that means feat_keys only have one element, the transform.py file will trigger a error

@Gofinge
Copy link
Member

Gofinge commented Oct 10, 2024

Hi, kindly remind:

("coord") == "coord"
("coord",) == Sequence(["coord"])
["coord"] == Sequence(["coord"])

@mshmoon
Copy link
Author

mshmoon commented Oct 10, 2024

Hi, kindly remind:

("coord") == "coord"
("coord",) == Sequence(["coord"])
["coord"] == Sequence(["coord"])

Oh, Thank you

@mshmoon
Copy link
Author

mshmoon commented Oct 10, 2024

Hi, kindly remind:

("coord") == "coord"
("coord",) == Sequence(["coord"])
["coord"] == Sequence(["coord"])

When I rewrite this code: feat_keys=(["coord"]), it will trigger another bug:
File "/root/anaconda3/envs/ptv3/lib/python3.9/site-packages/spconv/pytorch/conv.py", line 169, in _conv_forward
assert input.features.shape[
AssertionError: channel size mismatch

@Gofinge
Copy link
Member

Gofinge commented Oct 10, 2024

You can change the in_channel of model to 3.

@mshmoon
Copy link
Author

mshmoon commented Oct 10, 2024

You can change the in_channel of model to 3.

oh , thank you. It work

@Gofinge Gofinge changed the title I find a bug Basic question related to python Oct 10, 2024
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