Skip to content

RuntimeError: selected index k out of range #181

@SHUSHENGQIGUI

Description

@SHUSHENGQIGUI

when I input 7350X150 image for inference, or some images with high height-width ratio , it will get this bug, the bug detial is in below:
File "/GroundingDINO/groundingdino/models/GroundingDINO/transformer.py", line 278, in forward
topk_proposals = torch.topk(topk_logits, topk, dim=1)[1] # bs, nq
RuntimeError: selected index k out of range

how to fix this bug ? please

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