torchaudio 2.4.0__cp311-cp311-macosx_11_0_arm64.whl → 2.5.0__cp311-cp311-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of torchaudio might be problematic. Click here for more details.

Binary file
Binary file
Binary file
Binary file
@@ -1,6 +1,7 @@
1
1
  from dataclasses import dataclass
2
2
 
3
- from torchaudio._internal import load_state_dict_from_url
3
+ import torch
4
+ import torchaudio
4
5
 
5
6
  from torchaudio.models import squim_objective_base, squim_subjective_base, SquimObjective, SquimSubjective
6
7
 
@@ -42,26 +43,16 @@ class SquimObjectiveBundle:
42
43
  _path: str
43
44
  _sample_rate: float
44
45
 
45
- def _get_state_dict(self, dl_kwargs):
46
- url = f"https://download.pytorch.org/torchaudio/models/{self._path}"
47
- dl_kwargs = {} if dl_kwargs is None else dl_kwargs
48
- state_dict = load_state_dict_from_url(url, **dl_kwargs)
49
- return state_dict
50
-
51
- def get_model(self, *, dl_kwargs=None) -> SquimObjective:
46
+ def get_model(self) -> SquimObjective:
52
47
  """Construct the SquimObjective model, and load the pretrained weight.
53
48
 
54
- The weight file is downloaded from the internet and cached with
55
- :func:`torch.hub.load_state_dict_from_url`
56
-
57
- Args:
58
- dl_kwargs (dictionary of keyword arguments): Passed to :func:`torch.hub.load_state_dict_from_url`.
59
-
60
49
  Returns:
61
50
  Variation of :py:class:`~torchaudio.models.SquimObjective`.
62
51
  """
63
52
  model = squim_objective_base()
64
- model.load_state_dict(self._get_state_dict(dl_kwargs))
53
+ path = torchaudio.utils.download_asset(f"models/{self._path}")
54
+ state_dict = torch.load(path, weights_only=True)
55
+ model.load_state_dict(state_dict)
65
56
  model.eval()
66
57
  return model
67
58
 
@@ -128,26 +119,15 @@ class SquimSubjectiveBundle:
128
119
  _path: str
129
120
  _sample_rate: float
130
121
 
131
- def _get_state_dict(self, dl_kwargs):
132
- url = f"https://download.pytorch.org/torchaudio/models/{self._path}"
133
- dl_kwargs = {} if dl_kwargs is None else dl_kwargs
134
- state_dict = load_state_dict_from_url(url, **dl_kwargs)
135
- return state_dict
136
-
137
- def get_model(self, *, dl_kwargs=None) -> SquimSubjective:
122
+ def get_model(self) -> SquimSubjective:
138
123
  """Construct the SquimSubjective model, and load the pretrained weight.
139
-
140
- The weight file is downloaded from the internet and cached with
141
- :func:`torch.hub.load_state_dict_from_url`
142
-
143
- Args:
144
- dl_kwargs (dictionary of keyword arguments): Passed to :func:`torch.hub.load_state_dict_from_url`.
145
-
146
124
  Returns:
147
125
  Variation of :py:class:`~torchaudio.models.SquimObjective`.
148
126
  """
149
127
  model = squim_subjective_base()
150
- model.load_state_dict(self._get_state_dict(dl_kwargs))
128
+ path = torchaudio.utils.download_asset(f"models/{self._path}")
129
+ state_dict = torch.load(path, weights_only=True)
130
+ model.load_state_dict(state_dict)
151
131
  model.eval()
152
132
  return model
153
133
 
torchaudio/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = '2.4.0'
2
- git_version = '69d40773dc4ed86643820c21a8a880e4d074a46e'
1
+ __version__ = '2.5.0'
2
+ git_version = '56bc006d56a0d4960de6a1e0b6340cba4eda05cd'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchaudio
3
- Version: 2.4.0
3
+ Version: 2.5.0
4
4
  Summary: An audio package for PyTorch
5
5
  Home-page: https://github.com/pytorch/audio
6
6
  Author: Soumith Chintala, David Pollack, Sean Naren, Peter Goldsborough, Moto Hira, Caroline Chen, Jeff Hwang, Zhaoheng Ni, Xiaohui Zhang
