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

in demo.py, amodel_ct_output should not be affected by reg value? #272

Open
likegogogo opened this issue Jul 18, 2022 · 0 comments
Open

Comments

@likegogogo
Copy link

according to the src\lib\dataset\generic_dataset.py code:
hm ->ct_int
ret['reg'][k] = ct - ct_int
ret['amodel_offset'][k] = amodel_center - ct_int

so, in inference, should be:
ct_int: hm
ct: ret['reg'][k] + ct_int = ret['reg'][k] + hm
amodel_center: ret['amodel_offset'][k] + ct_int = ret['amodel_offset'][k] + hm

in training, reg value is not used when calc amodel_offset.
But in inference, when calc bboxes, the code used reg values.
So there is a gap??

    if 'amodel_offset' in dets and len(dets['amodel_offset'][i]) > j:
      ct_output = dets['bboxes'][i][j].reshape(2, 2).mean(axis=0)
      amodel_ct_output = ct_output + dets['amodel_offset'][i][j]
      ct = transform_preds_with_trans(
        amodel_ct_output.reshape(1, 2), trans).reshape(2).tolist()
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

1 participant