We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a832c commit 28c6723Copy full SHA for 28c6723
docs/save_load.rst
@@ -40,6 +40,14 @@ For example:
40
# Alternatively, load the model directly from the Hugging Face Hub
41
model = smp.from_pretrained('username/my-model')
42
43
+Loading pre-trained model with different number of classes for fine-tuning:
44
+
45
+.. code:: python
46
47
+ import segmentation_models_pytorch as smp
48
49
+ model = smp.from_pretrained('<path-or-repo-name>', classes=5, strict=False)
50
51
Saving model Metrics and Dataset Name
52
-------------------------------------
53
0 commit comments