-
-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot instantiate parameters on finetuned model #1694
Comments
Please update the MRE to also take care of installing dependencies. |
I haven't investigated it yet, I don't really understand where it can come from, but I encountered the problem recently and adding back the segmentation threshold fixed it (even though I'm using a powerset multiclass model). PIPELINE_PARAMS = {
"clustering": {
"method": "centroid",
"min_cluster_size": 15,
"threshold": 0.6285824248662424,
},
"segmentation": {
"min_duration_off": 0.0,
"threshold": 0.5,
},
} |
Alright I think the problem is simply that the author of the issue and myself actually use multilabel models :) So of course the segmentation threshold is needed. @Ashh-Z either add the segmentation threshold pipeline parameter if indeed you want to use multilabel, or add |
Thank you for your reply. I was referring to the following tutorial : |
If you used the same model as in your issue ( |
Tested versions
System information
linux - pyannote 3.1
Issue description
Unable to instantiate parameters on trained pipeline
Code for fine tuning :
Running the model :
RuntimeError Traceback (most recent call last)
Cell In[34], line 37
34 # pre_save = os.path.join(pre,f'{ uri }.rttm')
36 print('getting output')
---> 37 out_adapted = pipeline_adapted(file)
38 print('got it')
39 print(f"writting fine tune rttm for {uri}")
File ~/anaconda3/envs/env2/lib/python3.10/site-packages/pyannote/audio/core/pipeline.py:304, in Pipeline.call(self, file, **kwargs)
302 default_parameters = self.default_parameters()
303 except NotImplementedError:
--> 304 raise RuntimeError(
305 "A pipeline must be instantiated with
pipeline.instantiate(parameters)
before it can be applied."306 )
308 try:
309 self.instantiate(default_parameters)
RuntimeError: A pipeline must be instantiated with
pipeline.instantiate(parameters)
before it can be applied.Minimal reproduction example (MRE)
https://colab.research.google.com/drive/1PECWh2shDzR0bGo_nbUz3o3kG2tie0_F?usp=sharing
The text was updated successfully, but these errors were encountered: