keras-io / semantic-image-clustering

huggingface.co
Total runs: 10
24-hour runs: 0
7-day runs: -4
30-day runs: -14
Model's Last Updated: July 05 2024

Introduction of semantic-image-clustering

Model Details of semantic-image-clustering

Model description

This is a image clustering model trained after the Semantic Clustering by Adopting Nearest neighbors (SCAN) (Van Gansbeke et al., 2020) algorithm.

The training procedure was done as seen in the example on keras.io by Khalid Salama .

The algorithm consists of two phases:

  1. Self-supervised visual representation learning of images, in which we use the simCLR technique.
  2. Clustering of the learned visual representation vectors to maximize the agreement between the cluster assignments of neighboring vectors.
Intended uses & limitations

The model is intended to show the effective use of self-supervised learning combined with nearest neighbours for (semantic) image clustering.

You can use these clusters to retrieve images of the same class.

Limitations

This model is not supposed to show any superiority to image classification from supervised learning, but as a POC that unsupervised learning is able to cluster similar images together without any labels.

Possible Improvements:

As given by the original author on keras.io, these steps can be taken to improve the accuary further:

  1. increase the number of epochs in the representation learning and the clustering phases;
  2. allow the encoder weights to be tuned during the clustering phase
  3. perform a final fine-tuning step through self-labeling, as described in the original SCAN paper
Training and evaluation data
Training Data

The model was trained using the CIFAR-10 dataset . For training the images were scaled to (32,32,3).

Hyperparameters

For training the following parameters were used:

  • Feature Vector Dimension: 512
  • Projection Units of Head: 128
  • Number of Cluster: 20
  • K-Neighbours: 5

The encoder was not tuned during clustering.

Evaluation
Visualization of highest confidence cluster picks

Visualization of highest confidence cluster picks

Clusters and their respective labels, accuracy and size
Cluster Label Accuracy Size
cluster 0 frog 31.6 % 3582
cluster 1 frog 19.76 % 2348
cluster 2 horse 26.82 % 2983
cluster 3 bird 29.7 % 1532
cluster 4 airplane 39.16 % 3575
cluster 5 ship 22.38 % 2207
cluster 6 automobile 26.41 % 4365
cluster 7 dog 21.09 % 5049
cluster 8 automobile 21.94 % 4093
cluster 9 truck 29.66 % 4639
cluster 10 bird 23.02 % 1455
cluster 11 truck 17.78 % 3937
cluster 12 deer 30.36 % 2635
cluster 13 dog 22.62 % 1950
cluster 14 frog 22.64 % 4391
cluster 15 airplane 26.89 % 2838
cluster 16 ship 34.7 % 2213
cluster 17 ship 17.59 % 1785
cluster 18 cat 16.57 % 1997
cluster 19 deer 27.25 % 2426
Model Plot
View Model Plot

Model Image

Runs of keras-io semantic-image-clustering on huggingface.co

10
Total runs
0
24-hour runs
2
3-day runs
-4
7-day runs
-14
30-day runs

More Information About semantic-image-clustering huggingface.co Model

semantic-image-clustering huggingface.co

semantic-image-clustering huggingface.co is an AI model on huggingface.co that provides semantic-image-clustering's model effect (), which can be used instantly with this keras-io semantic-image-clustering model. huggingface.co supports a free trial of the semantic-image-clustering model, and also provides paid use of the semantic-image-clustering. Support call semantic-image-clustering model through api, including Node.js, Python, http.

semantic-image-clustering huggingface.co Url

https://huggingface.co/keras-io/semantic-image-clustering

keras-io semantic-image-clustering online free

semantic-image-clustering huggingface.co is an online trial and call api platform, which integrates semantic-image-clustering's modeling effects, including api services, and provides a free online trial of semantic-image-clustering, you can try semantic-image-clustering online for free by clicking the link below.

keras-io semantic-image-clustering online free url in huggingface.co:

https://huggingface.co/keras-io/semantic-image-clustering

semantic-image-clustering install

semantic-image-clustering is an open source model from GitHub that offers a free installation service, and any user can find semantic-image-clustering on GitHub to install. At the same time, huggingface.co provides the effect of semantic-image-clustering install, users can directly use semantic-image-clustering installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

semantic-image-clustering install url in huggingface.co:

https://huggingface.co/keras-io/semantic-image-clustering

Url of semantic-image-clustering

semantic-image-clustering huggingface.co Url

Provider of semantic-image-clustering huggingface.co

keras-io
ORGANIZATIONS

Other API from keras-io

huggingface.co

Total runs: 33
Run Growth: 27
Growth Rate: 81.82%
Updated:August 15 2022
huggingface.co

Total runs: 32
Run Growth: 11
Growth Rate: 34.38%
Updated:February 18 2022
huggingface.co

Total runs: 16
Run Growth: -5
Growth Rate: -31.25%
Updated:May 23 2025
huggingface.co

Total runs: 15
Run Growth: 10
Growth Rate: 66.67%
Updated:February 23 2022
huggingface.co

Total runs: 14
Run Growth: 6
Growth Rate: 42.86%
Updated:July 05 2024
huggingface.co

Total runs: 14
Run Growth: 7
Growth Rate: 50.00%
Updated:February 06 2022
huggingface.co

Total runs: 14
Run Growth: -1
Growth Rate: -7.14%
Updated:January 13 2022
huggingface.co

Total runs: 12
Run Growth: -3
Growth Rate: -25.00%
Updated:February 04 2022
huggingface.co

Total runs: 11
Run Growth: 6
Growth Rate: 54.55%
Updated:July 05 2024
huggingface.co

Total runs: 10
Run Growth: -7
Growth Rate: -70.00%
Updated:July 05 2024
huggingface.co

Total runs: 10
Run Growth: -6
Growth Rate: -60.00%
Updated:July 05 2024
huggingface.co

Total runs: 10
Run Growth: -10
Growth Rate: -100.00%
Updated:January 13 2022
huggingface.co

Total runs: 9
Run Growth: -1
Growth Rate: -11.11%
Updated:July 05 2024
huggingface.co

Total runs: 9
Run Growth: 1
Growth Rate: 11.11%
Updated:July 05 2024
huggingface.co

Total runs: 7
Run Growth: 6
Growth Rate: 85.71%
Updated:March 01 2022
huggingface.co

Total runs: 7
Run Growth: -5
Growth Rate: -71.43%
Updated:July 05 2024
huggingface.co

Total runs: 6
Run Growth: -14
Growth Rate: -233.33%
Updated:July 05 2024
huggingface.co

Total runs: 4
Run Growth: -2
Growth Rate: -50.00%
Updated:July 05 2024
huggingface.co

Total runs: 3
Run Growth: -5
Growth Rate: -166.67%
Updated:July 05 2024
huggingface.co

Total runs: 2
Run Growth: -4
Growth Rate: -200.00%
Updated:July 05 2024
huggingface.co

Total runs: 2
Run Growth: 1
Growth Rate: 50.00%
Updated:February 16 2022
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:July 05 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 12 2023