niulx commited on
Commit
046b275
1 Parent(s): 8ea9dc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -249,6 +249,9 @@ with gr.Blocks() as demo:
249
 
250
  add_button = gr.Button("Run optimization")
251
  def run_optimization_wrapper (
 
 
 
252
  opt_flag,
253
  num_tokens,
254
  embedding_learning_rate ,
@@ -260,7 +263,10 @@ with gr.Blocks() as demo:
260
  ):
261
  if 1:
262
  run_optimization = partial(
263
- run_main,
 
 
 
264
  num_tokens=int(num_tokens),
265
  embedding_learning_rate = float(embedding_learning_rate),
266
  max_emb_train_steps = int(max_emb_train_steps),
@@ -281,6 +287,9 @@ with gr.Blocks() as demo:
281
 
282
  add_button.click(run_optimization_wrapper,
283
  inputs = [
 
 
 
284
  opt_flag,
285
  num_tokens,
286
  embedding_learning_rate ,
 
249
 
250
  add_button = gr.Button("Run optimization")
251
  def run_optimization_wrapper (
252
+ mask_list,
253
+ mask_label_list,
254
+ image
255
  opt_flag,
256
  num_tokens,
257
  embedding_learning_rate ,
 
263
  ):
264
  if 1:
265
  run_optimization = partial(
266
+ run_main,
267
+ mask_list=mask_list,
268
+ mask_label_list=mask_label_list,
269
+ image_gt=image,
270
  num_tokens=int(num_tokens),
271
  embedding_learning_rate = float(embedding_learning_rate),
272
  max_emb_train_steps = int(max_emb_train_steps),
 
287
 
288
  add_button.click(run_optimization_wrapper,
289
  inputs = [
290
+ mask_np_list,
291
+ mask_label_list,
292
+ image_loaded,
293
  opt_flag,
294
  num_tokens,
295
  embedding_learning_rate ,