Skip to content

draw bounding box in infer.py coordinates? #1

@machanic

Description

@machanic

in infer.py in line 138:

xy = np.array([locs[t,1],locs[t,0],locs[t,1],locs[t,0]])
wh = np.array([-g_size//2, -g_size//2, g_size//2, g_size//2])
xys = [xy + np.power(2,s)*wh for s in range(n_scales)]
for xy in xys:
     draw.rectangle(xy=list(xy), outline=color)

draw.rectangle parameter xy is from [x0,y0,x1,y1], is there error in xy = np.array([locs[t,1],locs[t,0],locs[t,1],locs[t,0]])????
shouldn't it be x coordinate first?

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