Spaces:
Paused
Paused
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,15 +52,14 @@ base = "emilianJR/epiCRealism"
|
|
| 52 |
#unet = UNet2DConditionModel.from_config("emilianJR/epiCRealism",subfolder="unet").to(device, dtype).load_state_dict(load_file(hf_hub_download("emilianJR/epiCRealism", "unet/diffusion_pytorch_model.safetensors"), device=device), strict=False)
|
| 53 |
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-3", torch_dtype=dtype, device=device)
|
| 54 |
|
| 55 |
-
|
| 56 |
fps=15
|
| 57 |
-
time=
|
| 58 |
-
width=
|
| 59 |
-
height=
|
| 60 |
step = 25
|
| 61 |
accu=4
|
| 62 |
|
| 63 |
-
|
| 64 |
css="""
|
| 65 |
input, input::placeholder {
|
| 66 |
text-align: center !important;
|
|
@@ -232,7 +231,7 @@ pipe.scheduler = DDIMScheduler(
|
|
| 232 |
#pipe.unet.load_state_dict(load_file(hf_hub_download(repo, ckpt), device=device), strict=False)
|
| 233 |
pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter_sd15.bin")
|
| 234 |
pipe.enable_vae_slicing()
|
| 235 |
-
pipe.enable_free_init(method="butterworth", use_fast_sampling=
|
| 236 |
|
| 237 |
mp.set_start_method("spawn", force=True)
|
| 238 |
|
|
|
|
| 52 |
#unet = UNet2DConditionModel.from_config("emilianJR/epiCRealism",subfolder="unet").to(device, dtype).load_state_dict(load_file(hf_hub_download("emilianJR/epiCRealism", "unet/diffusion_pytorch_model.safetensors"), device=device), strict=False)
|
| 53 |
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-3", torch_dtype=dtype, device=device)
|
| 54 |
|
| 55 |
+
fast=True
|
| 56 |
fps=15
|
| 57 |
+
time=2
|
| 58 |
+
width=512
|
| 59 |
+
height=768
|
| 60 |
step = 25
|
| 61 |
accu=4
|
| 62 |
|
|
|
|
| 63 |
css="""
|
| 64 |
input, input::placeholder {
|
| 65 |
text-align: center !important;
|
|
|
|
| 231 |
#pipe.unet.load_state_dict(load_file(hf_hub_download(repo, ckpt), device=device), strict=False)
|
| 232 |
pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter_sd15.bin")
|
| 233 |
pipe.enable_vae_slicing()
|
| 234 |
+
pipe.enable_free_init(method="butterworth", use_fast_sampling=fast)
|
| 235 |
|
| 236 |
mp.set_start_method("spawn", force=True)
|
| 237 |
|