Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
·
aae61bd
1
Parent(s):
c4f7f20
Update app.py
Browse filesdiffusion steps bug fix
app.py
CHANGED
@@ -105,6 +105,7 @@ def preprocess_and_invert(input_video,
|
|
105 |
do_inversion,
|
106 |
# save_dir: str = "latents",
|
107 |
steps: int = 500,
|
|
|
108 |
batch_size: int = 8,
|
109 |
n_frames: int = 40,
|
110 |
inversion_prompt:str = '',
|
@@ -113,7 +114,6 @@ def preprocess_and_invert(input_video,
|
|
113 |
sd_version = "2.1"
|
114 |
height = 512
|
115 |
weidth: int = 512
|
116 |
-
save_steps = 50
|
117 |
|
118 |
if do_inversion or randomize_seed:
|
119 |
preprocess_config = {}
|
@@ -123,7 +123,7 @@ def preprocess_and_invert(input_video,
|
|
123 |
preprocess_config['sd_version'] = sd_version
|
124 |
preprocess_config['steps'] = steps
|
125 |
preprocess_config['batch_size'] = batch_size
|
126 |
-
preprocess_config['save_steps'] =
|
127 |
preprocess_config['n_frames'] = n_frames
|
128 |
preprocess_config['seed'] = seed
|
129 |
preprocess_config['inversion_prompt'] = inversion_prompt
|
@@ -306,6 +306,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
306 |
randomize_seed,
|
307 |
do_inversion,
|
308 |
steps,
|
|
|
309 |
batch_size,
|
310 |
n_frames,
|
311 |
inversion_prompt
|
|
|
105 |
do_inversion,
|
106 |
# save_dir: str = "latents",
|
107 |
steps: int = 500,
|
108 |
+
n_timesteps = 50,
|
109 |
batch_size: int = 8,
|
110 |
n_frames: int = 40,
|
111 |
inversion_prompt:str = '',
|
|
|
114 |
sd_version = "2.1"
|
115 |
height = 512
|
116 |
weidth: int = 512
|
|
|
117 |
|
118 |
if do_inversion or randomize_seed:
|
119 |
preprocess_config = {}
|
|
|
123 |
preprocess_config['sd_version'] = sd_version
|
124 |
preprocess_config['steps'] = steps
|
125 |
preprocess_config['batch_size'] = batch_size
|
126 |
+
preprocess_config['save_steps'] = n_timesteps
|
127 |
preprocess_config['n_frames'] = n_frames
|
128 |
preprocess_config['seed'] = seed
|
129 |
preprocess_config['inversion_prompt'] = inversion_prompt
|
|
|
306 |
randomize_seed,
|
307 |
do_inversion,
|
308 |
steps,
|
309 |
+
n_timesteps,
|
310 |
batch_size,
|
311 |
n_frames,
|
312 |
inversion_prompt
|