Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ pipe.scheduler = DDIMScheduler.from_pretrained(
|
|
121 |
pipe.enable_vae_slicing()
|
122 |
pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter_sd15.bin")
|
123 |
pipe.enable_model_cpu_offload()
|
124 |
-
|
125 |
|
126 |
# functionality
|
127 |
|
@@ -209,7 +209,9 @@ def pipe_generate(img,p1,p2,motion,time,title):
|
|
209 |
ip_adapter_image=img.convert("RGB"),
|
210 |
num_inference_steps=step,
|
211 |
guidance_scale=accu,
|
212 |
-
num_frames=(fps*time)
|
|
|
|
|
213 |
).frames[0]
|
214 |
|
215 |
def handle_generate(*_inp):
|
|
|
121 |
pipe.enable_vae_slicing()
|
122 |
pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter_sd15.bin")
|
123 |
pipe.enable_model_cpu_offload()
|
124 |
+
pipe.enable_free_init(method="butterworth", use_fast_sampling=fast)
|
125 |
|
126 |
# functionality
|
127 |
|
|
|
209 |
ip_adapter_image=img.convert("RGB"),
|
210 |
num_inference_steps=step,
|
211 |
guidance_scale=accu,
|
212 |
+
num_frames=(fps*time),
|
213 |
+
need_safetycheck=False,
|
214 |
+
generator=torch.Generator(device).manual_seed(int(str(random.random()).split(".")[1]))
|
215 |
).frames[0]
|
216 |
|
217 |
def handle_generate(*_inp):
|