Update src/facerender/modules/make_animation.py
Browse files
src/facerender/modules/make_animation.py
CHANGED
|
@@ -149,7 +149,10 @@ def make_animation(source_image, source_semantics, target_semantics,
|
|
| 149 |
use_exp=True):
|
| 150 |
|
| 151 |
device='cuda'
|
| 152 |
-
|
|
|
|
|
|
|
|
|
|
| 153 |
source_image = source_image.to(device)
|
| 154 |
source_semantics = source_semantics.to(device)
|
| 155 |
target_semantics = target_semantics.to(device)
|
|
|
|
| 149 |
use_exp=True):
|
| 150 |
|
| 151 |
device='cuda'
|
| 152 |
+
generator = torch.nn.DataParallel(generator).to(device)
|
| 153 |
+
kp_detector = torch.nn.DataParallel(kp_detector).to(device)
|
| 154 |
+
mapping = torch.nn.DataParallel(mapping).to(device)
|
| 155 |
+
|
| 156 |
source_image = source_image.to(device)
|
| 157 |
source_semantics = source_semantics.to(device)
|
| 158 |
target_semantics = target_semantics.to(device)
|