kijai / ComfyUI-LivePortraitKJ

ComfyUI nodes for LivePortrait
MIT License
1.34k stars 100 forks source link

add video auto cropping #60

Open akk-123 opened 1 month ago

akk-123 commented 1 month ago

LivePortrait has support video auto cropping , please add it to comfyui

kijai commented 1 month ago

In the develop branch the cropping was already separated to its own node, and thus can be used to autocrop the driving video as well.

brayevalerien commented 1 month ago

Could you please provide an example workflow using the LivePortraitCropper node? Currently the source image and the video seem to be swapped (it is cropping and outputing the source image and not the driving video) image But I'm probably missing something?

kijai commented 1 month ago

Could you please provide an example workflow using the LivePortraitCropper node? Currently the source image and the video seem to be swapped (it is cropping and outputing the source image and not the driving video) image But I'm probably missing something?

You need to add another cropper node so that source and driving have their own, but only connect the source cropper info. There's example workflow included, it's just disconnect on it by default.

brayevalerien commented 1 month ago

I see, thank you for the explanation.

BenDes21 commented 1 month ago

Could you please provide an example workflow using the LivePortraitCropper node? Currently the source image and the video seem to be swapped (it is cropping and outputing the source image and not the driving video) image But I'm probably missing something?

You need to add another cropper node so that source and driving have their own, but only connect the source cropper info. There's example workflow included, it's just disconnect on it by default.

Hi there, I see a unique simple example workflow with no cropper in the repo, do you have the link please

brayevalerien commented 1 month ago

Are you on the develop branch? The LivePortraitCropper is only in the develop branch. You can run:

git fetch
git checkout develop

In the ComfyUI-LivePortraitKJ repo.

zahdab commented 1 month ago

Anyone facing the below error? i am on the develop branch and the crop info nodes are connected Error occurred when executing LivePortraitProcess: LivePortraitProcess.process() got an unexpected keyword argument 'crop_info'