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

“show_result()” Function error: ValueError: operands could not be broadcast together with shapes (1600,1600,3) (512,512,3) #89

Closed
dywu98 opened this issue Aug 24, 2020 · 0 comments · Fixed by #90
Labels
bug Something isn't working

Comments

@dywu98
Copy link

dywu98 commented Aug 24, 2020

Describe the bug
when i ran tools/test.py to test your trained PSPnet model with single GPU on ade20k, an error occured in show_result()

Reproduction

  1. What command or script did you run?
python tools/test.py configs/pspnet/pspnet_r50-d8_512x512_80k_ade20k.py checkpoints/pspnet_r50-d8_512x512_80k_ade20k_20200615_014128-15a8b914.pth --show

Error traceback

Traceback (most recent call last):
  File "tools/test.py", line 142, in <module>
    main()
  File "tools/test.py", line 120, in main
    outputs = single_gpu_test(model, data_loader, args.show, args.show_dir)
  File "/root/code/mmsegmentation/mmseg/apis/test.py", line 62, in single_gpu_test
    out_file=out_file)
  File "/root/code/mmsegmentation/mmseg/models/segmentors/base.py", line 253, in show_result
    img = img * 0.5 + color_seg * 0.5
ValueError: operands could not be broadcast together with shapes (1600,1600,3) (512,512,3)
@xvjiarui xvjiarui added the bug Something isn't working label Aug 24, 2020
aravind-h-v pushed a commit to aravind-h-v/mmsegmentation that referenced this issue Mar 27, 2023
* up

* more

* uP

* make dummy test pass

* save intermediate

* p

* p

* finish

* finish

* finish
sibozhang pushed a commit to sibozhang/mmsegmentation that referenced this issue Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants