I checked the error "assert len(cluster_i) >= 1", according to my understanding this is because of empty clusters when clustering, I try to assign the cluster center to each cluster first, and then do the clustering, which can ensure that there is at least one image in each cluster, but I don't know if this is the right way to solve it. and I would like to ask if you have a better solution? And if I understand it this way?
I checked the error "assert len(cluster_i) >= 1", according to my understanding this is because of empty clusters when clustering, I try to assign the cluster center to each cluster first, and then do the clustering, which can ensure that there is at least one image in each cluster, but I don't know if this is the right way to solve it. and I would like to ask if you have a better solution? And if I understand it this way?