You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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!
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.
The text was updated successfully, but these errors were encountered: