Skip to content

action_test.txt error? #14

Description

@JasOleander

for cline in segs: cline=cline.strip('\n').split(' ') print('cline', cline, split_tag) if split_tag=='test': seg_idx, action_idx=int(cline[0]),int(cline[-1]) start_frame_idx,end_frame_idx=int(cline[2]),int(cline[3]) else: seg_idx,action_idx=int(cline[0]),int(cline[2]) start_frame_idx,end_frame_idx=int(cline[3]),int(cline[4]) tag_subject,tag_scene,tag_sequence=cline[1].split('/') print(len(list_action_name), action_idx) action_name=list_action_name[action_idx] object_name=action_name.split(' ')[-1] object_idx=dict_object_name_to_idx[object_name]

in there you said, if split_tag == 'test': action_idx == int(cline[-1]). but in txt file, there is no action label like train and val txt files. and also cline[-1] is the end frame number. So, I got the IndexError: list index out of range for "action_name = list_action_name[action_idx]" since it is a large number of end frame for action_idx [it have 37 actions]. How to fix it? And also start_frame_idx and end_frame_idx are not cline[2] and cline[3]. They are start_act and end_act.

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