Description
I am running DETA on a data set with only one real class (and one N/A class; in particular various tensors are n by 2). In some long runs, the run fails with RuntimeError: selected index k out of range
at the line below:
DETA/models/deformable_transformer.py
Line 188 in 985fa0b
If I understand correctly, this should only be failing if the number k
requested from topk
, in this case pre_nms_topk
, which is 1000, is too small; specifically I believe this can only happen if the length of the lvl_mask
is less than 1000. (Perhaps my data augmentation has produced an unreasonably tiny image? I thought they were all rescaled.) I don't really understand where we are in the code when this occurs, but would it be harmful to trim the k
supplied to topk
down to the available length?
Activity