SOLIDER icon indicating copy to clipboard operation
SOLIDER copied to clipboard

IndexError: tensors used as indices must be long, byte or bool tensors

Open Peter-jj opened this issue 2 years ago • 1 comments

when I run the resume_solider.sh,it maybe traceback with File "main_solider.py", line 398, in train_one_epoch semantic_weight = [torch.cat(semantic_weight)[torch.from_numpy(mask_idxs)]]
IndexError: tensors used as indices must be long, byte or bool tensors how can I deal with it

Peter-jj avatar Jul 11 '23 15:07 Peter-jj

Hi authors - the code is not finetunable when mask_ids is empty - can you give a pointer on what to do? I tried indenting that line and got a tensor size mismatch error (16 vs. 8).

debenton avatar Nov 05 '23 19:11 debenton