Skip to content

feat: add SimMIM imagenet benchmark - #2004

Open
lorinczszabolcs wants to merge 1 commit into
lightly-ai:masterfrom
lorinczszabolcs:add-simmim-benchmark
Open

feat: add SimMIM imagenet benchmark#2004
lorinczszabolcs wants to merge 1 commit into
lightly-ai:masterfrom
lorinczszabolcs:add-simmim-benchmark

Conversation

@lorinczszabolcs

Copy link
Copy Markdown
Contributor

Adds a SimMIM benchmark under benchmarks/imagenet/vitb16/ and registers it in main.py, completing the unchecked "SimMIM ImageNet Benchmark" item in #1197.

The benchmark reuses the shared vitb16 utilities (timm ViT-B/16 MaskedVisionTransformerTIMM, OnlineLinearClassifier, AdamW + cosine warmup) and follows the SimMIM paper (https://arxiv.org/abs/2111.09886) settings.

Like the other benchmark contributions, this adds the script only. The full ImageNet run, results row, and released checkpoints are left out from this PR.

Two notes for review:

  • The 2x2 block masking follows the paper in contrast with examples/.../simmim.py, which masks single tokens.
  • The base-lr rewrite to 1e-4 per 256 batch size assumes linear scaling from the paper's 8e-4 at batch 2048.

Add benchmarks/imagenet/vitb16/simmim.py and register it in main.py.
SimMIM encodes all tokens (masked positions replaced by the mask token),
predicts the masked pixel patches with a linear head, and trains with an
L1 loss, reusing the shared vitb16 harness (timm ViT-B/16,
OnlineLinearClassifier, AdamW + cosine warmup). Script only; the full
ImageNet run and results are left to the maintainers' cluster. Addresses
the unchecked SimMIM item in lightly-ai#1197.
@lorinczszabolcs

Copy link
Copy Markdown
Contributor Author

This is an older method, so feel free to ignore it if the benchmark gaps for these models no longer matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant