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
connCAS

Specifies the CAS connection object.

result_tblCASResults object

Table containing results from scoring the test data

npredsint, optional
Specifies number of caption predictions to show

Default : 2

ncolint, optional

Specifies number of columns to display images in Default : 2

img_pathstring, 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

figsizetuple of ints, optional

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

filename_colstr, optional

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

caption_colstr, optional

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

image_colstr, optional

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