mirror of
https://github.com/pyannote/pyannote-audio.git
synced 2026-11-20 13:07:51 +09:00
BREAKING: fix cache_dir support, rename use_auth_token to token, and other changes
This commit is contained in:
1 parent
ea1ad3429b
commit
2dba593bc5
21 files changed
+233
-472
No files matched your search
@@ -197,7 +197,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from pyannote.audio import Pipeline\n",
|
||||
"pretrained_pipeline = Pipeline.from_pretrained(\"pyannote/speaker-diarization\", use_auth_token=True) "
|
||||
"pretrained_pipeline = Pipeline.from_pretrained(\"pyannote/speaker-diarization\", token=True) "
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -312,7 +312,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from pyannote.audio import Model\n",
|
||||
"model = Model.from_pretrained(\"pyannote/segmentation\", use_auth_token=True)"
|
||||
"model = Model.from_pretrained(\"pyannote/segmentation\", token=True)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -333,7 +333,7 @@
|
||||
"source": [
|
||||
"from pyannote.audio import Pipeline\n",
|
||||
"pipeline = Pipeline.from_pretrained(\n",
|
||||
" \"pyannote/speech-separation-ami-1.0\", use_auth_token=True)\n",
|
||||
" \"pyannote/speech-separation-ami-1.0\", token=True)\n",
|
||||
"\n",
|
||||
"# you can safely ignore that various warnings below."
|
||||
]
|
||||
@@ -961,7 +961,7 @@
|
||||
"from pyannote.audio.core.model import Model\n",
|
||||
"\n",
|
||||
"# apply totatonet on the first five seconds\n",
|
||||
"totatonet = Model.from_pretrained(\"pyannote/separation-ami-1.0\", use_auth_token=True)\n",
|
||||
"totatonet = Model.from_pretrained(\"pyannote/separation-ami-1.0\", token=True)\n",
|
||||
"totatonet.to(device)\n",
|
||||
"\n",
|
||||
"cropped_mixture = mixture[:, :sample_rate * 5].unsqueeze(0)\n",
|
||||
|
||||
@@ -413,7 +413,7 @@
|
||||
"source": [
|
||||
"# load pretrained pipeline\n",
|
||||
"from pyannote.audio import Pipeline\n",
|
||||
"pipeline = Pipeline.from_pretrained('pyannote/speaker-diarization-3.1', use_auth_token=True)\n",
|
||||
"pipeline = Pipeline.from_pretrained('pyannote/speaker-diarization-3.1', token=True)\n",
|
||||
"\n",
|
||||
"# send pipeline to GPU (when available)\n",
|
||||
"import torch\n",
|
||||
|
||||
@@ -258,7 +258,7 @@
|
||||
"source": [
|
||||
"from pyannote.audio.core.model import Model\n",
|
||||
"\n",
|
||||
"pretrained_model = Model.from_pretrained(\"pyannote/segmentation-3.0\", use_auth_token=True)\n",
|
||||
"pretrained_model = Model.from_pretrained(\"pyannote/segmentation-3.0\", token=True)\n",
|
||||
"# we assign the OSD task to the model\n",
|
||||
"pretrained_model.task = osd"
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user