Update README.md
Browse files
README.md
CHANGED
|
@@ -21,14 +21,86 @@ This repository contains the **ImageNet-100 SimCLR ResNet-18 checkpoint** traine
|
|
| 21 |
|
| 22 |
**Diaz, D. M., & Henderson, M. M. (2026). _Eccentricity-Constrained CNN Training Reveals Adaptive Information Coding Around the Visual Field._ Proceedings of the 9th Conference on Cognitive Computational Neuroscience.**
|
| 23 |
|
| 24 |
-
**DOI:**
|
| 25 |
-
**arXiv:**
|
| 26 |
**Contributed Talk:** [CCN 2026 presentation on YouTube](https://www.youtube.com/watch?v=Lb4S3FWqd2M&t=2545s)
|
| 27 |
|
| 28 |
-
The model was pretrained using **SimCLR with a ResNet-18 backbone** and served as one of the non-egocentric reference models in the associated study. It was
|
| 29 |
|
| 30 |
Training was implemented using the [**Lightly** self-supervised learning framework](https://docs.lightly.ai/self-supervised-learning/index.html). The training images were obtained from the [`clane9/imagenet-100`](https://huggingface.co/datasets/clane9/imagenet-100) dataset on Hugging Face.
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
### Comparative Evaluation Results
|
| 33 |
|
| 34 |
The table below reproduces the summary metrics reported in the associated paper across all VEDB-trained conditions and **reference models**. **Rows corresponding to this repository's ImageNet-100 checkpoint are bolded.**
|
|
@@ -61,13 +133,32 @@ The table below reproduces the summary metrics reported in the associated paper
|
|
| 61 |
| **Places365** | **ImageNet-100** | **3.9207** | **24.99** | **51.21** | **23.32** |
|
| 62 |
| Places365 | ImageNet-1K | 3.6264 | 30.17 | 58.46 | 28.36 |
|
| 63 |
|
| 64 |
-
**Note:** SimCLR Top-1 is computed from the self-supervised
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
## Related Models
|
| 69 |
|
| 70 |
-
This
|
| 71 |
|
| 72 |
- [VEDB SimCLR ResNet-18 β Baseline](https://huggingface.co/DM-Diaz/VEDB-SimCLR-ResNet18-Baseline)
|
| 73 |
- [VEDB SimCLR ResNet-18 β Fovea-Gaze](https://huggingface.co/DM-Diaz/VEDB-SimCLR-ResNet18-Fovea-Gaze)
|
|
@@ -76,4 +167,18 @@ This repository is associated with the **[Eccentricity-Constrained SimCLR Models
|
|
| 76 |
- [VEDB NSD ResNet-18 β Encoding Models](https://huggingface.co/DM-Diaz/VEDB-NSD-ResNet18-Encoding-Models)
|
| 77 |
- [SimCLR ResNet-18 β ImageNet-1K](https://huggingface.co/DM-Diaz/SimCLR-ResNet18-ImageNet1K)
|
| 78 |
- [SimCLR ResNet-18 β ImageNet-100](https://huggingface.co/DM-Diaz/SimCLR-ResNet18-ImageNet100)
|
| 79 |
-
- [SimCLR ResNet-18 β STL-10](https://github.com/Spijkervet/SimCLR) *(external pretrained reference model; checkpoint provided by Spijkervet/SimCLR and not redistributed by this project)*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
**Diaz, D. M., & Henderson, M. M. (2026). _Eccentricity-Constrained CNN Training Reveals Adaptive Information Coding Around the Visual Field._ Proceedings of the 9th Conference on Cognitive Computational Neuroscience.**
|
| 23 |
|
| 24 |
+
**DOI:** [10.32470/0416gfsq](https://doi.org/10.32470/0416gfsq)<br>
|
| 25 |
+
**arXiv:** [2607.19316](https://arxiv.org/abs/2607.19316)<br>
|
| 26 |
**Contributed Talk:** [CCN 2026 presentation on YouTube](https://www.youtube.com/watch?v=Lb4S3FWqd2M&t=2545s)
|
| 27 |
|
| 28 |
+
The model was pretrained using **SimCLR with a ResNet-18 backbone** and served as one of the non-egocentric reference models in the associated study. It was evaluated alongside models pretrained on ImageNet-1K and STL-10 as comparison models for representations learned from naturalistic egocentric visual experience.
|
| 29 |
|
| 30 |
Training was implemented using the [**Lightly** self-supervised learning framework](https://docs.lightly.ai/self-supervised-learning/index.html). The training images were obtained from the [`clane9/imagenet-100`](https://huggingface.co/datasets/clane9/imagenet-100) dataset on Hugging Face.
|
| 31 |
|
| 32 |
+
## Model Architecture
|
| 33 |
+
|
| 34 |
+
The model uses a standard **ResNet-18** encoder with the classification head removed and a SimCLR projection head attached during self-supervised pretraining.
|
| 35 |
+
|
| 36 |
+
| Component | Configuration |
|
| 37 |
+
| --- | --- |
|
| 38 |
+
| Backbone | ResNet-18 |
|
| 39 |
+
| Backbone representation | 512 dimensions |
|
| 40 |
+
| Projection head | Lightly `SimCLRProjectionHead` |
|
| 41 |
+
| Projection dimensions | `512 β 512 β 128` |
|
| 42 |
+
| Projection output | 128 dimensions |
|
| 43 |
+
| SSL objective | NT-Xent |
|
| 44 |
+
| Temperature | `0.1` |
|
| 45 |
+
|
| 46 |
+
The released checkpoint contains both the ResNet-18 backbone and the SimCLR projection head. For downstream applications, the **512-dimensional backbone representation** can be extracted independently of the projection head.
|
| 47 |
+
|
| 48 |
+
## Training Configuration
|
| 49 |
+
|
| 50 |
+
| Parameter | Value |
|
| 51 |
+
| --- | --- |
|
| 52 |
+
| Dataset | ImageNet-100 |
|
| 53 |
+
| Dataset source | `clane9/imagenet-100` |
|
| 54 |
+
| Number of classes | 100 |
|
| 55 |
+
| Epochs | 120 |
|
| 56 |
+
| Batch size | 64 |
|
| 57 |
+
| Input resolution | `224 Γ 224` |
|
| 58 |
+
| Optimizer | LARS |
|
| 59 |
+
| Initial learning rate | `0.075` |
|
| 60 |
+
| Momentum | `0.9` |
|
| 61 |
+
| Weight decay | `1e-6` |
|
| 62 |
+
| LR schedule | Cosine warmup |
|
| 63 |
+
| Warmup | 10 epochs |
|
| 64 |
+
| Precision | 16-bit mixed precision |
|
| 65 |
+
| Distributed training | No |
|
| 66 |
+
|
| 67 |
+
The learning rate was linearly scaled from a base learning rate of `0.3` according to batch size:
|
| 68 |
+
|
| 69 |
+
`0.3 Γ (64 / 256) = 0.075`
|
| 70 |
+
|
| 71 |
+
## Training Data
|
| 72 |
+
|
| 73 |
+
Training data were obtained from the Hugging Face dataset:
|
| 74 |
+
|
| 75 |
+
[`clane9/imagenet-100`](https://huggingface.co/datasets/clane9/imagenet-100)
|
| 76 |
+
|
| 77 |
+
The dataset was downloaded locally and organized into training and validation directories. The training split was used for self-supervised representation learning.
|
| 78 |
+
|
| 79 |
+
The dataset itself is **not redistributed through this repository** and remains subject to its original access conditions and terms.
|
| 80 |
+
|
| 81 |
+
## Checkpoint
|
| 82 |
+
|
| 83 |
+
**File:** `checkpoint_120-resnet18-simclr-imagenet100.ckpt`
|
| 84 |
+
|
| 85 |
+
The released file is a **full PyTorch Lightning checkpoint**, rather than a backbone-only state dictionary.
|
| 86 |
+
|
| 87 |
+
Checkpoint inspection confirmed:
|
| 88 |
+
|
| 89 |
+
| Property | Value |
|
| 90 |
+
| --- | --- |
|
| 91 |
+
| PyTorch Lightning version recorded | `2.6.1` |
|
| 92 |
+
| Stored epoch | `119` |
|
| 93 |
+
| Training epochs completed | 120 |
|
| 94 |
+
| Global step | `237,480` |
|
| 95 |
+
| State-dict entries | 132 |
|
| 96 |
+
| Backbone output | 512 dimensions |
|
| 97 |
+
| Projection output | 128 dimensions |
|
| 98 |
+
| Strict architecture loading | Successful |
|
| 99 |
+
|
| 100 |
+
The stored epoch is zero-indexed, so `epoch = 119` corresponds to the completion of epoch 120.
|
| 101 |
+
|
| 102 |
+
The checkpoint also contains optimizer, learning-rate scheduler, training-loop, callback, and mixed-precision state in addition to the model parameters.
|
| 103 |
+
|
| 104 |
### Comparative Evaluation Results
|
| 105 |
|
| 106 |
The table below reproduces the summary metrics reported in the associated paper across all VEDB-trained conditions and **reference models**. **Rows corresponding to this repository's ImageNet-100 checkpoint are bolded.**
|
|
|
|
| 133 |
| **Places365** | **ImageNet-100** | **3.9207** | **24.99** | **51.21** | **23.32** |
|
| 134 |
| Places365 | ImageNet-1K | 3.6264 | 30.17 | 58.46 | 28.36 |
|
| 135 |
|
| 136 |
+
**Note:** SimCLR Top-1 is computed from the self-supervised pretraining evaluation and is not directly comparable to downstream supervised classification accuracy. For downstream tasks, the pretrained ResNet-18 backbone was **frozen** and only a linear classifier was trained; the backbone weights were **not fine-tuned**. Classifier checkpoints were selected by best validation Macro-F1. In-domain Top-1 accuracy is omitted because label imbalance across VEDB frame categories can make accuracy misleading; Macro-F1 is reported as the primary class-balanced metric. STL-10, ImageNet-100, and ImageNet-1K are treated as out-of-domain reference models because they were not pretrained on VEDB.
|
| 137 |
+
|
| 138 |
+
## Intended Use
|
| 139 |
+
|
| 140 |
+
This checkpoint is provided for research and downstream applications involving self-supervised visual representations, including:
|
| 141 |
+
|
| 142 |
+
- reproducing the reference-model analyses reported in Diaz and Henderson (2026),
|
| 143 |
+
- extracting ResNet-18 representations for comparison with the VEDB-pretrained models,
|
| 144 |
+
- reproducing the associated NSD voxelwise encoding analyses,
|
| 145 |
+
- linear-probe or fine-tuned image classification,
|
| 146 |
+
- transfer learning to other visual recognition tasks, and
|
| 147 |
+
- representation-learning and visual-neuroscience research.
|
| 148 |
|
| 149 |
+
The released checkpoint contains a self-supervised ResNet-18 encoder and SimCLR projection head rather than a trained classification head. For image classification, users can attach and train an appropriate classifier on the learned backbone representations or fine-tune the encoder for the target task.
|
| 150 |
+
|
| 151 |
+
## Limitations
|
| 152 |
+
|
| 153 |
+
The checkpoint does not contain a trained ImageNet-100 classification head. Classification or other supervised applications therefore require an additional prediction head, linear probe, or model fine-tuning.
|
| 154 |
+
|
| 155 |
+
The exact installed version of Lightly used during training was not stored in the checkpoint. The PyTorch Lightning checkpoint metadata records version `2.6.1`.
|
| 156 |
+
|
| 157 |
+
Exact reproduction of the analyses reported in the associated study also requires the corresponding preprocessing, feature-extraction, linear-probe, and NSD encoding-model procedures.
|
| 158 |
|
| 159 |
## Related Models
|
| 160 |
|
| 161 |
+
This model was used as a non-egocentric reference model in the study associated with the **[Eccentricity-Constrained SimCLR Models (VEDB)](https://hf.co/collections/DM-Diaz/eccentricity-constrained-simclr-models-vedb)** collection.
|
| 162 |
|
| 163 |
- [VEDB SimCLR ResNet-18 β Baseline](https://huggingface.co/DM-Diaz/VEDB-SimCLR-ResNet18-Baseline)
|
| 164 |
- [VEDB SimCLR ResNet-18 β Fovea-Gaze](https://huggingface.co/DM-Diaz/VEDB-SimCLR-ResNet18-Fovea-Gaze)
|
|
|
|
| 167 |
- [VEDB NSD ResNet-18 β Encoding Models](https://huggingface.co/DM-Diaz/VEDB-NSD-ResNet18-Encoding-Models)
|
| 168 |
- [SimCLR ResNet-18 β ImageNet-1K](https://huggingface.co/DM-Diaz/SimCLR-ResNet18-ImageNet1K)
|
| 169 |
- [SimCLR ResNet-18 β ImageNet-100](https://huggingface.co/DM-Diaz/SimCLR-ResNet18-ImageNet100)
|
| 170 |
+
- [SimCLR ResNet-18 β STL-10](https://github.com/Spijkervet/SimCLR) *(external pretrained reference model; checkpoint provided by Spijkervet/SimCLR and not redistributed by this project)*
|
| 171 |
+
|
| 172 |
+
## Citation
|
| 173 |
+
|
| 174 |
+
If you use this checkpoint or representations derived from it in academic work, please cite the associated study:
|
| 175 |
+
|
| 176 |
+
```bibtex
|
| 177 |
+
@inproceedings{diaz2026eccentricity,
|
| 178 |
+
author = {Diaz, Dylan M. and Henderson, Margaret M.},
|
| 179 |
+
title = {Eccentricity-Constrained CNN Training Reveals Adaptive Information Coding Around the Visual Field},
|
| 180 |
+
booktitle = {Proceedings of the 9th Conference on Cognitive Computational Neuroscience},
|
| 181 |
+
address = {New York, NY, USA},
|
| 182 |
+
year = {2026},
|
| 183 |
+
doi = {10.32470/0416gfsq}
|
| 184 |
+
}
|