Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added UV Texture Predictor #34

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Added UV Texture Predictor #34

wants to merge 2 commits into from

Conversation

KupynOrest
Copy link
Collaborator

No description provided.

@@ -92,6 +94,15 @@ def draw_pose(predictions: Dict[str, torch.Tensor], image: np.ndarray) -> np.nda
return image


def get_uv_texture(predictions: Dict[str, torch.Tensor], image: np.ndarray) -> np.ndarray:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls move these 2 functions below # endregion line (L106)

import torch
import torch.nn as nn
from torch import Tensor
from typing import Optional, Dict
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge L8-9

def _transform_3dmm_to_3d_face_polygons(self, mm_params: Union[torch.Tensor, np.ndarray], flame: nn.Module) -> Tuple[np.ndarray, np.ndarray]:
"""

Args:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove L77-81 or fix them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants