liblaf.flame_pytorch.upstream.flame
¤
FLAME Layer: Implementation of the 3D Statistical Face model in PyTorch
It is designed in a way to directly plug in as a decoder layer in a Deep learning framework for training and testing
It can also be used for 2D or 3D optimisation applications
Author: Soubhik Sanyal Copyright © 2019, Soubhik Sanyal All rights reserved.
Max-Planck-Gesellschaft zur Foerderung der Wissenschaften e.V. (MPG) is holder of all proprietary rights on this computer program. You can only use this computer program if you have closed a license agreement with MPG or you get the right to use the computer program from someone who is authorized to grant you that right. Any use of the computer program without a valid license is prohibited and liable to prosecution. Copyright 2019 Max-Planck-Gesellschaft zur Foerderung der Wissenschaften e.V. (MPG). acting on behalf of its Max Planck Institute for Intelligent Systems and the Max Planck Institute for Biological Cybernetics. All rights reserved.
More information about FLAME is available at http://flame.is.tue.mpg.de.
For questions regarding the PyTorch implementation please contact soubhik.sanyal@tuebingen.mpg.de
Classes:
-
FLAME–Given flame parameters this class generates a differentiable FLAME function
FLAME
¤
FLAME(config)
Bases: Module
flowchart TD
liblaf.flame_pytorch.upstream.flame.FLAME[FLAME]
click liblaf.flame_pytorch.upstream.flame.FLAME href "" "liblaf.flame_pytorch.upstream.flame.FLAME"
Given flame parameters this class generates a differentiable FLAME function which outputs the a mesh and 3D facial landmarks
- Reference Liblaf flame_pytorch
Methods:
-
forward–Input:
Attributes:
-
NECK_IDX– -
batch_size– -
dtype– -
faces– -
flame_model– -
use_3D_translation– -
use_face_contour–
Source code in src/liblaf/flame_pytorch/upstream/flame.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
forward
¤
forward(
shape_params=None,
expression_params=None,
pose_params=None,
neck_pose=None,
eye_pose=None,
transl=None,
)
Input
shape_params: N X number of shape parameters expression_params: N X number of expression parameters pose_params: N X number of pose parameters
return: vertices: N X V X 3 landmarks: N X number of landmarks X 3
Source code in src/liblaf/flame_pytorch/upstream/flame.py
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | |