Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GenVQA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vision
GenVQA
Commits
60ed8b9c
Commit
60ed8b9c
authored
8 years ago
by
tgupta6
Browse files
Options
Downloads
Patches
Plain Diff
make visualization darker
parent
8841d54e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
visual_util/visualize_relevance.py
+3
-3
3 additions, 3 deletions
visual_util/visualize_relevance.py
with
3 additions
and
3 deletions
visual_util/visualize_relevance.py
+
3
−
3
View file @
60ed8b9c
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment