Skip to content

How to transfer attributes from src image to tgt image? #7

@JiejiangWu

Description

@JiejiangWu

Hi, thanks for the excellent work.
I am trying to test the effect of transferring attributes from one source image to another target image, (e.g. makes the target person show the same expression with the source person), as shown in the Figure from the paper.
image

After reading the code, I am confused that whether this function is implemented in the code? The test_shape in evaluate.py seems a bit related but I cannot figure out what the pca_id and pca_val mean.

cddfm3d/evaluate.py

Lines 147 to 153 in 4660a56

def test_shape(self):
save_dir = os.path.join(self._save_dir, self._save_name)
os.makedirs(save_dir, exist_ok=True)
pca_id = 1
#pca_val = -10.0
pca_val = 20.0

Does the test_shape function do the thing I want? If not, what should I do to implement the expression transfer process?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions