YUANFAN GUO
YUANFAN GUO
When there is no bounding box detected, ids.nonzero.squeeze() automatically squeeze the tensor into nothing, which makes the ids with tensor.shape([]) try this in encoder.py, decode(): `ids = score > CLS_THRESH`...
> @gyfastas Thank you for comment. > ids = score > CLS_THRESH > if ids.numel() > I also revised code, but still occur error. > Could you give me another...
+1. Used in a devbox and found the same problem.
The link is unavailable. Is it able to update the link?
same issue too. How to fix it? **updated:** I tried to mofidy `mm_utils.py` as the following. It now works for me: def call_for_batch(self, output_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:...