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

The input image has only 1 different values. It can not be thresholded in 3 classes #5

Closed
xueseqingniao opened this issue Sep 24, 2023 · 1 comment

Comments

@xueseqingniao
Copy link

你好 我在使用你的代码中的regionst = np.digitize(t[0], bins=threshold_multiotsu(t[0]))时,出现The input image has only 1 different values. It can not be thresholded in 3 classes

@Zongwei97
Copy link
Owner

您好,
感谢对我们工作的关注。
我猜测您可能使用了2985数据集训练,如Issue #2 中一样。
我觉得可能是深度图的原因, 因为multiotsu自带的算法可能无法对一些只有一个值的深度图进行threshold。
可以看一下报错的深度图片。
如文章所述,我们是在2185上训练的,没有遇到过这个问题。

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