aarbelle commited on
Commit
dc031a1
1 Parent(s): 8309552

add Title and link to paper

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -33,7 +33,7 @@ min_len = 1e10
33
  for d in domains:
34
  with open(os.path.join(feat_dir, f'src_{d}_{shots}.pkl'), 'rb') as fp:
35
  dst_data_dict[d] = pickle.load(fp)
36
- # min_len = min(min_len, len(dst_data_dict[d][0]))
37
 
38
  def query(query_index, query_domain):
39
  dst_data = dst_data_dict[query_domain]
@@ -56,11 +56,13 @@ def query(query_index, query_domain):
56
 
57
  demo = gr.Blocks()
58
  with demo:
 
 
59
  gr.Markdown('## Select Query Domain: ')
60
  domain_drop = gr.Dropdown(domains)
61
  # domain_select_button = gr.Button("Select Domain")
62
- # slider = gr.Slider(0, min_len)
63
- slider = gr.Slider(0, 10000)
64
  image_button = gr.Button("Run")
65
 
66
  with gr.Row():
 
33
  for d in domains:
34
  with open(os.path.join(feat_dir, f'src_{d}_{shots}.pkl'), 'rb') as fp:
35
  dst_data_dict[d] = pickle.load(fp)
36
+ min_len = min(min_len, len(dst_data_dict[d][0]))
37
 
38
  def query(query_index, query_domain):
39
  dst_data = dst_data_dict[query_domain]
 
56
 
57
  demo = gr.Blocks()
58
  with demo:
59
+ gr.Markdown('#Unsupervised Domain Generalization by Learning a Bridge Across Domains')
60
+ gr.Markdown('This demo showcases the cross-domain retrieval capabilities of our self-supervised cross domain training as presented @CVPR 2022. For details please refer to [the paper](https://openaccess.thecvf.com/content/CVPR2022/papers/Harary_Unsupervised_Domain_Generalization_by_Learning_a_Bridge_Across_Domains_CVPR_2022_paper.pdf)')
61
  gr.Markdown('## Select Query Domain: ')
62
  domain_drop = gr.Dropdown(domains)
63
  # domain_select_button = gr.Button("Select Domain")
64
+ slider = gr.Slider(0, min_len)
65
+ # slider = gr.Slider(0, 10000)
66
  image_button = gr.Button("Run")
67
 
68
  with gr.Row():