linoyts HF staff commited on
Commit
d9563d6
·
verified ·
1 Parent(s): af14de1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -60,12 +60,12 @@ def invert_and_edit(image,
60
 
61
 
62
  output = pipe(prompt,
63
- inverted_latents=inverted_latents.to(DEVICE),
64
- image_latents=image_latents.to(DEVICE),
65
- latent_image_ids=latent_image_ids.to(DEVICE),
66
- start_timestep=start_timestep,
67
- stop_timestep=stop_timestep,
68
- num_inference_steps=num_inference_steps,
69
  eta=eta,
70
  ).images[0]
71
 
@@ -113,18 +113,18 @@ based on the implementations of [@raven38](https://github.com/raven38) & [@DarkM
113
  start_timestep = gr.Slider(
114
  label="start timestep",
115
  info = "decrease to enhace fidelity to original image",
116
- minimum=0.0,
117
- maximum=1.0,
118
- step=0.01,
119
- value=0.,
120
  )
121
  stop_timestep = gr.Slider(
122
  label="stop timestep",
123
  info = "increase to enhace fidelity to original image",
124
- minimum=0.0,
125
- maximum=1.0,
126
- step=0.01,
127
- value=0.7,
128
  )
129
  eta = gr.Slider(
130
  label="eta",
 
60
 
61
 
62
  output = pipe(prompt,
63
+ inverted_latents = inverted_latents.to(DEVICE),
64
+ image_latents = image_latents.to(DEVICE),
65
+ latent_image_ids = latent_image_ids.to(DEVICE),
66
+ start_timestep = start_timestep/num_inference_steps,
67
+ stop_timestep = stop_timestep/num_inference_steps,
68
+ num_inference_steps = num_inference_steps,
69
  eta=eta,
70
  ).images[0]
71
 
 
113
  start_timestep = gr.Slider(
114
  label="start timestep",
115
  info = "decrease to enhace fidelity to original image",
116
+ minimum=0,
117
+ maximum=28,
118
+ step=1,
119
+ value=0,
120
  )
121
  stop_timestep = gr.Slider(
122
  label="stop timestep",
123
  info = "increase to enhace fidelity to original image",
124
+ minimum=0,
125
+ maximum=28,
126
+ step=1,
127
+ value=4,
128
  )
129
  eta = gr.Slider(
130
  label="eta",