ChenhongyiYang / PPAL

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

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

Open shiyuanyu123 opened 7 months ago

shiyuanyu123 commented 7 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?