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

Regarding the use of PETRv2 for semantic segmentation #148

Open
LisaShen0509 opened this issue Dec 15, 2023 · 4 comments
Open

Regarding the use of PETRv2 for semantic segmentation #148

LisaShen0509 opened this issue Dec 15, 2023 · 4 comments

Comments

@LisaShen0509
Copy link

LisaShen0509 commented Dec 15, 2023

I attempted to obtain BEV semantic segmentation results using the following code with PETRv2:
cd /mnt/share/syl/PETR-main
chmod 777 tools/dist_test.sh
tools/dist_test.sh projects/configs/petrv2/petrv2_BEVseg.py work_dirs/PETRv2_BEVseg/epoch_24.pth 5 --eval segm
The console output is shown in the following figure:
image
The output result is very strange:
image
Currently, I haven't figured out where the problem lies. Please help me.

@wofeifeileni
Copy link

wofeifeileni commented Mar 6, 2024

Hi,I would like to know how the segmentation visualization in your second image was obtained and what instructions were used to generate it. Thank you very much. @LisaShen0509

@loserhou
Copy link

请问您的问题解决了吗

@loserhou
Copy link

你好!运行tools/dist_train.sh/pythondemo/PETR-main/projects/configs/petrv2/petrv2_BEVseg.py 4 --work-dir work_dirs/petrv2_BEVseg/,it has a problem,会报错RuntimeError: Given groups=1, weight of size [128, 256, 3, 3], expected input[1, 1024, 50, 50] to have 256 channels, but got 1024 channels instead,请问你遇到了吗?

@Deltaidiots
Copy link

Deltaidiots commented Apr 25, 2024

I attempted to obtain BEV semantic segmentation results using the following code with PETRv2: cd /mnt/share/syl/PETR-main chmod 777 tools/dist_test.sh tools/dist_test.sh projects/configs/petrv2/petrv2_BEVseg.py work_dirs/PETRv2_BEVseg/epoch_24.pth 5 --eval segm The console output is shown in the following figure: image The output result is very strange: image Currently, I haven't figured out where the problem lies. Please help me.

my guess would be you are using different checkpoint file as far as i know it should be fcos3d_vovnet_imgbackbone-remapped.pth

Update: i think the threshold value after sigmoid is not taking things into account so we have a problem there

Updated: the threshold seems okay, its not the right checkpoints that i was using and getting the same results:
it should be epoch_50.pth after using these checkpoints i am getting almost similar results.

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

4 participants