Skip to content
Snippets Groups Projects
Commit 60ed8b9c authored by tgupta6's avatar tgupta6
Browse files

make visualization darker

parent 8841d54e
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ class RelevanceVisualizer():
# rel_map = np.maximum(rel_map, score*box_map)
rel_map_ =cm.jet(np.uint8(rel_map*255))[:,:,0:3]*255
# im_rel_map = np.uint8(0.5*im+0.5*rel_map_)
im_rel_map = np.uint8(0.2*im + 0.8*np.tile(rel_map[:,:,None], [1,1,3])*im)
im_rel_map = np.uint8(0.0*im + 1.0*np.tile(rel_map[:,:,None], [1,1,3])*im)
return rel_map, im_rel_map, ans, ans_score
def make_gaussian(self, box, im_size):
......@@ -199,8 +199,8 @@ if __name__=='__main__':
data_dir,
'mscoco_val2014_annotations_with_parsed_questions.json')
exp_dir = '/home/tanmay/Code/GenVQA/Exp_Results/VQA/' + \
'QA_classifier_joint_pretrain_wordvec_xform/'
exp_dir = '/home/tanmay/Code/GenVQA/Exp_Results/models_cvpr/' + \
'ans_through_obj_atr_rel_bin_feats/'
eval_data_json = os.path.join(
exp_dir,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment