Run K-Means clustering on embeddings
mainPerform K-Means clustering on the embeddings generated in step 1. You must first modify the configuration file located at configs/openclip/clustering_configs.yaml.
You can run this via the CLI using submitit for job submission, or directly via the compute_centroids Python function.
# Via CLI
python compute_centroids.py --confg-file "/configs/openclip/clustering_configs.yaml" \
--partition <partition> \
--ngpus 1 \
--cpus-per-task 10 \
--timeout 300