Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ class AnimateController:
|
|
174 |
**OmegaConf.to_container(self.inference_config.noise_scheduler_kwargs))
|
175 |
).to("cuda")
|
176 |
|
177 |
-
original_state_dict = {k: v.cpu().clone() for k, v in
|
178 |
pipeline.unet = convert_lcm_lora(pipeline.unet, self.lcm_lora_path, spatial_lora_slider)
|
179 |
|
180 |
pipeline.to("cuda")
|
|
|
174 |
**OmegaConf.to_container(self.inference_config.noise_scheduler_kwargs))
|
175 |
).to("cuda")
|
176 |
|
177 |
+
original_state_dict = {k: v.cpu().clone() for k, v in pipeline.unet.state_dict().items()}
|
178 |
pipeline.unet = convert_lcm_lora(pipeline.unet, self.lcm_lora_path, spatial_lora_slider)
|
179 |
|
180 |
pipeline.to("cuda")
|