harshm121 commited on
Commit
b2d39bc
1 Parent(s): a805467
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -143,6 +143,15 @@ for img in imgs:
143
  ])
144
 
145
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
146
  with gr.Row():
147
  rgbinput = gr.Image(label="RGB Input").style(height=256, width=256)
148
  depthinput = gr.Image(label="Depth Input").style(height=256, width=256)
@@ -156,6 +165,13 @@ with gr.Blocks() as demo:
156
  classnameouptut = gr.Image(label="Classes").style(height=384, width=384)
157
  with gr.Row():
158
  examplesRow = gr.Examples(examples=examples, examples_per_page=10, inputs=[rgbinput, depthinput, modelcheck])
 
 
 
 
 
 
159
  submit_btn.click(fn = predict, inputs = [rgbinput, depthinput, modelcheck], outputs = [mtoutput, m3loutput, classnameouptut])
160
 
 
161
  demo.launch()
 
143
  ])
144
 
145
  with gr.Blocks() as demo:
146
+ with gr.Row():
147
+ gr.Markdown(
148
+ """
149
+ <center><h2>M3L</h2></center>
150
+ <center>Multi-modal teacher for Masked Modality Learning</center>
151
+ <br>
152
+ <center>Demo to visualize predictions from the Linear Fusion model trained with the vanilla Mean Teacher and the <a href='https://harshm121.github.io/projects/m3l.html'>M3L</a> framework when trained with 0.2% (98) labels. </center>
153
+ """
154
+ )
155
  with gr.Row():
156
  rgbinput = gr.Image(label="RGB Input").style(height=256, width=256)
157
  depthinput = gr.Image(label="Depth Input").style(height=256, width=256)
 
165
  classnameouptut = gr.Image(label="Classes").style(height=384, width=384)
166
  with gr.Row():
167
  examplesRow = gr.Examples(examples=examples, examples_per_page=10, inputs=[rgbinput, depthinput, modelcheck])
168
+ with gr.Row():
169
+ gr.Markdown(
170
+ """
171
+ Read more about [M3L](https://harshm121.github.io/projects/m3l.html)!
172
+ """
173
+ )
174
  submit_btn.click(fn = predict, inputs = [rgbinput, depthinput, modelcheck], outputs = [mtoutput, m3loutput, classnameouptut])
175
 
176
+ demo.queue(concurrency_count=3)
177
  demo.launch()