linoyts HF staff commited on
Commit
4273d33
·
verified ·
1 Parent(s): c635e4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -23,7 +23,7 @@ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev",
23
  # pipe.fuse_lora(lora_scale=0.125)
24
  pipe.to(DEVICE)
25
 
26
- examples = [[Image.open("cat.jpg"), "a tiger"]]
27
  def reset_do_inversion():
28
  return True
29
 
@@ -110,19 +110,19 @@ Stochastic Rectified Differential Equations*](https://rf-inversion.github.io/dat
110
  with gr.Row():
111
  start_timestep = gr.Slider(
112
  label="start timestep",
113
- info = "lower gamma to ehnace the edits",
114
  minimum=0.0,
115
  maximum=1.0,
116
  step=0.1,
117
- value=0.9,
118
  )
119
  stop_timestep = gr.Slider(
120
  label="stop timestep",
121
- info = "lower gamma to ehnace the edits",
122
  minimum=0.0,
123
  maximum=1.0,
124
  step=0.1,
125
- value=0.9,
126
  )
127
  eta = gr.Slider(
128
  label="eta",
@@ -164,7 +164,7 @@ Stochastic Rectified Differential Equations*](https://rf-inversion.github.io/dat
164
  minimum=0.0,
165
  maximum=1.0,
166
  step=0.1,
167
- value=0.9,
168
  )
169
  num_inversion_steps = gr.Slider(
170
  label="num inversion steps",
@@ -218,7 +218,7 @@ Stochastic Rectified Differential Equations*](https://rf-inversion.github.io/dat
218
 
219
  gr.Examples(
220
  examples=examples,
221
- inputs=[input_image, prompt],
222
  outputs=[result, inverted_latents, image_latents, latent_image_ids, do_inversion, seed],
223
  fn=invert_and_edit,
224
  )
 
23
  # pipe.fuse_lora(lora_scale=0.125)
24
  pipe.to(DEVICE)
25
 
26
+ examples = [[Image.open("cat.jpg"), "a tiger", 0, 0.38, 0.5, 0.9, 28, 28, 789385745, False]]
27
  def reset_do_inversion():
28
  return True
29
 
 
110
  with gr.Row():
111
  start_timestep = gr.Slider(
112
  label="start timestep",
113
+ info = "decrease to enhace fidelity to original image",
114
  minimum=0.0,
115
  maximum=1.0,
116
  step=0.1,
117
+ value=0.,
118
  )
119
  stop_timestep = gr.Slider(
120
  label="stop timestep",
121
+ info = "increase to enhace fidelity to original image",
122
  minimum=0.0,
123
  maximum=1.0,
124
  step=0.1,
125
+ value=0.3,
126
  )
127
  eta = gr.Slider(
128
  label="eta",
 
164
  minimum=0.0,
165
  maximum=1.0,
166
  step=0.1,
167
+ value=0.5,
168
  )
169
  num_inversion_steps = gr.Slider(
170
  label="num inversion steps",
 
218
 
219
  gr.Examples(
220
  examples=examples,
221
+ inputs=[input_image, prompt,start_timestep, stop_timestep, gamma, eta, num_inversion_steps, num_inference_steps, seed, randomize_seed ],
222
  outputs=[result, inverted_latents, image_latents, latent_image_ids, do_inversion, seed],
223
  fn=invert_and_edit,
224
  )