multimodalart HF staff commited on
Commit
6d53867
1 Parent(s): 81ffcd6

change some params

Browse files

didn't merge directly to avoid recompile

Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -57,7 +57,7 @@ def generate(concept_1, concept_2, scale, prompt, seed=42, recalc_directions=Tru
57
  total_images=[],
58
  progress=gr.Progress(track_tqdm=True)
59
  ):
60
- slider_x = [concept_1, concept_2]
61
  # check if avg diff for directions need to be re-calculated
62
  print("slider_x", slider_x)
63
  print("x_concept_1", x_concept_1, "x_concept_2", x_concept_2)
@@ -223,7 +223,7 @@ with gr.Blocks(css=css) as demo:
223
  #slider_x = gr.Dropdown(label="Slider concept range", allow_custom_value=True, multiselect=True, max_choices=2)
224
  #slider_y = gr.Dropdown(label="Slider Y concept range", allow_custom_value=True, multiselect=True, max_choices=2)
225
  prompt = gr.Textbox(label="Prompt", placeholder="A dog in the park")
226
- x = gr.Slider(minimum=0, value=1.25, step=0.1, maximum=2.5, label="Strength", info="maximum strength on each direction")
227
  submit = gr.Button("Generate directions")
228
  gr.Examples(
229
  examples=examples,
@@ -247,15 +247,15 @@ with gr.Blocks(css=css) as demo:
247
  # generate_butt = gr.Button("generate")
248
 
249
  with gr.Accordion(label="advanced options", open=False):
250
- iterations = gr.Slider(label = "num iterations", minimum=0, value=200, maximum=400)
251
- steps = gr.Slider(label = "num inference steps", minimum=1, value=4, maximum=10)
252
- interm_steps = gr.Slider(label = "num of intermediate images", minimum=1, value=5, maximum=65)
253
  guidance_scale = gr.Slider(
254
  label="Guidance scale",
255
  minimum=0.1,
256
  maximum=10.0,
257
  step=0.1,
258
- value=5,
259
  )
260
 
261
  seed = gr.Slider(minimum=0, maximum=np.iinfo(np.int32).max, label="Seed", interactive=True, randomize=True)
 
57
  total_images=[],
58
  progress=gr.Progress(track_tqdm=True)
59
  ):
60
+ slider_x = [concept_2, concept_1]
61
  # check if avg diff for directions need to be re-calculated
62
  print("slider_x", slider_x)
63
  print("x_concept_1", x_concept_1, "x_concept_2", x_concept_2)
 
223
  #slider_x = gr.Dropdown(label="Slider concept range", allow_custom_value=True, multiselect=True, max_choices=2)
224
  #slider_y = gr.Dropdown(label="Slider Y concept range", allow_custom_value=True, multiselect=True, max_choices=2)
225
  prompt = gr.Textbox(label="Prompt", placeholder="A dog in the park")
226
+ x = gr.Slider(minimum=0, value=1.5, step=0.1, maximum=4.0, label="Strength", info="maximum strength on each direction")
227
  submit = gr.Button("Generate directions")
228
  gr.Examples(
229
  examples=examples,
 
247
  # generate_butt = gr.Button("generate")
248
 
249
  with gr.Accordion(label="advanced options", open=False):
250
+ iterations = gr.Slider(label = "num iterations for clip directions", minimum=0, value=200, maximum=400, step=1)
251
+ steps = gr.Slider(label = "num inference steps", minimum=1, value=4, maximum=8, step=1)
252
+ interm_steps = gr.Slider(label = "num of intermediate images", minimum=3, value=5, maximum=65, step=2)
253
  guidance_scale = gr.Slider(
254
  label="Guidance scale",
255
  minimum=0.1,
256
  maximum=10.0,
257
  step=0.1,
258
+ value=3.5,
259
  )
260
 
261
  seed = gr.Slider(minimum=0, maximum=np.iinfo(np.int32).max, label="Seed", interactive=True, randomize=True)