Skip to content

Incorrect SURFPERCH_SLUG in hub.py #94

@anna-bass

Description

@anna-bass

I'm trying to follow your 01_embed_audio.ipynb, but when I run the notebook with model_choice = 'surfperch', I get the following error:

ValueError: Invalid model handle: google/surfperch/tensorFlow2/TensorFlow2/1/1

After inspecting the source code, I found that this line appears to be the issue:

SURFPERCH_SLUG = 'google/surfperch/tensorFlow2/TensorFlow2/1'

It seems that the correct slug should be google/surfperch/TensorFlow2/1/1.

The workaround I'm currently using is:

configs.model_config.model_config.tfhub_path = "google/surfperch/TensorFlow2/1"
configs.model_config.model_config.tfhub_version = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions