Skip to content

Commit 1245b83

Browse files
ruidazengrwightman
authored andcommitted
fix: minor typos in UPGRADING
1 parent 8fd2f48 commit 1245b83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UPGRADING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Upgrading from previous versions
22

3-
I generally try to maintain code interface and especially model weight compability across many `timm` versions. Sometimes there are exceptions.
3+
I generally try to maintain code interface and especially model weight compatibility across many `timm` versions. Sometimes there are exceptions.
44

55
## Checkpoint remapping
66

7-
Pretrained weight remapping is handled by `checkpoint_filter_fn` in a model implementation module. This remaps old pretrained checkpoints to new, and also 3rd party (original) checkpoints to `timm` format if the model was modified when brough into `timm`.
7+
Pretrained weight remapping is handled by `checkpoint_filter_fn` in a model implementation module. This remaps old pretrained checkpoints to new, and also 3rd party (original) checkpoints to `timm` format if the model was modified when brought into `timm`.
88

99
The `checkpoint_filter_fn` is automatically called when loading pretrained weights via `pretrained=True`, but they can be called manually if you call the fn directly with the current model instance and old state dict.
1010

@@ -19,6 +19,6 @@ Many changes were made since the 0.6.x stable releases. They were previewed in 0
1919
* The pretrained_tag is the specific weight variant (different head) for the architecture.
2020
* Using only `architecture` defaults to the first weights in the default_cfgs for that model architecture.
2121
* In adding pretrained tags, many model names that existed to differentiate were renamed to use the tag (ex: `vit_base_patch16_224_in21k` -> `vit_base_patch16_224.augreg_in21k`). There are deprecation mappings for these.
22-
* A number of models had their checkpoints remaped to match architecture changes needed to better support `features_only=True`, there are `checkpoint_filter_fn` methods in any model module that was remapped. These can be passed to `timm.models.load_checkpoint(..., filter_fn=timm.models.swin_transformer_v2.checkpoint_filter_fn)` to remap your existing checkpoint.
22+
* A number of models had their checkpoints remapped to match architecture changes needed to better support `features_only=True`, there are `checkpoint_filter_fn` methods in any model module that was remapped. These can be passed to `timm.models.load_checkpoint(..., filter_fn=timm.models.swin_transformer_v2.checkpoint_filter_fn)` to remap your existing checkpoint.
2323
* The Hugging Face Hub (https://huggingface.co/timm) is now the primary source for `timm` weights. Model cards include link to papers, original source, license.
2424
* Previous 0.6.x can be cloned from [0.6.x](https://github.com/rwightman/pytorch-image-models/tree/0.6.x) branch or installed via pip with version.

0 commit comments

Comments
 (0)