Hello, I'm confused by those code, are those because of one-hot label?
target_boxes = torch.cat([t["boxes"][v[1]] for t,v in zip(targets, indices)], dim=0)
target_classes_o = torch.cat([t["labels"][v[1]]
for t,v in zip(targets, indices)])#1d class index sorted by tgt_ind
sorry for late reply, this is for a concatenation between tuples. Thus , the result pos_idx_c is a tuple of index in (batch, sample , category) dimension.
Hello, I'm confused by those code, are those because of one-hot label? target_boxes = torch.cat([t["boxes"][v[1]] for t,v in zip(targets, indices)], dim=0) target_classes_o = torch.cat([t["labels"][v[1]] for t,v in zip(targets, indices)])#1d class index sorted by tgt_ind
why pos_idx_c = pos_idx + (target_classes_o.cpu(), ) have a "+"