kijai/ComfyUI-LivePortraitKJ

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

Darienxccs opened this issue · 4 comments

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?

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

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

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

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.