modify the function init_centroids: - #1
Open
DanLiu0623 wants to merge 1 commit into
Open
Conversation
use plus =1, the error occurs: centroids.append(boxes[centroid_index]) TypeError: only integer scalar arrays can be converted to a scalar index
|
请问,是不是修改了anchor boxes个数,运行k_means_yolo.py ,然后看loss最低的,就是最合适的anchor boxes个数以及anchor boxes 大小?是这样分析的吗? 返回值loss是所有box距离所属的最近的centroid的距离的和def do_kmeans(n_anchors, boxes, centroids): |
just modify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
use plus =1, the error occurs: centroids.append(boxes[centroid_index]) TypeError: only integer scalar arrays can be converted to a scalar index