@@ -24,7 +24,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
24
24
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE
27
- Requires-Dist: torch (==2.4.0)
27
+ Requires-Dist: torch (==2.5.0)
28
28
 
29
29
  torchaudio: an audio library for PyTorch
30
30
  ========================================
@@ -79,7 +79,7 @@ If you find this package useful, please cite as:
79
79
  ```bibtex
80
80
  @article{yang2021torchaudio,
81
81
  title={TorchAudio: Building Blocks for Audio and Speech Processing},
82
- author={Yao-Yuan Yang and Moto Hira and Zhaoheng Ni and Anjali Chourdia and Artyom Astafurov and Caroline Chen and Ching-Feng Yeh and Christian Puhrsch and David Pollack and Dmitriy Genzel and Donny Greenberg and Edward Z. Yang and Jason Lian and Jay Mahadeokar and Jeff Hwang and Ji Chen and Peter Goldsborough and Prabhat Roy and Sean Narenthiran and Shinji Watanabe and Soumith Chintala and Vincent Quenneville-Bélair and Yangyang Shi},
82
+ author={Yao-Yuan Yang and Moto Hira and Zhaoheng Ni and Anjali Chourdia and Artyom Astafurov and Caroline Chen and Ching-Feng Yeh and Christian Puhrsch and David Pollack and Dmitriy Genzel and Donny Greenberg and Edward Z. Yang and Jason Lian and Jay Mahadeokar and Jeff Hwang and Ji Chen and Peter Goldsborough and Prabhat Roy and Sean Narenthiran and Shinji Watanabe and Soumith Chintala and Vincent Quenneville-B��lair and Yangyang Shi},
83
83
  journal={arXiv preprint arXiv:2110.15018},
84
84
  year={2021}
85
85
  }
@@ -1,24 +1,24 @@
1
+ torchaudio-2.5.0.dist-info/RECORD,,
2
+ torchaudio-2.5.0.dist-info/LICENSE,sha256=k6WIYahYzBCOa2uDPgjnbosqZjOeSoAHyKWowf-cQNY,1338
3
+ torchaudio-2.5.0.dist-info/WHEEL,sha256=PF0Mgwtv_oDs_mWYUtLpGhYaIa8jOhCqBxSqdxy2gqE,109
4
+ torchaudio-2.5.0.dist-info/top_level.txt,sha256=GT0MktEbHKoLnvd-6ii7_dhJVvshupOujk840BcHU4U,17
5
+ torchaudio-2.5.0.dist-info/METADATA,sha256=i3S98TlBHgnw49cW7QAEuT2KO7X172UwXprekeOfE-4,6355
1
6
  torio/__init__.py,sha256=aX9s0XAHxHhEXE1akQt74BZ0cMUDgBPhaYHQH1lCbXQ,111
2
7
  torio/io/_streaming_media_decoder.py,sha256=vSylEWAB_JXOW-0E1n0zDM3Q3Vf1jc1-CNpdUSs13XU,34376
3
8
  torio/io/__init__.py,sha256=xz7REkkyfRhAASzVCAfoNruFtAGIx1I--usPAa2tMww,226
4
9
  torio/io/_streaming_media_encoder.py,sha256=rSTYmHdi7RPJ6YPgAyGJhbQvn4mcxLem3nlnr_ophTs,19722
5
10
  torio/utils/__init__.py,sha256=ScHtnontymRDNn9qEIC0neue5mfG82yhB8bwETOb0Z4,56
6
11
  torio/utils/ffmpeg_utils.py,sha256=JsP2ptjQAE4U7Z_CSauQKH_k72wdu6nrBMfNHl9pIXQ,8026
7
- torio/lib/libtorio_ffmpeg5.so,sha256=C48UU5N7un-YMsvdArilgz7DoPc-Jw9ldPmZYg2Z-yU,515360
8
- torio/lib/_torio_ffmpeg4.so,sha256=fcf1jIs5w0xR_FFQ2GVXSiekXVnrQowsfq6MpnZo6Qg,518960
12
+ torio/lib/libtorio_ffmpeg5.so,sha256=2vAf0gIyIhkqq9BOEGFfk41_GSscvTr2Jjhj51Oo5Os,515616
13
+ torio/lib/_torio_ffmpeg4.so,sha256=-T0-WVlTqWBLcgrRthKEGzDbJurPs9T8iLJplH_XNB4,519536
9
14
  torio/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- torio/lib/_torio_ffmpeg5.so,sha256=r11G8HZ8D_yKDwosvM9-Gxs_ggkK7z0bgKv1A90wjZo,518960
11
- torio/lib/libtorio_ffmpeg4.so,sha256=YCbp2rgwjj7TaOj0BV-x1tzFVABOPPcV4om3KlCN6Sc,515360
12
- torio/lib/_torio_ffmpeg6.so,sha256=cQwuDjATQiWdnVOFy1Vd_EJw5WNu8pKh2-4YLnAjRU8,518960
13
- torio/lib/libtorio_ffmpeg6.so,sha256=-ZarKv2MOKsuzfkNRoux30sfGfiToPdr_2SMaex3QFM,515360
15
+ torio/lib/_torio_ffmpeg5.so,sha256=H1N-XaAwmXoLqNckRXFZNVU0SKmWMfkUQUxVE7WS_Zo,519536
16
+ torio/lib/libtorio_ffmpeg4.so,sha256=cHKUY2T-DbOnWVAP02-Cx-JntWKeb7rNSFpFeXBeoGA,515616
17
+ torio/lib/_torio_ffmpeg6.so,sha256=Hw1JRDBjqquRSFbuQHVAYd_OvA62x2gvkC5vmBVSEVw,519536
18
+ torio/lib/libtorio_ffmpeg6.so,sha256=RDM1sxxXvUs9-DV23BcTBwNkqRIm3YPR1h6j6XID-lg,515616
14
19
  torio/_extension/__init__.py,sha256=q5jjeOhSrzqn0WTEwrx61Fr13aCjb7IQCDGsBqAdGEU,313
15
20
  torio/_extension/utils.py,sha256=ktE0L_z-RF1qkpLVGgdG4DEGHa2Zn6uokOAmwC7Evvo,4904
16
- torchaudio-2.4.0.dist-info/RECORD,,
17
- torchaudio-2.4.0.dist-info/LICENSE,sha256=k6WIYahYzBCOa2uDPgjnbosqZjOeSoAHyKWowf-cQNY,1338
18
- torchaudio-2.4.0.dist-info/WHEEL,sha256=fHvRBzKCrQbGWlIL1eIB4x2YIBk9sCn_QC5-FS8Vm74,110
19
- torchaudio-2.4.0.dist-info/top_level.txt,sha256=GT0MktEbHKoLnvd-6ii7_dhJVvshupOujk840BcHU4U,17
20
- torchaudio-2.4.0.dist-info/METADATA,sha256=MRLtyEJp6m5kudj5YIQFZvfBu-i7rZvloNv56gXFljM,6351
21
- torchaudio/version.py,sha256=JUO1bPDj-WIPcr-DwAEpP5gRiwdtsHyJViOL86zXNxQ,79
21
+ torchaudio/version.py,sha256=OAqErR7sj83_w1z5wQ20r9YwFkll8NQIGB8v8_ZJuGg,79
22
22
  torchaudio/kaldi_io.py,sha256=TwS2YgSLlJwOXjNNsHBuXyxhKeKKpptVHLBV7QYZCas,5073
23
23
  torchaudio/__init__.py,sha256=VSnZ6s4e5clAj7f7aCXBZt9amskeXg1j19txAQBQ2Iw,892
24
24
  torchaudio/_internal/__init__.py,sha256=gjU8g9HhVd9hHrHXJM0xOlZL6cT8ktO60MN8RHI6ZbA,241
@@ -52,7 +52,7 @@ torchaudio/io/__init__.py,sha256=8nd6s_xuBh5iVzIvQ-qNlforukZzuCx36DyvCmHK748,297
52
52
  torchaudio/pipelines/_source_separation_pipeline.py,sha256=WxngB1d13H5IVqs4RPqSL53ZGYsJ3tnfCpxgc5FNSOM,4224
53
53
  torchaudio/pipelines/__init__.py,sha256=Xy8NmInKwTcNBHwLTTjHjrfczRLuQq8a67ENt1OTVXM,2745
54
54
  torchaudio/pipelines/rnnt_pipeline.py,sha256=Qy37z7v6d1jLOHd67zbRu21dgL6Fml1rTd7j4Jl1NsM,13749
55
- torchaudio/pipelines/_squim_pipeline.py,sha256=JROOpywuRFl6JnWVMhgqM2eu3REKeXj-_Te5QJzOwoA,7170
55
+ torchaudio/pipelines/_squim_pipeline.py,sha256=eCimTeoqNX8LilIQNGmb8UaRtnLIXa4LNShXFjodcZM,6280
56
56
  torchaudio/pipelines/_wav2vec2/aligner.py,sha256=pIWRgQ-kdYUxtL8bdc0qk9wBjwRrHY1uSWL3L4e2vxs,2709
57
57
  torchaudio/pipelines/_wav2vec2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  torchaudio/pipelines/_wav2vec2/utils.py,sha256=Q8_fWOR2JDnHu0TTRmHzRjI3BOJa0hGIAl0cjtALgsQ,6971
@@ -132,11 +132,11 @@ torchaudio/_backend/soundfile_backend.py,sha256=qJHEEXU1egCkPJ2Y9uJWFvVhW3AqDZ7z
132
132
  torchaudio/transforms/__init__.py,sha256=Tp1o4haiJAV3MRJenmvGXFbmt-RE4qM_pd6U3Ghohqw,1270
133
133
  torchaudio/transforms/_transforms.py,sha256=QHrEsxxxm1bPd5dltPeTcNOsMBu0Ecxa2oe6GIX-nvk,86872
134
134
  torchaudio/transforms/_multi_channel.py,sha256=GZ2rrwFt2KtSG7At7kS9Bqh1KmYYw0HwcUnEjc-AWr8,22221
135
- torchaudio/lib/libtorchaudio.so,sha256=Lhne3nJZ9h9KarDIZHbVmkD1FWEH_WpwdwS5DR5wLmM,701808
135
+ torchaudio/lib/libtorchaudio.so,sha256=GpBjhBU_AfYN-WJ8SBkSEN1E31Pvv4V10V5v0LbNZWs,721808
136
136
  torchaudio/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
137
- torchaudio/lib/_torchaudio.so,sha256=l9LIn07BDRZ2iCuA3nqWr7fcRzAtseD8Axl1_hpJYNE,190976
138
- torchaudio/lib/libtorchaudio_sox.so,sha256=s04TYpM1BfODnerLr0N_i5N_221NtsCLU5VwVvwO2sg,173088
139
- torchaudio/lib/_torchaudio_sox.so,sha256=yV6wKjdFHg8J9oa_8ipfMAQLUjxck6ie5B_8x86oBF8,318768
137
+ torchaudio/lib/_torchaudio.so,sha256=a8luSeJmnnSeDoQnzutRe3hpQfh5MdgxyEfLgnrk8SE,191152
138
+ torchaudio/lib/libtorchaudio_sox.so,sha256=aHmXSk250OdSn1YlpEvxLpPW8JhTgxNTogaczheD9nE,173280
139
+ torchaudio/lib/_torchaudio_sox.so,sha256=-hJ4LzvWS4aPxqkzsuilJcBs7iJxfYE-1yhkqhPlnSM,318944
140
140
  torchaudio/_extension/__init__.py,sha256=lQPB8K7VSxWmtTEiMmF-u7WVq1O10_t5nEghkjCf4Ks,2202
141
141
  torchaudio/_extension/utils.py,sha256=4FTD6xwcSLqVJ3Kmpx5cvJp1oAUKmWwRjwuxpcbrmzw,6258
142
142
  torchaudio/sox_effects/sox_effects.py,sha256=7cHpPFRJ_pZuohHMnX9JIhiVmIJGYntSmgT6QH5GNMA,10981
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-macosx_11_0_arm64
5
5
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file