You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
I have no problem when running demo without --show-mask-heatmaps. But error occurs when adding the parameter --show-mask-heatmaps. The output log is as follow:
Traceback (most recent call last):
File "webcam.py", line 80, in <module>
main()
File "webcam.py", line 71, in main
composite = coco_demo.run_on_opencv_image(img)
File "/home/ywl/dl/maskrcnn-benchmark/demo/predictor.py", line 175, in run_on_opencv_image
return self.create_mask_montage(result, top_predictions)
File "/home/ywl/dl/maskrcnn-benchmark/demo/predictor.py", line 311, in create_mask_montage
masks.float(), scale_factor=1 / masks_per_dim
File "/home/ywl/.virtualenvs/pymask/lib/python3.5/site-packages/torch/nn/functional.py", line 2437, in interpolate
return torch._C._nn.upsample_nearest2d(input, _output_size(2))
RuntimeError: invalid argument 2: 4D input tensor expected but got: [0 x 1 x 480 x 640] at /pytorch/aten/src/THNN/generic/SpatialUpSamplingNearest.c:19
My enviroment is pytorch preview, python 3.5 and CUDA 9.0. Looking forward to your apply.
The text was updated successfully, but these errors were encountered:
ywlng
changed the title
error when running
error when running with --show-mask-heatmaps
Dec 12, 2018
I have no problem when running demo without --show-mask-heatmaps. But error occurs when adding the parameter --show-mask-heatmaps. The output log is as follow:
My enviroment is pytorch preview, python 3.5 and CUDA 9.0. Looking forward to your apply.
The text was updated successfully, but these errors were encountered: