Commit
•
71cd592
1
Parent(s):
df1b32b
Rename `segmentation_model` to `model` in README.md documentation (#1)
Browse files- Rename `segmentation_model` to `model` in README.md documentation (abb76b9930d52d369b05aaeabd9f2041cfc92a9c)
Co-authored-by: Constantin Förster <constantinSch@users.noreply.huggingface.co>
README.md
CHANGED
@@ -51,7 +51,7 @@ pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization-3.1")
|
|
51 |
pipeline.to(device)
|
52 |
|
53 |
# replace the segmentation model with your fine-tuned one
|
54 |
-
|
55 |
pipeline._segmentation.model = model.to(device)
|
56 |
```
|
57 |
|
|
|
51 |
pipeline.to(device)
|
52 |
|
53 |
# replace the segmentation model with your fine-tuned one
|
54 |
+
model = segmentation_model.to_pyannote_model()
|
55 |
pipeline._segmentation.model = model.to(device)
|
56 |
```
|
57 |
|