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

Visualizing result from stage 2 #54

Open
Shiyao-Xu opened this issue Jul 4, 2024 · 5 comments
Open

Visualizing result from stage 2 #54

Shiyao-Xu opened this issue Jul 4, 2024 · 5 comments

Comments

@Shiyao-Xu
Copy link

For whom might also be interested in:

If you have the same question as I regarding visualization method, here is my solution.

First, run the eval script and make sure to save the output as .pkl file.

Then, load this .pkl file(needs big memory), and you can see that the data is in the shape of 815 x (1x256x256x32).

Next, do not hesitate to split the data into 815 pieces, each of which is 1 x 256 x 256 x 32. Save each piece with the name 000000.label ~ xxxxxx.label (6 digits).

And then, install semantic-kitti-api.

Prepare kitti dataset, save the corresponding data as semantic-kitti-api asks you to do, and copy your just created label in the same path, just ignore the label from the official kitti dataset.

Finally, use the command copied from "Voxel Grids for Semantic Scene Completion" , and you will get your result.

@cc1oud
Copy link

cc1oud commented Jul 29, 2024

Hi, I want to know how to save the output as .pkl file, I only has the .pth file.

@Shiyao-Xu
Copy link
Author

Hi, I want to know how to save the output as .pkl file, I only has the .pth file.

you could change the extension from .pth to .pkl, there is no big difference, only different ways when saving data.

@Shiyao-Xu
Copy link
Author

Hi, I want to know how to save the output as .pkl file, I only has the .pth file.

you could change the extension from .pth to .pkl, there is no big difference, only different ways when saving data.

ps: change the extension in the code.

@cc1oud
Copy link

cc1oud commented Jul 30, 2024

Hi, I want to know how to save the output as .pkl file, I only has the .pth file.

you could change the extension from .pth to .pkl, there is no big difference, only different ways when saving data.

ps: change the extension in the code.

Hi, thanks for you rapid reply
well, I try to append the args --output, and annotation the 241 line of test.py assert False.
but there is error, which is

writing results to pkl/test.pkl
Traceback (most recent call last):
  File "./tools/test.py", line 263, in <module>
    main()
  File "./tools/test.py", line 242, in main
    mmcv.dump(outputs['bbox_results'], args.out)
TypeError: list indices must be integers or slices, not str

@cc1oud
Copy link

cc1oud commented Jul 30, 2024

Hi, I want to know how to save the output as .pkl file, I only has the .pth file.

you could change the extension from .pth to .pkl, there is no big difference, only different ways when saving data.

ps: change the extension in the code.

Hi, thanks for you rapid reply well, I try to append the args --output, and annotation the 241 line of test.py assert False. but there is error, which is

writing results to pkl/test.pkl
Traceback (most recent call last):
  File "./tools/test.py", line 263, in <module>
    main()
  File "./tools/test.py", line 242, in main
    mmcv.dump(outputs['bbox_results'], args.out)
TypeError: list indices must be integers or slices, not str

OK,i change the mmcv.dump(outputs['bbox_results'], args.out) -> mmcv.dump(outputs, args.out)
and get the .pkl file about 20.5 GB

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