Open cqray1990 opened 2 years ago
score = torch.sigmoid(out[:, 0, :, :])
# # text_mask = out[:, 0, :, :] # kernels = out[:, 1:cfg.test_cfg.kernel_num, :, :] * text_mask kernels = out[:, :cfg.test_cfg.kernel_num, :, :] > 0 text_mask = kernels[:, :1, :, :] kernels[:, 1:, :, :] = kernels[:, 1:, :, :] * text_mask
No module named 'models.post_processing.pa.pa',这个问题您遇到过吗?
score = torch.sigmoid(out[:, 0, :, :])
out = (torch.sign(out - 1) + 1) / 2 # 0 1