Giter Site home page Giter Site logo

Comments (5)

micahjon avatar micahjon commented on August 14, 2024 1

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.

hbredin avatar hbredin commented on August 14, 2024 1

Looks like you forgot to reset the PYANNOTE_DATABASE_CONFIG environment variable after restarting the runtime and before importing pyannote.database.

from pyannote-database.

hbredin avatar hbredin commented on August 14, 2024

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.

hbredin avatar hbredin commented on August 14, 2024

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.

micahjon avatar micahjon commented on August 14, 2024

Hey, thanks again! Didn't realizing restarting was a part of the colab workflow.

from pyannote-database.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.