Skip to content

Commit

Permalink
Add cache_dir example
Browse files Browse the repository at this point in the history
  • Loading branch information
turicas authored and rwightman committed Dec 6, 2024
1 parent d1e9a86 commit 9383f28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions timm/models/_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def create_model(
>>> model = create_model('mobilenetv3_large_100', pretrained=True, num_classes=10)
>>> model.num_classes
10
>>> # Create a Dinov2 small model with pretrained weights and save weights in a custom directory.
>>> model = create_model('vit_small_patch14_dinov2.lvd142m', pretrained=True, cache_dir="/data/my-models")
>>> # Data will be stored at `/data/my-models/models--timm--vit_small_patch14_dinov2.lvd142m/`
```
"""
# Parameters that aren't supported by all models or are intended to only override model defaults if set
Expand Down

0 comments on commit 9383f28

Please sign in to comment.