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

Camera.bat Error #108

Open
inferno46n2 opened this issue Dec 15, 2024 · 1 comment
Open

Camera.bat Error #108

inferno46n2 opened this issue Dec 15, 2024 · 1 comment

Comments

@inferno46n2
Copy link

inferno46n2 commented Dec 15, 2024

Hello,

I want to only retarget the eyes and mouth using a webcam + an image (essentially, I don't want the head to move relative to mine)

When I set the variables in the trt_infer.yaml file for eye retargeting and lip retargeting to True I get

no face in driving frame:1
Traceback (most recent call last):
File "C:\LivePort\run.py", line 276, in
run_with_video(args)
File "C:\LivePort\run.py", line 91, in run_with_video
dri_crop, out_crop, out_org, dri_motion_info = pipe.run(frame, pipe.src_imgs[0], pipe.src_infos[0],
File "C:\LivePort\src\pipelines\faster_live_portrait_pipeline.py", line 482, in run
combined_eye_ratio_tensor = self.calc_combined_eye_ratio(c_d_eyes_i,
File "C:\LivePort\src\pipelines\faster_live_portrait_pipeline.py", line 116, in calc_combined_eye_ratio
c_d_eyes_i = np.array(c_d_eyes_i).reshape(1, 1)
ValueError: cannot reshape array of size 2 into shape (1,1)
Error occurred during execution

Additionally, I have another question - when I use --paste_back the scale is very off. Is there a way to make that relative as well?

@warmshao
Copy link
Owner

no face in driving frame:1

Change the parameter animation_region instead of eye retargeting or lip retargeting.

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