panoptic-deeplab icon indicating copy to clipboard operation
panoptic-deeplab copied to clipboard

More dedicated details to optimize speed

Open lucasjinreal opened this issue 4 years ago • 1 comments

Hi, as I am testing, panopatic-deeplab can get a satisfying speed in terms of model forward time. However, when counts the postprocessing and visualize speed (this part can not be ignored since it should not be so slow), the speed is totally slow.

Wanna ask, if you guys have a more dedicated optimized plan / method, would be nice to optimize this model and so that more promising converting to other framework for deployment such as accelerate it with TensorRT and deploy more lightweighted model.

lucasjinreal avatar Aug 27 '20 12:08 lucasjinreal

The for-loops in this function could be optimized to further speed-up post-processing time.

https://github.com/bowenc0221/panoptic-deeplab/blob/5b3dd8c127f4de75c2f1bbe380bd656fa3cdd941/segmentation/model/post_processing/instance_post_processing.py#L123-L179

bowenc0221 avatar Aug 29 '20 00:08 bowenc0221