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

Face detailer for animatediff resulting in black mask. #30

Open
amnesicloud opened this issue Feb 7, 2024 · 11 comments
Open

Face detailer for animatediff resulting in black mask. #30

amnesicloud opened this issue Feb 7, 2024 · 11 comments

Comments

@amnesicloud
Copy link

Hi there, thanks for the tutorials, it has been a great help.
I'm having problem when making modifications based on your workflow: ComfyUI-Impact-Pack/workflow/detailer-for-animatediff.png
https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/workflow/detailer-for-animatediff.png

I'm using this gif as input:
input

and this is my workflow, where I removed the first Ksampler node since I'm using specific input:
test_workflow (1).json

and my result are as follow:
AnimateDiff_00052

where the face is black masked. I'm wondering what's causing this problem?

@amnesicloud
Copy link
Author

to me it has successfully detected the face, but failed to redraw, but I can't make it work

@ltdrdata
Copy link
Owner

ltdrdata commented Feb 8, 2024

What is your gpu?

@amnesicloud
Copy link
Author

using Apple Silicon M2, I use comfyui with this command:
./venv/bin/python main.py --force-fp16

@amnesicloud
Copy link
Author

with 32G Mem

@ltdrdata
Copy link
Owner

ltdrdata commented Feb 11, 2024

Show me the full log comfyui.log

My guess is that M2 is related to issues occurring when performing ksampling at a specific resolution.

@amnesicloud
Copy link
Author

update: I adopted the method from Kosinkadink/ComfyUI-AnimateDiff-Evolved#48 (comment), and the black mask problem is gone.
However now the face part is weird images, it seems
AnimateDiff_00068

the log is as follow
comfyui.log

@ltdrdata
Copy link
Owner

Before proceeding further, it is recommended that you update your ComfyUI. It's already a month old version.

@amnesicloud
Copy link
Author

I have updated ComfyUI, and I get rid of previous update, it causes problem in animatediff workflow
comfyui.log

current result is like this:
AnimateDiff_00092

@ltdrdata
Copy link
Owner

Try creating images in 640, 674 resolution in the basic AnimateDiff workflow without FaceDetailer, if that's not an issue, apply i2i.

@amnesicloud
Copy link
Author

I'm not sure what you mean i2i, image2image?
I have "basic AnimateDiff workflow without FaceDetailer" working, and I've tried to apply face detailer on each frame (is that what you meant by "i2i"?), however that would cause the face flickering, that's why I'm looking for an animatediff detailer solution.

@ltdrdata
Copy link
Owner

I meant vid2vid. Just make source image size as 640, 674.

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