Skip to content
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

[Feature]: how can i load vggish locally? #2712

Open
1 task done
hjqqqq-bot opened this issue Oct 17, 2024 · 1 comment
Open
1 task done

[Feature]: how can i load vggish locally? #2712

hjqqqq-bot opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels
kind/feature Issues related to feature request from users

Comments

@hjqqqq-bot
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is your feature request related to a problem? Please describe.

I want to modify this code to load VGGish from a local path.


audio_vggish_pipeline = (   # pipeline building
            pipe.input('path')
            .map('path', 'frame', ops.audio_decode.ffmpeg())
            .map('frame', 'vecs', ops.audio_embedding.vggish())
            .output('vecs')
        )

Is there any way to do that? I have already tried using model_name and checkpoint_path, but neither worked.

Describe the solution you'd like.

No response

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

@hjqqqq-bot hjqqqq-bot added the kind/feature Issues related to feature request from users label Oct 17, 2024
@junjiejiangjjj
Copy link
Contributor

hi @hjqqqq-bot , you can specify a local model using the weights_path parameter.

audio_vggish_pipeline = (   # pipeline building
            pipe.input('path')
            .map('path', 'frame', ops.audio_decode.ffmpeg())
            .map('frame', 'vecs', ops.audio_embedding.vggish(weights_path="your local weigth"))
            .output('vecs')
        )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Issues related to feature request from users
Projects
None yet
Development

No branches or pull requests

3 participants