Comments (5)
Thanks @hbredin!
I followed your instructions and restarted the Colab runtime. Unfortunately, the next time I run this code, I get a different error, regarding there not being a protocol for the AMI
database:
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/pyannote/database/__init__.py in get_database(database_name, **kwargs)
118 try:
--> 119 database = DATABASES[database_name]
120
KeyError: 'AMI'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
2 frames
<ipython-input-1-3540f768261e> in <module>()
1 # Run some sample code to make sure I understand how this works
2 from pyannote.database import get_protocol
----> 3 protocol = get_protocol('AMI.SpeakerDiarization.MixHeadset')
4 for resource in protocol.train():
5 print(resource["uri"])
/usr/local/lib/python3.6/dist-packages/pyannote/database/__init__.py in get_protocol(name, preprocessors)
157
158 database_name, task_name, protocol_name = name.split(".")
--> 159 database = get_database(database_name)
160 protocol = database.get_protocol(
161 task_name, protocol_name, preprocessors=preprocessors
/usr/local/lib/python3.6/dist-packages/pyannote/database/__init__.py in get_database(database_name, **kwargs)
134 )
135 msg = msg.format(name=database_name)
--> 136 raise ValueError(msg)
137
138 return database(**kwargs)
ValueError: Could not find any protocol for "AMI" database. Please refer to pyannote.database documentation to learn how to define them: https://github.com/pyannote/pyannote-database
It's like it's not finding the AMI protocol, even thought the database.yml
file includes it:
Protocols:
AMI:
SpeakerDiarization:
MixHeadset:
train:
Any idea what's going on? It should be easy to replicate using the colab link above. Thanks again!
from pyannote-database.
Looks like you forgot to reset the PYANNOTE_DATABASE_CONFIG
environment variable after restarting the runtime and before importing pyannote.database
.
from pyannote-database.
For some reason, loader entrypoints are not detected.
Restarting the Google Colab runtime after the installation of pyannote.database
seems to fix the issue.
from pyannote-database.
Oh, and, thanks a lot for setting up this Google Colab -- I really appreciate it.
Much better than the usual "It does not work -- can you fix this, please?" message 👍
from pyannote-database.
Hey, thanks again! Didn't realizing restarting was a part of the colab workflow.
from pyannote-database.
Related Issues (20)
- Add support for Python 3.12
- problem with pyannote HOT 3
- Training the overlap detection : AttributeError: 'PosixPath' object has no attribute 'format' HOT 2
- pyannote-audio sad train fails HOT 3
- Wrapper around various audio dataset libraries HOT 1
- AttributeError: 'PosixPath' object has no attribute 'format' HOT 3
- Bug on database.yml HOT 1
- Error in dataloader : 'PosixPath' object has no attribute 'format' HOT 5
- Multiple preprocessor for same field HOT 5
- Training on Jamendo Corpus HOT 4
- Deprecated plugin system HOT 7
- AttributeError: 'NoneType' object has no attribute 'items' HOT 6
- Add support for SPKR-INFO lines in load_rttm HOT 3
- LABLoader import error HOT 1
- ImportError: cannot import name 'registry' from 'pyannote.database' HOT 3
- Faster RTTMLoader HOT 2
- Speaker tag across rttm files
- Cannot combine several protocols from different databases into one HOT 1
- `LABLoader` raise ValueError("`path` must contain the {uri} placeholder.") even if the placeholder is configured correctly HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyannote-database.