Return: face_shape -- torch.tensor, size (B, N, 3) pts @ rot + trans Parameters: face_shape -- torch.tensor, size (B, N, 3) rot -- torch.tensor, size (B, 3, 3) trans -- torch.tensor, size (B, 3)
(self, face_shape, rot, trans)
| 228 | |
| 229 | |
| 230 | def transform(self, face_shape, rot, trans): |
| 231 | """ |
| 232 | Return: |
| 233 | face_shape -- torch.tensor, size (B, N, 3) pts @ rot + trans |
| 234 | |
| 235 | Parameters: |
| 236 | face_shape -- torch.tensor, size (B, N, 3) |
| 237 | rot -- torch.tensor, size (B, 3, 3) |
| 238 | trans -- torch.tensor, size (B, 3) |
| 239 | """ |
| 240 | return face_shape @ rot + trans.unsqueeze(1) |
| 241 | |
| 242 | |
| 243 | def get_landmarks(self, face_proj): |
no outgoing calls
no test coverage detected