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

help #57

Open
WS517 opened this issue May 28, 2024 · 2 comments
Open

help #57

WS517 opened this issue May 28, 2024 · 2 comments

Comments

@WS517
Copy link

WS517 commented May 28, 2024

@ngoductuanlhp ngoductuanlhp Hello Professor, I have trained and got the model, my input raw data contains xyzrgb semantic labels and instance labels, now I want to test it on unlabeled data, I ran the test.py program and reported the following error:
Traceback (most recent call last).
File “/home/wang_yongjun/zl/Code/ISBNet/tools/test.py”, line 200, in
main()
File “/home/wang_yongjun/zl/Code/ISBNet/tools/test.py”, line 160, in main
sem_preds.append(res[“semantic_preds”])
Can you please tell me how I can solve this problem or what I should do for testing, looking forward to your reply, thanks a lot!

@ngoductuanlhp
Copy link
Collaborator

Could you print the whole error log?

@WS517
Copy link
Author

WS517 commented May 31, 2024

@ngoductuanlhp Thank you for your reply, the specific error is as follows:
(isbnet) wang_yongjun@wang-yongjun:~$ /home/wang_yongjun/anaconda3/envs/isbnet/bin/python /home/wang_yongjun/zl/Code/ISBNet/tools/test.py
2024-05-31 22:22:17,293 - INFO - Load state dict from /home/wang_yongjun/zl/Code/ISBNet/stpls3d/isbnet_stpls3d/ws/best.pth
2024-05-31 22:22:17,487 - INFO - unexpected key in source state_dict: criterion.empty_weight
2024-05-31 22:22:17,488 - INFO - Load test dataset: 1 scans
2024-05-31 22:22:20,144 - INFO - Infer scene 1/1
Traceback (most recent call last):
File "/home/wang_yongjun/zl/Code/ISBNet/tools/test.py", line 200, in
main()
File "/home/wang_yongjun/zl/Code/ISBNet/tools/test.py", line 160, in main
sem_preds.append(res["semantic_preds"])
KeyError: 'semantic_preds'
PixPin_2024-05-31_22-25-33
Looking forward to your reply,thank you.

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