The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, Effic
The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, Effic
torch.compile and tensor learning-rate support.forward_intermediates (NaFlex dict input) support.weights_only=True, add safe_global for ArgParse.is_causal through for SSL tasks.ParallelScalingBlock (& DiffParallelScalingBlock)timm models but could impact downstream use.dpwee, dwee, dlittle (differential) ViTs with a small boost over previous runs
timm variant of the CSATv2 model at 512x512 & 640x640__init__ into a common method that can be externally called via init_non_persistent_buffers() after meta-device init.timm Muon impl. Appears more competitive vs AdamW with familiar hparams for image tasks.DiffAttention), add corresponding DiffParallelScalingBlock (for ViT), train some wee vits
LsePlus and SimPoolDropBlock2d (also add support to ByobNet based models)nesterov=True) updates if muon not suitable for parameter shape (or excluded via param group flag)adjust_lr_fnns_coefficientstimmlvd_1689m -> lvd1689m to match (same for sat_493m -> sat493m)timm model. ViT support done via the EVA base model w/ a new RotaryEmbeddingDinoV3 to match the DINOv3 specific RoPE impl
set_input_size() method to EVA models, used by OpenCLIP 3.0.0 to allow resizing for timm based encoder models.eva.py) including EVA, EVA02, Meta PE ViT, timm SBB ViT w/ ROPE, and Naver ROPE-ViT can be now loaded in NaFlexViT when use_naflex=True passed at model creation timeeva.py, add RotaryEmbeddingMixed module for mixed mode, weights on HuggingFace Hub| model | img_size | top1 | top5 | param_count |
|---|---|---|---|---|
| vit_large_patch16_rope_mixed_ape_224.naver_in1k | 224 | 84.84 | 97.122 | 304.4 |
| vit_large_patch16_rope_mixed_224.naver_in1k | 224 | 84.828 | 97.116 | 304.2 |
| vit_large_patch16_rope_ape_224.naver_in1k | 224 | 84.65 | 97.154 | 304.37 |
| vit_large_patch16_rope_224.naver_in1k | 224 | 84.648 | 97.122 | 304.17 |
| vit_base_patch16_rope_mixed_ape_224.naver_in1k | 224 | 83.894 | 96.754 | 86.59 |
| vit_base_patch16_rope_mixed_224.naver_in1k | 224 | 83.804 | 96.712 | 86.44 |
| vit_base_patch16_rope_ape_224.naver_in1k | 224 | 83.782 | 96.61 | 86.59 |
| vit_base_patch16_rope_224.naver_in1k | 224 | 83.718 | 96.672 | 86.43 |
| vit_small_patch16_rope_224.naver_in1k | 224 | 81.23 | 95.022 | 21.98 |
| vit_small_patch16_rope_mixed_224.naver_in1k | 224 | 81.216 | 95.022 | 21.99 |
| vit_small_patch16_rope_ape_224.naver_in1k | 224 | 81.004 | 95.016 | 22.06 |
| vit_small_patch16_rope_mixed_ape_224.naver_in1k | 224 | 80.986 | 94.976 | 22.06 |
| Model | Top-1 Acc | Top-5 Acc | Params (M) | Eval Seq Len |
|---|---|---|---|---|
| naflexvit_base_patch16_par_gap.e300_s576_in1k | 83.67 | 96.45 | 86.63 | 576 |
| [naflexvit_base_patch16_parfac_gap.e300_s576_in1k](https://hf.co/timm/naflexvit_base_p |
[BUG] Adopt foreach path takes the first-step check and the clip value from device_state_steps[0], so a param whose gradient arrives late is never initialized and steps by grad / eps
[BUG] `PatchEmbed` returns a view tensor, triggering an FSDP2 warning
AdvProp implementation
[BUG] Training job cannot resume if LR scheduler is Plateau.
[BUG] inference.py expects labeled subfolders in the --data-dir folder
[FEATURE] Adding ISNet as new model
[FEATURE] Add ViT weights: RADIO
[FEATURE] Support for DPT decoder
[FEATURE] 3D model support for volumetric / medical imaging in timm
[FEATURE] Add DeepSpeed / ZeRO support in training script