demo inference c++ libtorch realtime semantic segmentation