Open kongbia opened 4 years ago
@kongbia This codes must be remained because pos means positive samples and pos exists during training also.
@kongbia This codes must be remained because pos means positive samples and pos exists during training also.
but in siammask_sharp.py line 65, there is no pos input during training. Pos in training comes from the mask_weight in siam_mask_dataset.py, and is used only in loss function.
Can this line
if not (pos is None): p0 = torch.index_select(p0, 0, pos)
be deleted because there is nopos
in the training?