Skip to content

Cluster sort patch 1#2

Open
LAWArthur wants to merge 2 commits into
mainfrom
Cluster-sort-patch-1
Open

Cluster sort patch 1#2
LAWArthur wants to merge 2 commits into
mainfrom
Cluster-sort-patch-1

Conversation

@LAWArthur

@LAWArthur LAWArthur commented Nov 12, 2025

Copy link
Copy Markdown
Collaborator

utils.py:

修改了 Finch_cluster,现在该函数返回{"labels": 各层次下物体的聚类标签(形状:(L, N)), "label_optimial": 边缘系数最优的聚类标签(形状:(N, ))}

增加了一个函数sort_by_cluster,输入各层次下物体的聚类标签,输出排序后的indices(形状:(N,))

example:

labels = Finch_cluster("***.json", 1)
indices = sort_by_cluster(labels['labels'])

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

Successfully merging this pull request may close these issues.

1 participant