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

Exception has occurred: ValueError a must be greater than 0 unless no samples are taken #30

Open
EchoHayate opened this issue Apr 21, 2023 · 0 comments

Comments

@EchoHayate
Copy link

单独跑kmeans_for_anchors.py 报错如下
Exception has occurred: ValueError
a must be greater than 0 unless no samples are taken
File "C:\Users\10407\Desktop\kmeans.py", line 161, in kmeans
cluster = box[np.random.choice(row, k, replace = False)]
File "C:\Users\10407\Desktop\kmeans.py", line 247, in
cluster, near = kmeans(data, anchors_num)
ValueError: a must be greater than 0 unless no samples are taken
vocdevkit路径已经按照说明配置好,求指点

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

1 participant