Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
117 |
-
maximum=
|
118 |
-
step=
|
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=
|
126 |
-
step=
|
127 |
-
value=
|
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",
|