Skip to content

Commit

Permalink
Merge pull request #268 from WildMeOrg/adds-gradcam-toggle
Browse files Browse the repository at this point in the history
Adds gradcam toggle
  • Loading branch information
holmbergius authored Feb 9, 2024
2 parents fbb7ddf + 7d81b3a commit 28ac741
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wbia/web/apis_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ def convert_to_uuid(nid):

proot = query_config_dict.get('pipeline_root', 'vsmany')
proot = query_config_dict.get('proot', proot)
use_gradcam = query_config_dict.get('use_gradcam', False)
logger.info('query_config_dict = {!r}'.format(query_config_dict))

curvrank_daily_tag = query_config_dict.get('curvrank_daily_tag', None)
Expand Down Expand Up @@ -1077,7 +1078,7 @@ def convert_to_uuid(nid):
daid_set = list(set(daid_set))
logger.info('Visualizing %d annots: %r' % (len(daid_set), daid_set))

if proot.lower() == 'miewid':
if proot.lower() == 'miewid' and use_gradcam:
logger.info('Batch processing miewid match images')
batch_images = qreq_.render_batch_result(cm, daid_set)

Expand Down Expand Up @@ -1139,7 +1140,7 @@ def convert_to_uuid(nid):

extern_flag_list = []
for daid in daid_list_:
if proot.lower() == 'miewid':
if proot.lower() == 'miewid' and use_gradcam:
break
extern_flag = daid in daid_set

Expand Down

0 comments on commit 28ac741

Please sign in to comment.