Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -189,7 +189,7 @@ ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
|
|
189 |
base = "emilianJR/epiCRealism"
|
190 |
#base = "SG161222/Realistic_Vision_V6.0_B1_noVAE"
|
191 |
|
192 |
-
pipe = AnimateDiffPipeline.from_pretrained(
|
193 |
pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing", beta_schedule="linear")
|
194 |
pipe.unet.load_state_dict(load_file(hf_hub_download(repo, ckpt), device=device), strict=False)
|
195 |
pipe.enable_free_init(method="butterworth", use_fast_sampling=False)
|
|
|
189 |
base = "emilianJR/epiCRealism"
|
190 |
#base = "SG161222/Realistic_Vision_V6.0_B1_noVAE"
|
191 |
|
192 |
+
pipe = AnimateDiffPipeline.from_pretrained(base, torch_dtype=dtype).to(device)
|
193 |
pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing", beta_schedule="linear")
|
194 |
pipe.unet.load_state_dict(load_file(hf_hub_download(repo, ckpt), device=device), strict=False)
|
195 |
pipe.enable_free_init(method="butterworth", use_fast_sampling=False)
|