Skip to content

lucadellalib/kmeans-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-means PyTorch

A GPU-compatible PyTorch implementation of K-means, designed for efficient quantization of representations from large self-supervised models.


🛠️️ Installation

From source

First of all, install Python 3.8 or later. Clone or download and extract the repository, navigate to <path-to-repository>, open a terminal and run:

pip install -r requirements

▶️ Quickstart

To run the example script, navigate to <path-to-repository>, open a terminal and run

python kmeans.py

📧 Contact

luca.dellalib@gmail.com