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

Error in NMS function #26

Open
attibalazs opened this issue Nov 11, 2020 · 0 comments
Open

Error in NMS function #26

attibalazs opened this issue Nov 11, 2020 · 0 comments

Comments

@attibalazs
Copy link

Hi all,

I'm getting an error when training the model in the NMS function, it shows up after a few epochs, its hard to debug.

  File "/lib/python3.6/site-packages/fastai/callback.py", line 241, in _call_and_update
    new = ifnone(getattr(cb, f'on_{cb_name}')(**self.state_dict, **kwargs), dict())
  File "/lib/python3.6/site-packages/object_detection_fastai/callbacks/callbacks.py", line 127, in on_batch_end
    to_keep = nms(bbox_pred, scores, self.nms_thresh)
  File "/lib/python3.6/site-packages/object_detection_fastai/helper/object_detection_helper.py", line 158, in nms
    idx_first = mask_keep.nonzero().min().item()
**RuntimeError: operation does not have an identity.**

when I checked the code it doesn't look like idx_first is being used anywhere, is this legacy, should it be removed ?

thanks,
atti

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