niulx commited on
Commit
b5b7d1c
1 Parent(s): 3c153ed

Update app.py

Browse files

optimize lr and batchsize

Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -202,11 +202,11 @@ with gr.Blocks() as demo:
202
  with gr.Accordion(label="Advanced settings", open=False):
203
  num_tokens = gr.Number(value="5", label="num tokens to represent each object", interactive= True)
204
  num_tokens_global = num_tokens
205
- embedding_learning_rate = gr.Textbox(value="0.00005", label="Embedding optimization: Learning rate", interactive= True )
206
- max_emb_train_steps = gr.Number(value="15", label="embedding optimization: Training steps", interactive= True )
207
 
208
- diffusion_model_learning_rate = gr.Textbox(value="0.00002", label="UNet Optimization: Learning rate", interactive= True )
209
- max_diffusion_train_steps = gr.Number(value="10", label="UNet Optimization: Learning rate: Training steps", interactive= True )
210
 
211
  train_batch_size = gr.Number(value="20", label="Batch size", interactive= True )
212
  gradient_accumulation_steps=gr.Number(value="2", label="Gradient accumulation", interactive= True )
@@ -250,7 +250,7 @@ with gr.Blocks() as demo:
250
 
251
 
252
  #with gr.Tab(label="3 Editing"):
253
- with gr.Tab(label="3.1 Text-based editing"):
254
 
255
  with gr.Row():
256
  with gr.Column():
@@ -263,8 +263,8 @@ with gr.Blocks() as demo:
263
  with gr.Accordion(label="Advanced settings", open=False):
264
  slider2 = gr.Slider(0, 20, step=1, label = 'mask id', visible=False)
265
  #tgt_index = gr.Number(value="0", label="Editing: Object index", interactive= True )
266
- guidance_scale = gr.Textbox(value="6", label="Editing: CFG guidance scale", interactive= True )
267
- num_sampling_steps = gr.Number(value="50", label="Editing: Sampling steps", interactive= True )
268
  edge_thickness = gr.Number(value="10", label="Editing: Edge thickness", interactive= True )
269
  strength = gr.Textbox(value="0.5", label="Editing: Mask strength", interactive= True )
270
 
 
202
  with gr.Accordion(label="Advanced settings", open=False):
203
  num_tokens = gr.Number(value="5", label="num tokens to represent each object", interactive= True)
204
  num_tokens_global = num_tokens
205
+ embedding_learning_rate = gr.Textbox(value="0.00025", label="Embedding optimization: Learning rate", interactive= True )
206
+ max_emb_train_steps = gr.Number(value="6", label="embedding optimization: Training steps", interactive= True )
207
 
208
+ diffusion_model_learning_rate = gr.Textbox(value="0.0002", label="UNet Optimization: Learning rate", interactive= True )
209
+ max_diffusion_train_steps = gr.Number(value="28", label="UNet Optimization: Learning rate: Training steps", interactive= True )
210
 
211
  train_batch_size = gr.Number(value="20", label="Batch size", interactive= True )
212
  gradient_accumulation_steps=gr.Number(value="2", label="Gradient accumulation", interactive= True )
 
250
 
251
 
252
  #with gr.Tab(label="3 Editing"):
253
+ with gr.Tab(label="Text-based editing"):
254
 
255
  with gr.Row():
256
  with gr.Column():
 
263
  with gr.Accordion(label="Advanced settings", open=False):
264
  slider2 = gr.Slider(0, 20, step=1, label = 'mask id', visible=False)
265
  #tgt_index = gr.Number(value="0", label="Editing: Object index", interactive= True )
266
+ guidance_scale = gr.Textbox(value="5", label="Editing: CFG guidance scale", interactive= True )
267
+ num_sampling_steps = gr.Number(value="20", label="Editing: Sampling steps", interactive= True )
268
  edge_thickness = gr.Number(value="10", label="Editing: Edge thickness", interactive= True )
269
  strength = gr.Textbox(value="0.5", label="Editing: Mask strength", interactive= True )
270