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

Bounding box and IUV array size inconsistency #276

Open
tobyshooters opened this issue Sep 24, 2020 · 1 comment
Open

Bounding box and IUV array size inconsistency #276

tobyshooters opened this issue Sep 24, 2020 · 1 comment

Comments

@tobyshooters
Copy link

tobyshooters commented Sep 24, 2020

I'm writing my own post-processing step for DensePose. I want to align the IUV output to my source image. To do this, I use the bbox_XYXY to copy the IUV array into a larger np.zeros(frame.shape).

Very frequently I get an off-by-1 error, but not always.

iuv[y1:y2, x1:x2] = obj["iuv"].transpose(1,2,0)
Value Error: could not broadcast input array from shape (553,385,3) into shape (554,385,3)

This is likely a rounding error somewhere in the Densepose pipeline. After looking around the codebase, I've realized that for visualization, you resize the array to match the image.

github.com/facebookresearch/detectron2/blob/master/projects/DensePose/densepose/vis/base.py#L42

I wanted to double-check that the reason for the resize is this rounding error, or if there's a bug somewhere else in my code.

@hithd
Copy link

hithd commented Feb 12, 2023

hello @tobyshooters , have you finished you project yet ? What i am doing now is quite familiar with your step . I am trying to use the IUV output to find specific point of the image and point it in the original image . I would be quite grateful if you can show me your step or code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants