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

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

Open
JiejiangWu opened this issue Jun 12, 2023 · 1 comment
Open

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

JiejiangWu opened this issue Jun 12, 2023 · 1 comment

Comments

@JiejiangWu
Copy link

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?

@cassiePython
Copy link
Owner

@JiejiangWu For expression editing, you should modify the value (pca_val) of the expression-related 3DMM parameters (pca_id).

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

No branches or pull requests

2 participants