-
Notifications
You must be signed in to change notification settings - Fork 2.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
test error #1073
Comments
Hi, thanks for your feedback. We have noticed potential bug about |
Hi, @sunshiding. This bug is fixed by @zergzzlun. Please have a look on related PR. Best, |
Thank you very much, I have modified the code according to your guidance, and this problem has been solved. |
This PR fixed it perfectly. Please close this issue. |
Update README.md fixed typo
Hello. I am using the latest version of mmsegmentation and encountered a problem during testing. When I execute --show-dir, an error is reported, but when I don’t execute --show-dir, the evaluation can be done normally.
python tools/test.py ./configs/deeplabv3plus/deeplabv3plus_r50-d8_512x512_10k_voc12.py ./work_dirs/deeplabv3plus_r50-d8_512x512_10k_voc12/iter_6000.pth --eval mIoU mDice mFscore --show-dir deeplabv3plus_r50-d8_512x512_10k_voc12_results
The error is as follows,
load checkpoint from local path: ./work_dirs/deeplabv3plus_r50-d8_512x512_10k_voc12/iter_10000.pth
[ ] 0/115, elapsed: 0s, ETA:Traceback (most recent call last):
File "tools/test.py", line 229, in
main()
File "tools/test.py", line 191, in main
format_args=eval_kwargs)
File "/home/sunshiding/mmsegmentation-master/mmseg/apis/test.py", line 130, in single_gpu_test
opacity=opacity)
File "/home/sunshiding/mmsegmentation-master/mmseg/models/segmentors/base.py", line 247, in show_result
color_seg = np.zeros((seg.shape[0], seg.shape[1], 3), dtype=np.uint8)
AttributeError: 'tuple' object has no attribute 'shape'
The text was updated successfully, but these errors were encountered: