Skip to content

ValueError: too many values to unpack (expected 2) #5

@QiushiYang

Description

@QiushiYang

Thanks a lot for sharing the codes of excellent work.

I tried to run the vos_inference.py while met the error "ValueError: too many values to unpack (expected 2)" in Line-359 of tools/vos_inference.py:
"out_obj_ids, out_mask_logits = predictor.propagate_in_video(inference_state, start_frame_idx=min(input_frame_inds), reverse=False,)"

When I debug it, it seems that the output of predictor.propagate_in_video() is a single generator and cannot be subscriptable. However, in Line-362, the out_mask_logits is subscriptable as: "output_scores_per_object[object_id][frame_idx] = out_mask_logits[frame_idx-min(input_frame_inds)].cpu().numpy()".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions