ComfyUI-to-Python-Extension icon indicating copy to clipboard operation
ComfyUI-to-Python-Extension copied to clipboard

ComfyUI-VideoHelperSuite load_video() not supported

Open Fashizel opened this issue 1 year ago • 3 comments

When converting this ComfyUI-VideoHelperSuite "Load VIdeo (Path)" to python the result is:

vhs_loadvideopath = NODE_CLASS_MAPPINGS["VHS_LoadVideoPath"]()
vhs_loadvideopath_568 = vhs_loadvideopath.load_video()

Notice no args for the load video function which causes an exception.

TIps tricks or fix?

Fashizel avatar Apr 23 '24 08:04 Fashizel

I might fix this in my fork. If you want a quick fix for now, just put video="YOUR PATH" in the load_video(...) parentheses.

atmaranto avatar May 02 '24 20:05 atmaranto

For now I just copy-paste the args from the api.json


load_video_input = {
            "video": anim_type_link,
            "force_rate": 12,
            "force_size": "Disabled",
            "custom_width": 512,
            "custom_height": 512,
            "frame_load_cap": 0,
            "skip_first_frames": 0,
            "select_every_nth": 1
            }

vhs_loadvideopath = NODE_CLASS_MAPPINGS["VHS_LoadVideoPath"]()
vhs_loadvideopath_568 = vhs_loadvideopath.load_video(**load_video_input)

Fashizel avatar May 03 '24 08:05 Fashizel

My fork now deals with this issue.

atmaranto avatar May 04 '24 11:05 atmaranto

@Fashizel This is likely solved with the latest release. Please try using the latest version of the repo and let me know if you are still facing the same issue.

pydn avatar Sep 12 '24 18:09 pydn