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

Adding more than three points results in Nonetype error. #8

Open
helvince opened this issue Nov 20, 2024 · 0 comments
Open

Adding more than three points results in Nonetype error. #8

helvince opened this issue Nov 20, 2024 · 0 comments

Comments

@helvince
Copy link

Adding more than three points results in Nonetype error.

In SamV2_pipeline, add_point, if check_if_our_z_is_new and not (check_if_our_annotation_is_new):
self.prompts[ann_obj_id] = existing_val.append(
[ann_frame_idx, points, labels]
)
sets self.prompts to None. Appending/extending lists is a function call and does not yield a modified object (returning None). The resulting {ann_obj_id: None} will discard previous inputs and keeps returning nonetype. The suggested solution would be:
existing_val.append([ann_frame_idx, points, labels])
self.prompts[ann_obj_id] = existing_val

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

1 participant