You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: