← Open Source
facebookresearch

simsiam

PyTorch implementation of SimSiam https//arxiv.org/abs/2011.10566.

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.24k
Stars
174
Forks
+0
This week
0
Contributors
Created 2021-03-29 · Updated 2026-09-23 · #11026 today

facebookresearch/simsiam is ranked 11,026 with 1,236 stars.

Same-category comparison

facebookresearch/simsiam is ranked 11,026 among these 8 peers; ivan-vasilev/neuralnetworks is ranked 11,027.

Same-category comparison
NameRankMetrics
atpaino/deep-text-corrector11,018
Language:
Python
Stars:
1,237
Forks:
258
Description:
Deep learning models trained to correct input errors in short, message-like text.
openseg-group/openseg.pytorch11,020
Language:
Python
Stars:
1,237
Forks:
141
Description:
The official Pytorch implementation of OCNet, OCRNet, and SegFix.
AGI-Edgerunners/LLM-Adapters11,022
Language:
Python
Stars:
1,236
Forks:
117
Description:
Code for our EMNLP 2023 Paper: "LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Models".
SciML/NeuralPDE.jl11,024
Language:
Julia
Stars:
1,236
Forks:
252
Description:
Physics-Informed Neural Networks (PINN) Solvers of (Partial) Differential Equations for Scientific Machine Learning (SciML) accelerated simulation.
ivan-vasilev/neuralnetworks11,027
Language:
Java
Stars:
1,236
Forks:
345
Description:
java deep learning algorithms and deep neural networks with gpu acceleration.
BR-IDL/PaddleViT11,029
Language:
Python
Stars:
1,235
Forks:
328
Description:
:robot: PaddleViT: State-of-the-art Visual Transformer and MLP Models for PaddlePaddle 2.0+.
jakesnell/prototypical-networks11,031
Language:
Python
Stars:
1,235
Forks:
270
Description:
Code for the NeurIPS 2017 Paper "Prototypical Networks for Few-shot Learning".
jfzhang95/pytorch-video-recognition11,038
Language:
Python
Stars:
1,234
Forks:
251
Description:
PyTorch implemented C3D, R3D, R2Plus1D models for video activity recognition.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
Stars1,236
Forks174
Contributors0
Created date2021-03-29
Updated date2026-09-23
Stars in 1 day0
Stars in 7 days0
Rank11,026
Previous rank10,983
Rank change-43
7-day stars rank12,856
Previous 7-day stars rank12,875
7-day stars rank change19
Total stars rank9,467
Previous total stars rank9,457
Total stars rank change-10
CountryUSA
README summary

SimSiam: Exploring Simple Siamese Representation Learning This is a PyTorch implementation of the SimSiam paper: Preparation Install PyTorch and download the ImageNet dataset following the official PyTorch ImageNet training code. Similar to MoCo, the code release contains minimal modifications for both unsupervised pre-training and linear classification to that code. In addition, install apex for the LARS implementation needed for linear classification. Unsupervised Pre-Training Only **multi-gpu**, **DistributedDataParallel** training is supported; single-gpu or DataParallel training is not supported

. To do unsupervised pre-training of a ResNet-50 model on ImageNet in an 8-gpu machine, run: The script uses all the default hyper-parameters as described in the paper, and uses the default augmentation recipe from MoCo v2. The above command performs pre-training with a non-decaying predictor learning rate for 100 epochs, corresponding to the last row of Table 1 in the paper. Linear Classification With a pre-trained model, to train a supervised linear classifier

on frozen features/weights in an 8-gpu machine, run: The above command uses LARS optimizer and a default batch size of 4096. Models and Logs Our pre-trained ResNet-50 models and logs: pre-train epochs batch size pre-train ckpt pre-train log linear cls. 3 Settings for the above: 8 NVIDIA V100 GPUs, CUDA 10. Transferring to Object Detection Same as MoCo for object detection transfer, please see moco/detection. License This project is under the CC

-BY-NC 4.

Frequently asked questions

How many stars and forks are recorded?

facebookresearch/simsiam has 1,236 stars and 174 forks.

What is the repository rank?

facebookresearch/simsiam is ranked 11,026.

What language and category are recorded?

facebookresearch/simsiam has 1,236 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

facebookresearch/simsiam is compared with ivan-vasilev/neuralnetworks, ranked 11,027 with 1,236 stars.

README

SimSiam: Exploring Simple Siamese Representation Learning

 ![simsiam](https://user-images.githubusercontent.com/2420753/118343499-4c410100-b4de-11eb-9313-d49e65440a7e.png) 

This is a PyTorch implementation of the SimSiam paper:

@Article{chen2020simsiam,
  author  = {Xinlei Chen and Kaiming He},
  title   = {Exploring Simple Siamese Representation Learning},
  journal = {arXiv preprint arXiv:2011.10566},
  year    = {2020},
}

Preparation

Install PyTorch and download the ImageNet dataset following the official PyTorch ImageNet training code. Similar to MoCo, the code release contains minimal modifications for both unsupervised pre-training and linear classification to that code.

In addition, install apex for the LARS implementation needed for linear classification.

Unsupervised Pre-Training

Only multi-gpu, DistributedDataParallel training is supported; single-gpu or DataParallel training is not supported.

To do unsupervised pre-training of a ResNet-50 model on ImageNet in an 8-gpu machine, run:

python main_simsiam.py \
  -a resnet50 \
  --dist-url 'tcp://localhost:10001' --multiprocessing-distributed --world-size 1 --rank 0 \
  --fix-pred-lr \
  [your imagenet-folder with train and val folders]

The script uses all the default hyper-parameters as described in the paper, and uses the default augmentation recipe from MoCo v2.

The above command performs pre-training with a non-decaying predictor learning rate for 100 epochs, corresponding to the last row of Table 1 in the paper.

Linear Classification

With a pre-trained model, to train a supervised linear classifier on frozen features/weights in an 8-gpu machine, run:

python main_lincls.py \
  -a resnet50 \
  --dist-url 'tcp://localhost:10001' --multiprocessing-distributed --world-size 1 --rank 0 \
  --pretrained [your checkpoint path]/checkpoint_0099.pth.tar \
  --lars \
  [your imagenet-folder with train and val folders]

The above command uses LARS optimizer and a default batch size of 4096.

Models and Logs

Our pre-trained ResNet-50 models and logs:

pre-train
epochs

batch
size

pre-train
ckpt

pre-train
log

linear cls.
ckpt

linear cls.
log

top-1 acc.

100

512

link

link

link

link

68.1

100

256

link

link

link

link

68.3

Settings for the above: 8 NVIDIA V100 GPUs, CUDA 10.1/CuDNN 7.6.5, PyTorch 1.7.0.

Transferring to Object Detection

Same as MoCo for object detection transfer, please see moco/detection.

License

This project is under the CC-BY-NC 4.0 license. See LICENSE for details.

Nearby in the ranking
Similar items