Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这里结果不对吧? kernels大于0判断,为啥去大于0的,这里的kernels阈值怎么会是0呢 #185

Open
cqray1990 opened this issue Jul 6, 2022 · 1 comment

Comments

@cqray1990
Copy link

score = torch.sigmoid(out[:, 0, :, :])
# out = (torch.sign(out - 1) + 1) / 2 # 0 1
#
# 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
@zeng-cy
Copy link

zeng-cy commented Nov 19, 2022

No module named 'models.post_processing.pa.pa',这个问题您遇到过吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants