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

Bug: extract_speaker_embeddings.ipynb Tutorial - Visualizing Embeddings [solution included!] #237

Closed
Veronika271 opened this issue Jan 15, 2025 · 1 comment · Fixed by #242
Labels
bug Something isn't working

Comments

@Veronika271
Copy link

Description

There is an error in the first line of the visualizing embeddings cell that makes it crash when you run it, but I've found what you should replace the line with.

Steps to Reproduce

Open the extract_speaker_embeddings.ipynb tutorial and run the cells sequentially. You will get a bug after you run the "Visualizing Embeddings" cell.

Expected Results

I expected it to run to completion.

Actual Results

It crashed at the first line, which is "from senselab.utils.tasks.cosine_similarity import cosine_similarity". The error messages says: "ImportError: cannot import name 'cosine_similarity' from 'senselab.utils.tasks.cosine_similarity' (/usr/local/lib/python3.10/dist-packages/senselab/utils/tasks/cosine_similarity.py)".

Additional Notes

I fixed it by replacing "from senselab.utils.tasks.cosine_similarity import cosine_similarity" with "from senselab.utils.tasks.cosine_similarity import compute_cosine_similarity as cosine_similarity". I think that the issue was that the cosine_similarity module contained a python file called compute_cosine_similarity, but no file called cosine_similarity.

@Veronika271 Veronika271 added the bug Something isn't working label Jan 15, 2025
Copy link

👋 Welcome to Senselab!

Thank you for your interest and contribution. Senselab is a comprehensive Python package designed to process behavioral data, including voice and speech patterns, with a focus on reproducibility and robust methodologies. Your issue will be reviewed soon. Stay tuned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant