aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.39k stars 652 forks source link

view error in AdelaiDet/adet/modeling/fcos/fcos_outputs.py #301

Open nikky4D opened 3 years ago

nikky4D commented 3 years ago

I encountered a view error when trying the BlendMask demo with 5x model. Replacing view, with reshape appears to have fixed the issue.

RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

Also, can you tell me how I can save the panoptic segmentation results? I would like to use the segmentation maps for other processing.

tianzhi0549 commented 3 years ago

@nikky4D Thank you. I'll fix it.