Spaces:
Paused
Paused
Update src/facerender/modules/make_animation.py
Browse files
src/facerender/modules/make_animation.py
CHANGED
@@ -206,7 +206,7 @@ def make_animation(source_image, source_semantics, target_semantics,
|
|
206 |
source_image = source_image.to(device)
|
207 |
source_semantics = source_semantics.to(device)
|
208 |
target_semantics = target_semantics.to(device)
|
209 |
-
|
210 |
num_frames = target_semantics.shape[1]
|
211 |
predictions = []
|
212 |
|
@@ -214,9 +214,9 @@ def make_animation(source_image, source_semantics, target_semantics,
|
|
214 |
kp_canonical = kp_detector(source_image)
|
215 |
he_source = mapping(source_semantics)
|
216 |
kp_source = keypoint_transformation(kp_canonical, he_source)
|
217 |
-
print("
|
|
|
218 |
print("kp_source",kp_source)
|
219 |
-
print("kp_norm",kp_norm)
|
220 |
|
221 |
for start_idx in tqdm(range(0, num_frames, batch_size), desc='Face Renderer:', unit='batch'):
|
222 |
end_idx = min(start_idx + batch_size, num_frames)
|
|
|
206 |
source_image = source_image.to(device)
|
207 |
source_semantics = source_semantics.to(device)
|
208 |
target_semantics = target_semantics.to(device)
|
209 |
+
print("source_image",source_image)
|
210 |
num_frames = target_semantics.shape[1]
|
211 |
predictions = []
|
212 |
|
|
|
214 |
kp_canonical = kp_detector(source_image)
|
215 |
he_source = mapping(source_semantics)
|
216 |
kp_source = keypoint_transformation(kp_canonical, he_source)
|
217 |
+
print("kp_canonical",kp_canonical)
|
218 |
+
print("he_source",he_source)
|
219 |
print("kp_source",kp_source)
|
|
|
220 |
|
221 |
for start_idx in tqdm(range(0, num_frames, batch_size), desc='Face Renderer:', unit='batch'):
|
222 |
end_idx = min(start_idx + batch_size, num_frames)
|