segment returns segmentation map(segment.segmentationMap) as Uint8ClampedArray,I want to render this on my canvas so I send segment in visualise function :
Uint8ClampedArray