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

不能得到任何的bbox #21

Open
sunlanchang opened this issue May 10, 2019 · 5 comments
Open

不能得到任何的bbox #21

sunlanchang opened this issue May 10, 2019 · 5 comments

Comments

@sunlanchang
Copy link

sunlanchang commented May 10, 2019

在我训练完模型之后,尝试预测bbox,可是在预测bbox时候,也就是运行predict.py文件加载训练好的模型best.pth,不能得到任何的bbox,在查看代码后发现mask1 = contain > 0.1 # 大于阈值这一行代码的mask1[:,:,0]为0,如下图所示:

tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=torch.uint8)

请问我的问题大概出在哪里呢?

@han1366
Copy link

han1366 commented Aug 5, 2019

我跟你一样,你解决了吗

@sunlanchang
Copy link
Author

我跟你一样,你解决了吗

没有解决。

@HusterRC
Copy link

@sunlanchang 好好研究以下作者计算loss的代码,可能发现问题

@yunshangyue71
Copy link

@sunlanchang 好好研究以下作者计算loss的代码,可能发现问题

作者loss, confidence 是不是和paper 不一致啊

@Vandaci
Copy link

Vandaci commented Jul 20, 2022

作者的loss好像是把非”responsible“的bndbox误差也算进去了

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

5 participants