Skip to content

While accessing the bbox an error appear  #5

@khalid5454

Description

@khalid5454

All my code files 1-4 and dataset files in the same directory but when I am trying to fetch the data like bbox_list.txt for which I run the first part but getting an error in these lines

try:
bbox_file = open( bbox_path , 'r')

except Exception:
print 'get_bbox() error'

bbox_data = bbox_file.readlines()
for d, i in tqdm(zip(bbox_data[2:],range(bbox_data.len()-2))):
s = d.split()
p = data_path + s[0]
bbox_loca = []
for a in s[1:]:
bbox_loca.append(int(a))
img_bbox[p] = bbox_loca
bbox_file.close()

output error =

File "", line 6
print 'get_bbox() error'
^
SyntaxError: invalid syntax

Any solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions