aarbelle commited on
Commit
099eca2
1 Parent(s): 80aa682

add instructions

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -58,11 +58,13 @@ 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():
@@ -78,7 +80,7 @@ with demo:
78
  out_images = []
79
  out_captions = []
80
  for d in domains:
81
- gr.Markdown(f'# {d.title()} Domain Images')
82
  with gr.Row():
83
  for _ in range(num_results_per_domain):
84
  with gr.Column():
 
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('## Instructions:')
62
+ gr.Markdown('Select a query domain from the dropdown menu and the select any random image from the domain using the slider below. The retrieved results from each of the four domains, along with the class label will be presented.')
63
  gr.Markdown('## Select Query Domain: ')
64
  domain_drop = gr.Dropdown(domains)
65
  # domain_select_button = gr.Button("Select Domain")
66
+ slider = gr.Slider(0, min_len)
67
+ # slider = gr.Slider(0, 10000)
68
  image_button = gr.Button("Run")
69
 
70
  with gr.Row():
 
80
  out_images = []
81
  out_captions = []
82
  for d in domains:
83
+ gr.Markdown(f'# Retrieved Images from {d.title()} Domain:')
84
  with gr.Row():
85
  for _ in range(num_results_per_domain):
86
  with gr.Column():