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

为什么2985训练会报如下错误,而2185则不会报错? #2

Closed
XinZhao-dlnu opened this issue Jun 14, 2023 · 1 comment
Closed

Comments

@XinZhao-dlnu
Copy link

错误信息:
VatueError:The input image has only 1 different valves It cannot be thresholded in 3 classes
错误语句:
regions = np.digitize(d[0], bins=threshold_multiotsu(d[0]))

@Zongwei97
Copy link
Owner

你好,欢迎关注我们的工作!
我的理解是这个和otsu的算法有关,它内置的算法可能在有些情况无法把深度图分成指定n个的local region。
比如说,假设一张深度图全部都是一个value,那内置的otsu算法就无法实现进一步分割,就报错了。
你可以看一下具体是哪些图片报错,然后在此基础上修改n的value看一下

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