An open API service indexing awesome lists of open source software.

https://github.com/lucadellalib/kmeans-pytorch

A GPU compatible PyTorch implementation of K-means
https://github.com/lucadellalib/kmeans-pytorch

clustering gpu k-means pytorch quantization residual-quantization self-supervised-learning token-extraction

Last synced: 2 months ago
JSON representation

A GPU compatible PyTorch implementation of K-means

Awesome Lists containing this project

README

          

# 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](https://www.python.org).
Clone or download and extract the repository, navigate to ``, open a
terminal and run:

```
pip install -r requirements
```

---------------------------------------------------------------------------------------------------------

## ▶️ Quickstart

To run the example script, navigate to ``, open a terminal and run

```
python kmeans.py
```

---------------------------------------------------------------------------------------------------------

## 📧 Contact

[luca.dellalib@gmail.com](mailto:luca.dellalib@gmail.com)

---------------------------------------------------------------------------------------------------------