ChenhongyiYang / PPAL

[CVPR 2024] Plug and Play Active Learning for Object Detection
Apache License 2.0
68 stars 8 forks source link

"assert len(cluster_i) >= 1" #12

Open shiyuanyu123 opened 3 months ago

shiyuanyu123 commented 3 months ago

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?