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

Support: Pytest Squim Issue Locally #225

Open
ibevers opened this issue Dec 18, 2024 · 7 comments
Open

Support: Pytest Squim Issue Locally #225

ibevers opened this issue Dec 18, 2024 · 7 comments
Labels
question Further information is requested

Comments

@ibevers
Copy link
Collaborator

ibevers commented Dec 18, 2024

Issue Description

Screenshot 2024-12-18 at 3 38 53 PM

Environment Details

MacOS, Python3.12

Attempted Solutions

poetry cache clear --all pypi
poetry update

Reproduction Steps

Run poetry run pytest

Additional Notes

No response

@ibevers ibevers added the question Further information is requested label Dec 18, 2024
@ibevers
Copy link
Collaborator Author

ibevers commented Dec 18, 2024

@fabiocat93
Copy link
Collaborator

Thank you @ibevers for bringing up this issue! This was already discussed internally (Slack) yesterday, and maybe you found a solution already. If not, I would recommend trying the following steps to address the problem:

  1. Install with Poetry without cache:
    poetry install --no-cache --with dev

  2. Debug with a smaller test so that you isolate the problematic function:

from torchaudio.pipelines import SQUIM_SUBJECTIVE
model = SQUIM_SUBJECTIVE.get_model()

@ibevers
Copy link
Collaborator Author

ibevers commented Dec 20, 2024

@fabiocat93 Thanks, I will try that:)

@fabiocat93
Copy link
Collaborator

hi @ibevers , is this still an open issue for you? How did your isolated experiment with SQUIM_SUBJECTIVE go?

@ibevers
Copy link
Collaborator Author

ibevers commented Jan 15, 2025

@fabiocat93 doesn't work:

>>> from torchaudio.pipelines import SQUIM_SUBJECTIVE
model = SQUIM_SUBJECTIVE.get_model()>>> model = SQUIM_SUBJECTIVE.get_model()
squim_subjective_bvcc_daps.pth
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/isaacbevers/Library/Caches/pypoetry/virtualenvs/senselab-_dRIpWVy-py3.12/lib/python3.12/site-packages/torchaudio/pipelines/_squim_pipeline.py", line 130, in get_model
    state_dict = torch.load(path, weights_only=True)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/isaacbevers/Library/Caches/pypoetry/virtualenvs/senselab-_dRIpWVy-py3.12/lib/python3.12/site-packages/torch/serialization.py", line 1326, in load
    with _open_zipfile_reader(opened_file) as opened_zipfile:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/isaacbevers/Library/Caches/pypoetry/virtualenvs/senselab-_dRIpWVy-py3.12/lib/python3.12/site-packages/torch/serialization.py", line 671, in __init__
    super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

@ibevers
Copy link
Collaborator Author

ibevers commented Jan 15, 2025

@fabiocat93 Still open

@fabiocat93
Copy link
Collaborator

@fabiocat93 doesn't work:

>>> from torchaudio.pipelines import SQUIM_SUBJECTIVE
model = SQUIM_SUBJECTIVE.get_model()>>> model = SQUIM_SUBJECTIVE.get_model()
squim_subjective_bvcc_daps.pth
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/isaacbevers/Library/Caches/pypoetry/virtualenvs/senselab-_dRIpWVy-py3.12/lib/python3.12/site-packages/torchaudio/pipelines/_squim_pipeline.py", line 130, in get_model
    state_dict = torch.load(path, weights_only=True)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/isaacbevers/Library/Caches/pypoetry/virtualenvs/senselab-_dRIpWVy-py3.12/lib/python3.12/site-packages/torch/serialization.py", line 1326, in load
    with _open_zipfile_reader(opened_file) as opened_zipfile:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/isaacbevers/Library/Caches/pypoetry/virtualenvs/senselab-_dRIpWVy-py3.12/lib/python3.12/site-packages/torch/serialization.py", line 671, in __init__
    super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

This suggests that the issue isn’t with senselab itself, which makes sense since others aren’t encountering it. The focus now is on understanding what might be causing it in your case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants