kijai / ComfyUI-LivePortraitKJ

ComfyUI nodes for LivePortrait
MIT License
1.66k stars 128 forks source link

Updated today and I am getting a "Error when executing VHS_LoadVideo" #121

Open Darienxccs opened 3 months ago

Darienxccs commented 3 months ago

I updated my ComfyUI and now I try to use Liveportrait in V2V and I received this error message:

Error occurred when executing VHS_LoadVideo:

'int' object has no attribute 'is_integer'

I had tried refreshing, loading another json file, updating again, nothing, does someone know what happened since the update?

kijai commented 3 months ago

If you also updated the VHS nodes, try remaking those nodes.

Darienxccs commented 3 months ago

If you also updated the VHS nodes, try remaking those nodes.

I did, I even deleted the nodes and reinstalled, restarted, put new nodes, i don't know what else, keep receiving that error

Darienxccs commented 3 months ago

I also noticed the VHS_audio wasn't connecting to the video combine when it worked before the update

Darienxccs commented 3 months ago

asking on perplexity it gave me the solution: Open the load_video_nodes.py file located in the app\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite directory of your ComfyUI installation Find the cv_frame_generator function Locate the line if total_frames and total_frames.is_integer(): and replace it with if total_frames and isinstance(total_frames, float) and total_frames.is_integer():

I did it and it worked!.

Now, about the audio not connecting, on the Load Video (Upload) node, I did a right click and chose "fix node (recreate)" and that was it!. I could connect it to the Video Combine node.