ComfyUI-to-Python-Extension
ComfyUI-to-Python-Extension copied to clipboard
ComfyUI-VideoHelperSuite load_video() not supported
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?
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.
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)
My fork now deals with this issue.
@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.