save notebook outputs
Browse files- save_model.ipynb +14 -7
- test_DAC.ipynb +23 -22
save_model.ipynb
CHANGED
|
@@ -110,10 +110,10 @@
|
|
| 110 |
"text": [
|
| 111 |
"C:\\Users\\dslee\\AppData\\Roaming\\Python\\Python38\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
| 112 |
" from .autonotebook import tqdm as notebook_tqdm\n",
|
| 113 |
-
"c:\\Users\\dslee\\anaconda3\\envs\\sound_effect_variation_generation\\lib\\site-packages\\huggingface_hub\\file_download.py:159: UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\\Users\\dslee\\.cache\\huggingface\\hub\\models--hance-ai--descript-audio-codec-
|
| 114 |
"To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to see activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development\n",
|
| 115 |
" warnings.warn(message)\n",
|
| 116 |
-
"A new version of the following files was downloaded from https://huggingface.co/hance-ai/descript-audio-codec-
|
| 117 |
"- model.py\n",
|
| 118 |
". Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.\n",
|
| 119 |
"C:\\Users\\dslee\\AppData\\Roaming\\Python\\Python38\\site-packages\\audiotools\\ml\\layers\\base.py:172: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
|
@@ -132,15 +132,15 @@
|
|
| 132 |
},
|
| 133 |
{
|
| 134 |
"cell_type": "code",
|
| 135 |
-
"execution_count":
|
| 136 |
"metadata": {},
|
| 137 |
"outputs": [
|
| 138 |
{
|
| 139 |
"name": "stdout",
|
| 140 |
"output_type": "stream",
|
| 141 |
"text": [
|
| 142 |
-
"zq.shape: torch.Size([1, 1024,
|
| 143 |
-
"s.shape: torch.Size([1,
|
| 144 |
]
|
| 145 |
}
|
| 146 |
],
|
|
@@ -157,14 +157,14 @@
|
|
| 157 |
},
|
| 158 |
{
|
| 159 |
"cell_type": "code",
|
| 160 |
-
"execution_count":
|
| 161 |
"metadata": {},
|
| 162 |
"outputs": [
|
| 163 |
{
|
| 164 |
"name": "stdout",
|
| 165 |
"output_type": "stream",
|
| 166 |
"text": [
|
| 167 |
-
"waveform.shape: torch.Size([1, 1,
|
| 168 |
]
|
| 169 |
}
|
| 170 |
],
|
|
@@ -173,6 +173,13 @@
|
|
| 173 |
"waveform = model.decode(zq=zq)\n",
|
| 174 |
"print('waveform.shape:', waveform.shape)"
|
| 175 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
}
|
| 177 |
],
|
| 178 |
"metadata": {
|
|
|
|
| 110 |
"text": [
|
| 111 |
"C:\\Users\\dslee\\AppData\\Roaming\\Python\\Python38\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
| 112 |
" from .autonotebook import tqdm as notebook_tqdm\n",
|
| 113 |
+
"c:\\Users\\dslee\\anaconda3\\envs\\sound_effect_variation_generation\\lib\\site-packages\\huggingface_hub\\file_download.py:159: UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\\Users\\dslee\\.cache\\huggingface\\hub\\models--hance-ai--descript-audio-codec-24khz. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the `HF_HUB_DISABLE_SYMLINKS_WARNING` environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations.\n",
|
| 114 |
"To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to see activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development\n",
|
| 115 |
" warnings.warn(message)\n",
|
| 116 |
+
"A new version of the following files was downloaded from https://huggingface.co/hance-ai/descript-audio-codec-24khz:\n",
|
| 117 |
"- model.py\n",
|
| 118 |
". Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.\n",
|
| 119 |
"C:\\Users\\dslee\\AppData\\Roaming\\Python\\Python38\\site-packages\\audiotools\\ml\\layers\\base.py:172: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
|
|
|
| 132 |
},
|
| 133 |
{
|
| 134 |
"cell_type": "code",
|
| 135 |
+
"execution_count": 2,
|
| 136 |
"metadata": {},
|
| 137 |
"outputs": [
|
| 138 |
{
|
| 139 |
"name": "stdout",
|
| 140 |
"output_type": "stream",
|
| 141 |
"text": [
|
| 142 |
+
"zq.shape: torch.Size([1, 1024, 750])\n",
|
| 143 |
+
"s.shape: torch.Size([1, 32, 750])\n"
|
| 144 |
]
|
| 145 |
}
|
| 146 |
],
|
|
|
|
| 157 |
},
|
| 158 |
{
|
| 159 |
"cell_type": "code",
|
| 160 |
+
"execution_count": 3,
|
| 161 |
"metadata": {},
|
| 162 |
"outputs": [
|
| 163 |
{
|
| 164 |
"name": "stdout",
|
| 165 |
"output_type": "stream",
|
| 166 |
"text": [
|
| 167 |
+
"waveform.shape: torch.Size([1, 1, 239904])\n"
|
| 168 |
]
|
| 169 |
}
|
| 170 |
],
|
|
|
|
| 173 |
"waveform = model.decode(zq=zq)\n",
|
| 174 |
"print('waveform.shape:', waveform.shape)"
|
| 175 |
]
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"cell_type": "code",
|
| 179 |
+
"execution_count": null,
|
| 180 |
+
"metadata": {},
|
| 181 |
+
"outputs": [],
|
| 182 |
+
"source": []
|
| 183 |
}
|
| 184 |
],
|
| 185 |
"metadata": {
|
test_DAC.ipynb
CHANGED
|
@@ -9,9 +9,18 @@
|
|
| 9 |
},
|
| 10 |
{
|
| 11 |
"cell_type": "code",
|
| 12 |
-
"execution_count":
|
| 13 |
"metadata": {},
|
| 14 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"source": [
|
| 16 |
"import os\n",
|
| 17 |
"from pathlib import Path\n",
|
|
@@ -21,7 +30,7 @@
|
|
| 21 |
},
|
| 22 |
{
|
| 23 |
"cell_type": "code",
|
| 24 |
-
"execution_count":
|
| 25 |
"metadata": {},
|
| 26 |
"outputs": [],
|
| 27 |
"source": [
|
|
@@ -33,7 +42,7 @@
|
|
| 33 |
},
|
| 34 |
{
|
| 35 |
"cell_type": "code",
|
| 36 |
-
"execution_count":
|
| 37 |
"metadata": {},
|
| 38 |
"outputs": [
|
| 39 |
{
|
|
@@ -55,15 +64,15 @@
|
|
| 55 |
},
|
| 56 |
{
|
| 57 |
"cell_type": "code",
|
| 58 |
-
"execution_count":
|
| 59 |
"metadata": {},
|
| 60 |
"outputs": [
|
| 61 |
{
|
| 62 |
"name": "stdout",
|
| 63 |
"output_type": "stream",
|
| 64 |
"text": [
|
| 65 |
-
"zq.shape: torch.Size([1, 1024,
|
| 66 |
-
"s.shape: torch.Size([1,
|
| 67 |
]
|
| 68 |
}
|
| 69 |
],
|
|
@@ -76,22 +85,14 @@
|
|
| 76 |
},
|
| 77 |
{
|
| 78 |
"cell_type": "code",
|
| 79 |
-
"execution_count":
|
| 80 |
"metadata": {},
|
| 81 |
"outputs": [
|
| 82 |
{
|
| 83 |
"name": "stdout",
|
| 84 |
"output_type": "stream",
|
| 85 |
"text": [
|
| 86 |
-
"waveform.shape: torch.Size([1, 1,
|
| 87 |
-
"waveform.shape: torch.Size([1, 1, 441344])\n",
|
| 88 |
-
"waveform.shape: torch.Size([1, 1, 441344])\n",
|
| 89 |
-
"waveform.shape: torch.Size([1, 1, 441344])\n",
|
| 90 |
-
"waveform.shape: torch.Size([1, 1, 441344])\n",
|
| 91 |
-
"waveform.shape: torch.Size([1, 1, 441344])\n",
|
| 92 |
-
"waveform.shape: torch.Size([1, 1, 441344])\n",
|
| 93 |
-
"waveform.shape: torch.Size([1, 1, 441344])\n",
|
| 94 |
-
"15.4 s ± 142 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
|
| 95 |
]
|
| 96 |
}
|
| 97 |
],
|
|
@@ -103,14 +104,14 @@
|
|
| 103 |
},
|
| 104 |
{
|
| 105 |
"cell_type": "code",
|
| 106 |
-
"execution_count":
|
| 107 |
"metadata": {},
|
| 108 |
"outputs": [
|
| 109 |
{
|
| 110 |
"name": "stdout",
|
| 111 |
"output_type": "stream",
|
| 112 |
"text": [
|
| 113 |
-
"waveform.shape: torch.Size([1, 1,
|
| 114 |
]
|
| 115 |
}
|
| 116 |
],
|
|
@@ -122,7 +123,7 @@
|
|
| 122 |
},
|
| 123 |
{
|
| 124 |
"cell_type": "code",
|
| 125 |
-
"execution_count":
|
| 126 |
"metadata": {},
|
| 127 |
"outputs": [],
|
| 128 |
"source": [
|
|
@@ -132,14 +133,14 @@
|
|
| 132 |
},
|
| 133 |
{
|
| 134 |
"cell_type": "code",
|
| 135 |
-
"execution_count":
|
| 136 |
"metadata": {},
|
| 137 |
"outputs": [
|
| 138 |
{
|
| 139 |
"name": "stderr",
|
| 140 |
"output_type": "stream",
|
| 141 |
"text": [
|
| 142 |
-
"d:\\projects\\descript-audio-codec\\model.py:209: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 143 |
" return torch.load(fname)\n"
|
| 144 |
]
|
| 145 |
}
|
|
|
|
| 9 |
},
|
| 10 |
{
|
| 11 |
"cell_type": "code",
|
| 12 |
+
"execution_count": 1,
|
| 13 |
"metadata": {},
|
| 14 |
+
"outputs": [
|
| 15 |
+
{
|
| 16 |
+
"name": "stderr",
|
| 17 |
+
"output_type": "stream",
|
| 18 |
+
"text": [
|
| 19 |
+
"C:\\Users\\dslee\\AppData\\Roaming\\Python\\Python38\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
| 20 |
+
" from .autonotebook import tqdm as notebook_tqdm\n"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
"source": [
|
| 25 |
"import os\n",
|
| 26 |
"from pathlib import Path\n",
|
|
|
|
| 30 |
},
|
| 31 |
{
|
| 32 |
"cell_type": "code",
|
| 33 |
+
"execution_count": 2,
|
| 34 |
"metadata": {},
|
| 35 |
"outputs": [],
|
| 36 |
"source": [
|
|
|
|
| 42 |
},
|
| 43 |
{
|
| 44 |
"cell_type": "code",
|
| 45 |
+
"execution_count": 3,
|
| 46 |
"metadata": {},
|
| 47 |
"outputs": [
|
| 48 |
{
|
|
|
|
| 64 |
},
|
| 65 |
{
|
| 66 |
"cell_type": "code",
|
| 67 |
+
"execution_count": 4,
|
| 68 |
"metadata": {},
|
| 69 |
"outputs": [
|
| 70 |
{
|
| 71 |
"name": "stdout",
|
| 72 |
"output_type": "stream",
|
| 73 |
"text": [
|
| 74 |
+
"zq.shape: torch.Size([1, 1024, 750])\n",
|
| 75 |
+
"s.shape: torch.Size([1, 32, 750])\n"
|
| 76 |
]
|
| 77 |
}
|
| 78 |
],
|
|
|
|
| 85 |
},
|
| 86 |
{
|
| 87 |
"cell_type": "code",
|
| 88 |
+
"execution_count": 5,
|
| 89 |
"metadata": {},
|
| 90 |
"outputs": [
|
| 91 |
{
|
| 92 |
"name": "stdout",
|
| 93 |
"output_type": "stream",
|
| 94 |
"text": [
|
| 95 |
+
"waveform.shape: torch.Size([1, 1, 239904])\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
]
|
| 97 |
}
|
| 98 |
],
|
|
|
|
| 104 |
},
|
| 105 |
{
|
| 106 |
"cell_type": "code",
|
| 107 |
+
"execution_count": 6,
|
| 108 |
"metadata": {},
|
| 109 |
"outputs": [
|
| 110 |
{
|
| 111 |
"name": "stdout",
|
| 112 |
"output_type": "stream",
|
| 113 |
"text": [
|
| 114 |
+
"waveform.shape: torch.Size([1, 1, 239904])\n"
|
| 115 |
]
|
| 116 |
}
|
| 117 |
],
|
|
|
|
| 123 |
},
|
| 124 |
{
|
| 125 |
"cell_type": "code",
|
| 126 |
+
"execution_count": 7,
|
| 127 |
"metadata": {},
|
| 128 |
"outputs": [],
|
| 129 |
"source": [
|
|
|
|
| 133 |
},
|
| 134 |
{
|
| 135 |
"cell_type": "code",
|
| 136 |
+
"execution_count": 8,
|
| 137 |
"metadata": {},
|
| 138 |
"outputs": [
|
| 139 |
{
|
| 140 |
"name": "stderr",
|
| 141 |
"output_type": "stream",
|
| 142 |
"text": [
|
| 143 |
+
"d:\\projects\\descript-audio-codec-24khz\\model.py:209: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 144 |
" return torch.load(fname)\n"
|
| 145 |
]
|
| 146 |
}
|