-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. In tools/test.py #1461
Comments
Hi, I have the same error :( Did you find a solution for it? If so, could you please share it? |
Sorry @ApoorvaSuresh still waiting for help. I have no idea what is causing it ! |
Have you ever tried our pretrained models? Maybe your trained models are not good enough and produce no predictions, which causes the input.numel() == 0. |
@Tai-Wang thanks for your response. I will try once again to re-check with the pre-trained model. However, the re-trained models show more than 72% mAP on Hard, medium, and easy modes. |
You can add a breakpoint in the show function and have a look at why the input.numel() == 0. I guess it might be compatible for no predictions during evaluation while not for visualization. |
@Tai-Wang , i am getting the same error with the pre-trained model
|
One thing more, I think the pre-trained models must have been trained on spconv1.0. But I have spconv2.0 with my environment is it going to be some mismatch issue because as the model starts I also get the following messing in the terminal
|
The pretrained models of SECOND are not updated after the coordinate system refactoring. For now, you can try PointPillars with our provided models or train your own SECOND models with our provided configs. |
But @Tai-Wan at the first instant got the mentioned (Posted title) error while training the own SECOND model with your provided configs! |
It work fine when i run it with the following command |
This ”mismatch“ problem also happened to me. How to fix it? |
@jialeli1 actually i didn't solve my mismatch problem. It only solved the RuntimeError:max() issue. The pre-trained model for the config |
Is it possible to hotfix this by replacing the line in
with if pred_labels is None or pred_labels.numel() == 0 ? |
i have solved this error with your suggestion ,thks so much |
Hi,
I am testing the pre-trainined second model along with visualization running the command :
However, in the
000005
instance it gets a Runtime Error.My working environment is:
Will much appreciate for a help !
The text was updated successfully, but these errors were encountered: