Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Bug report on densepose_cocoeval.py #182

@penincillin

Description

@penincillin

Hi, I am currently reading the source code of densepose, and I think there might be a bug in detectron/datasets/densepose_cocoeval.py. Don't be nervous, this bug won't affect the result of the code, it will just confuse people like me who try to read your code :)
From line 378 to line 397 I think some 'x' and 'y' are messed up and the code with correct use of 'x' and 'y' should be :
Line 378~379:

dy = dt['bbox'][3] 
dx = dt['bbox'][2]

Line 382~383

py = ( dp_y + g_[1] - dt['bbox'][1]).astype(np.int)
px = ( dp_x + g_[0] - dt['bbox'][0]).astype(np.int)

Line 395~397

ipoints = dt['uv'][0, py, px]
upoints = dt['uv'][1, py, px]/255. # convert from uint8 by /255.
vpoints = dt['uv'][2, py, px]/255.

I would appreciate if you reply me.
Thanks !

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