You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/models.md
+7
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,13 @@ We also provide a model factory that can build a task specific model for a downs
34
34
35
35
By passing a list of bands being used to the constructor, we automatically filter out unused bands, and randomly initialize weights for new bands that were not pretrained on.
36
36
37
+
!!! info
38
+
39
+
To pass your own path from where to load the weights with the PrithviModelFactory, you can make use of timm's `pretrained_cfg_overlay`.
40
+
E.g. to pass a local path, you can pass the parameter `backbone_pretrained_cfg_overlay = {"file": "<local_path>"}` to the model factory.
41
+
42
+
Besides `file`, you can also pass `url`, `hf_hub_id`, amongst others. Check timm's documentation for full details.
At this level of abstraction, you can also provide a configuration file (see [LightningCLI](https://lightning.ai/docs/pytorch/stable/cli/lightning_cli.html#lightning-cli)) with all the details of the training. See an example for semantic segmentation below:
107
107
108
+
!!! info
109
+
110
+
To pass your own path from where to load the weights with the PrithviModelFactory, you can make use of timm's `pretrained_cfg_overlay`.
111
+
E.g. to pass a local path, you can add, under model_args:
112
+
113
+
```yaml
114
+
backbone_pretrained_cfg_overlay:
115
+
file: <local_path>
116
+
```
117
+
Besides `file`, you can also pass `url`, `hf_hub_id`, amongst others. Check timm's documentation for full details.
118
+
108
119
```yaml title="Configuration file for a Semantic Segmentation Task"
0 commit comments