kijai / ComfyUI-LivePortraitKJ

ComfyUI nodes for LivePortrait
MIT License
1.51k stars 113 forks source link

Error occurred when executing LivePortraitProcess: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\imgwarp.cpp:2825: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'cv::warpAffine' #5

Closed jokero3answer closed 3 months ago

jokero3answer commented 3 months ago

Diagnostics-1720161440.log

jokero3answer commented 3 months ago

1720161564340

jokero3answer commented 3 months ago

@kijai

vikiiing commented 3 months ago

Same problem

Kimdow220807 commented 3 months ago

Same problem

Fynjy888 commented 3 months ago
YacratesWyh commented 3 months ago

same problem

MauriceBourdon commented 3 months ago

Same problem

YacratesWyh commented 3 months ago

https://github.com/KwaiVGI/LivePortrait/blob/main/src/utils/resources/mask_template.png Copy this to the corresponding place, everyone, it's fixed for me

YacratesWyh commented 3 months ago

this is different repo, also what is this mystery corresponding place ?

Obviously the src/utils are the exact place here. Just copy this png to your alert in https://github.com/kijai/ComfyUI-LivePortraitKJ/tree/main/liveportrait/utils/resources.

MauriceBourdon commented 3 months ago

@YacratesWyh Many Thanks ! It Works !

kijai commented 3 months ago

OK man that was it, wow... hey the png in this repo is borked and corrupted, it makes the whole code collapse so when you copy it from that other repo - it works D:\comfyui\ComfyUI\custom_nodes\ComfyUI-LivePortrait\liveportrait\utils\resources

Yeah this is defo not png https://github.com/kijai/ComfyUI-LivePortraitKJ/blob/main/liveportrait/utils/resources/mask_template.png

This makes no sense, I haven't touched the PNG since initial upload and it's worked for others, very weird. I'm away for a while but I'll look at it later.

matanby commented 3 months ago

I face the same error, It looks like a Git LFS issue when cloning the repo:

git clone https://github.com/kijai/ComfyUI-LivePortraitKJ
Cloning into 'ComfyUI-LivePortraitKJ'...
remote: Enumerating objects: 128, done.
remote: Counting objects: 100% (128/128), done.
remote: Compressing objects: 100% (108/108), done.
remote: Total 128 (delta 36), reused 95 (delta 15), pack-reused 0
Receiving objects: 100% (128/128), 56.53 KiB | 2.17 MiB/s, done.
Resolving deltas: 100% (36/36), done.
Downloading assets/examples/driving/d0.mp4 (3.0 MB)
Error downloading object: assets/examples/driving/d0.mp4 (63f6f99): Smudge error: Error downloading assets/examples/driving/d0.mp4 (63f6f9962e1fdf6e6722172e7a18155204858d5d5ce3b1e0646c150360c33bed): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Errors logged to ComfyUI-LivePortraitKJ/.git/lfs/logs/20240705T125710.208442011.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: assets/examples/driving/d0.mp4: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

As a result, all the files stored in LFS are not fetched correctly.

This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

@kijai :-)

xllusion-dong commented 3 months ago

https://github.com/KwaiVGI/LivePortrait/blob/main/src/utils/resources/mask_template.png Copy this to the corresponding place, everyone, it's fixed for me

That works for me

PetitPrinceb612 commented 3 months ago

this is different repo, also what is this mystery corresponding place ?

Obviously the src/utils are the exact place here. Just copy this png to your alert in https://github.com/kijai/ComfyUI-LivePortraitKJ/tree/main/liveportrait/utils/resources. It's solved,Thanks.

melMass commented 3 months ago

Fixed in #16 you can redownload the repo

kijai commented 3 months ago

So to elaborate what happened: The original repo had marked all the media files to use LFS, which I honestly have never used so I was unaware, people cloning this repo filled my quota hard:

image

Thus after it was full it failed to download the media files, which included the mask_template.png, causing cv2 to error out when receiving empty image.