How albara-ai/fashion-mnist-ssl works
This is a Fashion-MNIST semi-supervised image-classification experiment, implemented in one Python script. Its main workflow uses unlabeled images to train an autoencoder, extracts frozen encoder features, selects a classifier head using labeled data, then optionally refines it with filtered pseudo-labels before evaluation. The README documents additional workflow details not visible in the sampled code; those relationships are cited to the README rather than presented as inspected implementation.
Main entry points: ssl_fashion_mnist_v6.py Classifier
Components 14
Data preparation
- Data splits
ssl_fashion_mnist_v6.py
Feature learning
- Autoencoder
ssl_fashion_mnist_v6.py - Frozen encoder
ssl_fashion_mnist_v6.py - Feature embeddings
ssl_fashion_mnist_v6.py - Augmented features
ssl_fashion_mnist_v6.py
Classification
- Linear probe
ssl_fashion_mnist_v6.py - Head sweep
ssl_fashion_mnist_v6.py - Classifier
ssl_fashion_mnist_v6.py
Semi-supervised refinement
- MC Dropout
ssl_fashion_mnist_v6.py - Pseudo-label filtering
ssl_fashion_mnist_v6.py - Accuracy guard
ssl_fashion_mnist_v6.py
Evaluation and outputs
- Classification evaluation
ssl_fashion_mnist_v6.py - Plots and reports
ssl_fashion_mnist_v6.py
Other components
- Fashion-MNIST data
Connections 19
- Fashion-MNIST data → Data splits: provides images
README.md - Data splits → Autoencoder: supplies unlabeled split
README.md - Data splits → Frozen encoder: supplies labeled images
README.md - Autoencoder → Frozen encoder: trains and saves
ssl_fashion_mnist_v6.py - Frozen encoder → Feature embeddings: encodes images
ssl_fashion_mnist_v6.py - Frozen encoder → Augmented features: encodes augmented images
ssl_fashion_mnist_v6.py - Feature embeddings → Linear probe: measures feature quality
README.md - Feature embeddings → Head sweep: trains candidate heads
ssl_fashion_mnist_v6.py - Augmented features → Head sweep: tests augmented features
ssl_fashion_mnist_v6.py - Head sweep → Classifier: selects best head
ssl_fashion_mnist_v6.py - Frozen encoder → Classifier: provides frozen features
README.md - Classifier → MC Dropout: supplies predictions
ssl_fashion_mnist_v6.py - MC Dropout → Pseudo-label filtering: scores uncertainty
README.md - Pseudo-label filtering → Classifier: re-trains with weighted labels
ssl_fashion_mnist_v6.py - Classifier → Accuracy guard: checks accuracy
README.md - Accuracy guard → Classifier: restores on regression
README.md - Classifier → Classification evaluation: predicts test classes
ssl_fashion_mnist_v6.py - Classification evaluation → Plots and reports: produces metrics and plots
README.md - MC Dropout → Plots and reports: plots uncertainty
ssl_fashion_mnist_v6.py