dlpy.image_captioning.display_predicted_image_captions

dlpy.image_captioning.display_predicted_image_captions(conn, result_tbl, npreds=2, ncol=2, img_path=None, figsize=None, filename_col='_filename_0', caption_col='caption', image_col='_image')

Shows caption prediction for random images

Parameters:
conn : CAS

Specifies the CAS connection object.

result_tbl : CASResults object

Table containing results from scoring the test data

npreds : int, optional
Specifies number of caption predictions to show

Default : 2

ncol : int, optional

Specifies number of columns to display images in Default : 2

img_path : string, optional

If used, specifies path to wanted_file to show images along with captions and objects. If None, only shows captions and objects Default : None

figsize : tuple of ints, optional

Specifies size of images to be displayed Default : (16,(16 / ncol*nrow))

filename_col : str, optional

Specifies the column name for the filename data. Default = ‘_filename_0’

caption_col : str, optional

Specifies the column name for the ground-truth caption data. Default = ‘caption’

image_col : str, optional

Specifies the column name for the image data. Default = ‘_image_’