Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non Normalized coordinates #30

Open
vaishnavm217 opened this issue Jun 13, 2018 · 4 comments
Open

Non Normalized coordinates #30

vaishnavm217 opened this issue Jun 13, 2018 · 4 comments

Comments

@vaishnavm217
Copy link

Hi,
I am working on face detection using your ssd model. One thing I noticed that my model was giving zero loss, i.e all the ious were zero. After long inspection

boxes, labels = box_coder.encode(boxes, labels)

this line passes the boxes coordinates as it is. It should be normalized to get correct iou

@tfygg
Copy link

tfygg commented Jun 21, 2018

Yeah,
i also noticed that you tested the VOC dataset by the image size of 300*300.

@ljtruong
Copy link

ljtruong commented Jul 15, 2018

@vaishnavm217 to fix this do we just do something like this? to normalise the bounding boxes.

        w,h = image.size
        boxes /= torch.Tensor([w,h,w,h]).expand_as(boxes)

@vaishnavm217
Copy link
Author

vaishnavm217 commented Jul 15, 2018 via email

@ljtruong
Copy link

@vaishnavm217 thank you for the confirmation. much appreciated. I'm testing out the train now and it's working well.

Just looking ahead. When I run it through prediction or evaluation, where would the best place to denormalise the labels?.

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

No branches or pull requests

3 participants