jsu27 commited on
Commit
48db291
·
1 Parent(s): 72b0442
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -181,7 +181,7 @@ def load_model(dataset, extra_kwargs={}, device='cuda'):
181
 
182
  device = 'cuda' if th.cuda.is_available() else 'cpu'
183
 
184
- clevr_model = load_model('clevr', extra_kwargs=dict(embed_dim=64, enc_channels=128), device=device)
185
  celeb_model = load_model('celebahq', extra_kwargs=dict(enc_channels=128), device=device)
186
 
187
  MODELS = {
@@ -200,7 +200,7 @@ with gr.Blocks() as demo:
200
  </p>""")
201
 
202
  gr.Markdown(
203
- """<h4>Decomposition and reconstruction of images</h4>""")
204
  with gr.Row():
205
  with gr.Column():
206
  with gr.Row():
@@ -227,7 +227,7 @@ with gr.Blocks() as demo:
227
 
228
 
229
  gr.Markdown(
230
- """<h4>Combination of images</h4>""")
231
  with gr.Row().style(equal_height=True):
232
  with gr.Column(scale=2):
233
 
 
181
 
182
  device = 'cuda' if th.cuda.is_available() else 'cpu'
183
 
184
+ clevr_model = load_model('clevr', extra_kwargs=dict(emb_dim=64, enc_channels=128), device=device)
185
  celeb_model = load_model('celebahq', extra_kwargs=dict(enc_channels=128), device=device)
186
 
187
  MODELS = {
 
200
  </p>""")
201
 
202
  gr.Markdown(
203
+ """<br> <h4>Decomposition and reconstruction of images</h4>""")
204
  with gr.Row():
205
  with gr.Column():
206
  with gr.Row():
 
227
 
228
 
229
  gr.Markdown(
230
+ """<br> <h4>Combination of images</h4>""")
231
  with gr.Row().style(equal_height=True):
232
  with gr.Column(scale=2):
233