optical.visualizer.utils.render_grid_mpl¶
-
optical.visualizer.utils.render_grid_mpl(drawn_imgs: List, image_names: List, num_imgs: int, cols: int, rows: int, img_size: int, save_path: Optional[str] = None, **kwargs)[source]¶ Uses
matplotlibto render image grid.- Parameters
drawn_imgs (List) – List of images with annotations.
image_names (List) – List of image names to be drawn.
num_imgs (int) – Number of images in the batch
cols (int) – Number of columns required in the grid.
rows (int) – Number of rows required in the grid.
img_size (int) – Each resized image size.
save_path (Optional[str], optional) – Output path if images and annotations to be saved. Defaults to None.