Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video segmentation workflow issue #23

Open
david-rokeby opened this issue Aug 1, 2024 · 1 comment
Open

Video segmentation workflow issue #23

david-rokeby opened this issue Aug 1, 2024 · 1 comment

Comments

@david-rokeby
Copy link

I have attempted to reconstruct the video segmentation example in the top movie in the github movie.

I am working on Ubuntu 22.04, with Pytorch 2.4, cuda 12.4. Single image segmentation seems to work, but if I switch to video segmentation, I get:

Error occurred when executing Sam2Segmentation:

'SAM2VideoPredictor' object has no attribute 'set_image'

File "/home/bmolab/Projects/pytorch/ComfyUI/execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/home/bmolab/Projects/pytorch/ComfyUI/execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/home/bmolab/Projects/pytorch/ComfyUI/execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/home/bmolab/Projects/pytorch/ComfyUI/custom_nodes/ComfyUI-segment-anything-2/nodes.py", line 226, in segment
model.set_image(image_np)
File "/home/bmolab/anaconda3/envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1729, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")

@kijai
Copy link
Owner

kijai commented Aug 1, 2024

Are you possible feeding it just a single image? That would trigger this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants