How to plot object pair feature maps


I want to plot a “concatenated two objects’ feature maps in an image”. hence, I modify them into the dictionary under forward part of main code, as:

self.dict = {img_id: {‘obj_fmaps’:final_fmaps, ‘obj_bbox’:obj_bbox, ‘relation_pair’:rel_inds}}

now I want to plot and save test set feature maps for each two related objects.
Any suggestion please?