-
Notifications
You must be signed in to change notification settings - Fork 340
预测得分为负数 #11
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
Comments
这个是我的推理代码 img_input = img[..., ::-1] # BGR to RGB img_input = (np.float32(img)/255.0-[0.485, 0.456, 0.406]) / [0.229, 0.224, 0.225] |
最后一层直接取出的结果没有经过softmax,可以用一个softmax得到归一化的概率值 |
请问您测试同一张图片得出的pre值是一样的吗。我用训练的模型测试同一张图片,每次输出的pre值都有差异,想问一下您有没有出现这种情况,可能是什么原因导致的 |
作者您好,我在使用您的代码训练自己的数据时,数据一共有6类,预测结果没有问题,准确率很高,但是其他的类得分为什么会出现负数呢? 并且不同的图像得分的大小程度也差很多,请问是什么原因呢
The text was updated successfully, but these errors were encountered: