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

Issues creating endpoint files #264

Open
huannllls opened this issue Dec 13, 2023 · 0 comments
Open

Issues creating endpoint files #264

huannllls opened this issue Dec 13, 2023 · 0 comments

Comments

@huannllls
Copy link

Hello author, I encountered a problem when using this program,TractSeg/blob/master/tractseg/libs/create_endpoints_mask_with_clustering.py,Most ".trk" are fine when generating endpoint files,However, some files report the following error when running:
Histogram of cluster labels:
[1176]
Labels of the two biggest clusters: [0]
Traceback (most recent call last):
File "/home/hls/Atext/TractSeg-master/TractSeg/tractseg/libs/create_endpoints_mask_with_clustering.py", line 116, in
points_start, points_end = cluster(points_subset, algorithm="DBSCAN")
File "/home/hls/Atext/TractSeg-master/TractSeg/tractseg/libs/create_endpoints_mask_with_clustering.py", line 59, in cluster
points_start, points_end = select_two_biggest_clusters(labels, points)
File "/home/hls/Atext/TractSeg-master/TractSeg/tractseg/libs/create_endpoints_mask_with_clustering.py", line 45, in select_two_biggest_clusters
cluster_B = points[labels == biggest_labels[1]]
IndexError: index 1 is out of bounds for axis 0 with size 1
This error resulted in me having 11 files with different numbers and only being able to generate 142 endpoint files。
907656 677968 856766 685058 792564 833249 715041 786569 814649 816653 622236
In addition, I learned that this project needs to train 3 parts of weights when training its own weights, but I am not sure what f1 value they need to achieve in the end. I don’t seem to have achieved a good result when training TOM weights and endpoint weights. The effect, theoretically what effect can each of them achieve?

Thank you very much for your answer!

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