Update src/pipelines/pipeline_echo_mimic.py
Browse files
src/pipelines/pipeline_echo_mimic.py
CHANGED
@@ -93,7 +93,8 @@ class Audio2VideoPipeline(DiffusionPipeline):
|
|
93 |
else:
|
94 |
raise ImportError("Please install accelerate via `pip install accelerate`")
|
95 |
|
96 |
-
device = torch.device(f"cuda:{gpu_id}")
|
|
|
97 |
|
98 |
for cpu_offloaded_model in [self.unet, self.text_encoder, self.vae]:
|
99 |
if cpu_offloaded_model is not None:
|
|
|
93 |
else:
|
94 |
raise ImportError("Please install accelerate via `pip install accelerate`")
|
95 |
|
96 |
+
# device = torch.device(f"cuda:{gpu_id}")
|
97 |
+
device = torch.device(f"cpu:{gpu_id}")
|
98 |
|
99 |
for cpu_offloaded_model in [self.unet, self.text_encoder, self.vae]:
|
100 |
if cpu_offloaded_model is not None:
|